A high-performance local LLM interface powered by llama-cpp-python and PyQt6, designed for private, offline intelligence.
LLM Chat Offline is a modern desktop client for Large Language Models (LLMs). It allows users to run powerful models locally without relying on external APIs. The software features a refined glass-morphism aesthetic and a robust inference engine.
The application features an automated model downloader and a dynamic parameter injection system, ensuring a seamless experience from setup to advanced AI interaction.
- Local Inference: 100% offline. Your data never leaves your machine.
- Glass-morphism UI: Modern interface with support for custom background images and translucent window elements.
- Context Persistence: Maintains a conversation history buffer, allowing the model to remember previous interactions within the session.
- Automated Setup: Built-in downloader for the Qwen 3 1.7B (GGUF) optimized model.
- Real-time Streaming: Smooth token-by-token text generation using PyQt6 signals for a responsive UI.
- Advanced Config: Fine-tune temperature, repeat penalty, and custom system prompts on the fly.
- GGUF Support: Compatible with any GGUF model via the internal file browser.
To run this project on your local machine, you need:
- Python 3.10+
- Hardware: 4GB+ RAM (8GB recommended for larger models).
- C++ Compiler: Required for building
llama-cpp-python(Visual Studio tools on Windows orgccon Linux).
git clone https://github.com/BryanApolonio/LLM-Chat-Offline.git
cd LLM-Chat-Offline
pip install -r requirements.txt --break-system-packagessudo apt install python3-pip python3-pyqt6 git -y
git clone https://github.com/BryanApolonio/LLM-Chat-Offline.git
cd LLM-Chat-Offline
pip install -r requirements.txt --break-system-packagesgit clone https://github.com/BryanApolonio/LLM-Chat-Offline.git
cd LLM-Chat-Offline
CMAKE_ARGS="-DGGML_METAL=on" pip install llama-cpp-python --break-system-packages
pip install PyQt6 requests --break-system-packages- Run the application:
python3 main.py- Model Initialization: Click on "Download Qwen 1.7B" or use the "Browse GGUF" button to load a model you already have.
├── main.py # Core Application Logic & UI (PyQt6)
├── requirements.txt # Project Dependencies
├── LICENSE # MIT License
├── README.md # Documentation
└── img/ # UI Screenshots & Backgrounds
Through the Settings menu, you can adjust:
- System Prompt: Define the AI's personality and constraints.
- Temperature: Control creativity (Lower is more analytical, higher is more creative).
- Max Tokens: Limit the length of the generated responses.
- Repeat Penalty: Prevents the model from repeating the same phrases.
This project is built upon the hard work of the open-source AI community:
- llama-cpp-python: Python bindings for
llama.cpp. - Qwen 3: State-of-the-art low-parameter models for efficient local use.
- PyQt6: Professional-grade GUI framework.
Disclaimer: This tool is for educational and research purposes. This software was created and is maintained by Bryan Apolonio. Ensure you have the rights to the models you download and use them according to their respective licenses.
