clarkhjc/qllama
About
A local LLM chat client for macOS built with Qt 6 and llama.cpp: streaming Markdown, KV-cache reuse, multimodal input, multi-session management and model downloads.
AI & Machine LearningWhat you can do
- Streaming Markdown chat: token-by-token output with theme-aware code blocks, tables, quotes and task lists
- KV reuse for long chats; automatic omission of older messages when the context fills up, or one-click compression into a summary
- Multimodal image Q&A after loading an mmproj projector (up to 4 images)
- Multi-session management: new / switch / rename / delete, auto-saved and restored on launch; export to Markdown or JSON
Measured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalqllama · Qt + llama.cpp Local LLM Chat Client
A local LLM chat client built with Qt 6 Widgets (macOS / Apple Silicon) that talks directly to the llama.cpp 0.9.0 C API. Metal accelerated, streaming and fully offline.
Features
- Streaming Markdown chat: token-by-token output with theme-aware code blocks, tables, quotes and task lists
- KV reuse for long chats; automatic omission of older messages when the context fills up, or one-click compression into a summary
- Multimodal image Q&A after loading an mmproj projector (up to 4 images)
- Multi-session management: new / switch / rename / delete, auto-saved and restored on launch; export to Markdown or JSON
- Hugging Face model manager: search and download GGUF files (automatic fallback to a mirror)
- Three themes (light / dark / pink) and live Chinese / English switching
- Status-bar system monitor and file logging;
./pack.shbuilds a DMG, with GitHub Actions automation
Screenshots

| Basic settings | Advanced settings |
|---|---|
![]() |
![]() |

Requirements
- macOS / Apple Silicon (Metal; macOS only for now)
- Qt 6 (Widgets / Network) ≥ 6.5, plus
qtsvg(Homebrewqt qtsvg) - llama.cpp 0.9.0 (including
tools/mtmd), withbuild/bin/*.dylibbuilt first - CMake ≥ 3.21 and Ninja
Build & Run
# Build llama.cpp first (anywhere)
cd <llama.cpp source dir> && cmake -B build && cmake --build build
# Build and run qllama
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DLLAMA_CPP_DIR=<llama.cpp source dir>
cmake --build build
open build/qllama.app
Usage
- Pick a GGUF model and click "Load Model", or download one from Hugging Face via "Manage Models";
- Adjust sampling, context, theme, language and projector settings in "Settings" (some changes require a model reload);
Entersends,Shift+Enterinserts a newline; stop generation at any time; add up to 4 images;- Use the session list on the left to create / switch / rename / export (Markdown or JSON) / delete conversations. Chats are saved automatically and restored on restart.
Packaging
./pack.sh builds, deploys dependencies, signs and produces dist/qllama-<version>-<arch>.dmg;
use --no-build / --no-verify to skip the build or launch check. Pushing a v* tag makes
GitHub Actions build and publish the DMG. The bundle is ad-hoc signed: if Gatekeeper blocks the
first launch, allow it under System Settings → Privacy & Security.
Tests & Data
ctest --test-dir build --output-on-failure: model-free core tests;build/qllama_smokeis a headless smoke test- Logs:
~/Library/Logs/qllama/qllama.log - Sessions:
~/Library/Application Support/qllama/qllama/sessions/
Known Limitations
- macOS only (Metal dependency);
- Markdown is a lightweight subset: no image syntax or syntax highlighting;
- On 8 GB machines, keep the context of gemma-3-4b (Q4_K_M) at 16384 or below.
Explore related projects
Loading…

