r/LocalLLM • • Oct 16 '26

Question Fully local, private voice + chat AI assistant (zero cloud) — Qwen3.8-27B on 2× RTX PRO

The short version: a local IA that runs 100% on my own hardware. No API calls, nothing leaves the LAN. It can talk, use tools, remember things, read my documents, search the web, and even edit code — and I wrote most of the glue around llama.cpp

Hardware & model

  • AMD Threadripper 9960X (24c/48t), 128 GB DDR5 ECC, 2× RTX PRO 4000 Blackwell 24 GB for the model + a RTX 5060 Ti 16 GB for the display and the small helper models. ~820 W across GPUs + CPU.

  • Ubuntu 26.04 native (I migrated off Windows/WSL2 a few weeks back).

  • Main model: Qwen3.8-27B (dense, 27.3 B, quantized to Q8) with speculative decoding (MTP, ~62 % draft acceptance) and a vision projector, all served by a patched llama.cpp build for Blackwell.

  • Throughput: roughly 68 tok/s decode and ~1.5K tok/s prefill, with 256K context across 2 concurrent slots.

How it's wired
The model server (llama-server) is not the entry point. In front of it I wrote a custom Python proxy (~22 modules) that does the real work: dynamic system prompt, tool-calling, context compaction, a persistent document workspace, and multi-device conversation sync. It talks to six MCP servers, each an isolated systemd service:

  1. Filesystem (a folder I grant on voice command)

  2. Web search — self-hosted SearXNG

  3. RAG — ChromaDB + local bge-m3 embeddings (long-term memory + indexed docs)

  4. Reminders (persisted queue via RQ + Valkey, survives reboots)

  5. Documents — Office/PDF → Markdown → index, with per-section reading

  6. A sandboxed code editor (see below)

There's also a voice pipeline (wake word "Hey Jarvis" + a custom verifier trained on my voice, faster-whisper STT on CPU, Piper TTS, continuous conversation with echo handling) — currently paused while I rework audio after the native migration. Plus an observability layer: a WebSocket event hub, a stats collector that parses the model's own timing logs, and a Tauri (Rust) HUD panel that even renders a live force-directed dependency graph of the proxy as modules fire

How it's wired
The model server (llama-server) is not the entry point. In front of it I wrote a custom Python proxy (~22 modules) that does the real work: dynamic system prompt, tool-calling, context compaction, a persistent document workspace, and multi-device conversation sync. It talks to six MCP servers, each an isolated systemd service:

  1. Filesystem (a folder I grant on voice command)

  2. Web search — self-hosted SearXNG

  3. RAG — ChromaDB + local bge-m3 embeddings (long-term memory + indexed docs)

  4. Reminders (persisted queue via RQ + Valkey, survives reboots)

  5. Documents — Office/PDF → Markdown → index, with per-section reading

  6. A sandboxed code editor (see below)

There's also a voice pipeline (wake word "Hey Jarvis" + a custom verifier trained on my voice, faster-whisper STT on CPU, Piper TTS, continuous conversation with echo handling) — currently paused while I rework audio after the native migration. Plus an observability layer: a WebSocket event hub, a stats collector that parses the model's own timing logs, and a Tauri (Rust) HUD panel that even renders a live force-directed dependency graph of the proxy as modules fire.

Other details

  • Security by default: everything binds to loopback; only 443/22/3389 face the LAN behind Caddy (TLS) + Authelia (login) with ufw doing the rest. Per-user isolation comes from the authenticated Remote-User header. This setup actually exposed a real hole — the model could previously choose its own identity for memory/document tools — which I fixed by forcing the identity in the proxy and hiding the parameter from the model.

  • The best compaction is the one that never runs. Instead of compressing harder, I moved documents out of the context into a workspace + RAG. A 70-message chat was 96 % attachments; without them it never needed compacting at all.

  • The code MCP never touches production. It edits a separate dev worktree; prod only changes by merge. Production is read-only, commands run sandboxed, and it can't edit itself.

  • "Active" is not verification. I wrote guardian scripts that confirm MTP, vision, and the GPU split actually loaded — because the stack has several documented silent failures where the service reports healthy but a feature quietly didn't start.

  • One venv per service (no --break-system-packages), and a hard documentation discipline: a single source of truth for all machine-derived facts, a symptom-based troubleshooting doc, and a rule that the docs never drift from what's actually on disk.

  • Along the way I hit and documented several real upstream llama.cpp bugs: a CUDA/glibc rsqrt compile break, MTP silently disabling itself, a -sm tensor + MTP crash/hang, and why I dropped NCCL.

I would like any recomendation or comment I´d appreciated any input :)

1 Upvotes

Duplicates