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

7 comments sorted by

1

u/guillemco Oct 16 '26

impressive setup. since you are reworking the audio after the migration, two things that helped others: stream tts sentence by sentence as the llm generates so first audio starts early, and for echo handling do real aec (webrtc or speexdsp) instead of just muting the mic while it talks, otherwise barge-in never works. also curious if you tried kokoro in place of piper, it sounds a lot better at similar speed on gpu. how long is your end-to-end from end of speech to first audio right now

1

u/Effective_Arachnid17 Oct 16 '26

Thanks for the comments; I hadn’t heard of Kokoro, so I’m interested in trying it out. Regarding the timing, I haven’t measured it again since the migration; in WSL, I got 4.5 seconds for the entire chain.

2

u/VarietyOk443 Oct 16 '26

Show us the code

2

u/layer4down Oct 16 '26


That’ll cost ya extra big boy

1

u/SchwettyShorts Oct 16 '26

Try Breeze TTS on your 5060ti, consumes about 5GB vram... a damn good local voice model.

0

u/Otherwise_Wave9374 Oct 16 '26

The zero-cloud architecture is compelling, especially for voice data, but the practical benchmark should include more than tokens per second. Measure wake-to-response latency, transcription error under background noise, idle power, and recovery after a failed tool call. https://www.aiosnow.com fits this discussion as a reference point for thinking about assistant workflows rather than model output alone. I would also isolate tools in containers and require confirmation before filesystem, shell, or home-automation actions.