# CSVA – Decoupled real-time voice loop using LFM3-Omni and Qwen 2.5 on a 16GB GPU

> Source: <https://github.com/Recaperare/lfm3-cognitive-shunt>
> Published: 2026-12-03 12:37:53+00:00

**Recommendation:** Split the talker and reasoner across two processes and buffer synthesis at sentence boundaries so first-audio latency hides behind playback; the source fit both models in ~12 GB of a 16 GB GPU.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

Decoupled Cognitive Shunt Voice Architecture (CSVA) — v1.3

Model Links: Talker: OpenIntelligenceNet/LFM3-Omni-2B-Uncensored (FP16 via Transformers/PyTorch on CUDA) Thinker: Qwen2.5-7B-Instruct-Uncensored (Q4_K_M GGUF)

The Problem: 2B omni-modal audio models talk fast with natural inflection but lack complex reasoning; 7B+ text models think well but typical cascaded pipelines (STT 

The Solution: A decoupled bridge that shunts transcription from LFM3-Omni directly into an external llama-server running Qwen 2.5 7B, then streams text deltas back via regex sentence boundaries to LFM3 for real-time acoustic code generation.

ASCII Flowchart:

[User Mic (24 kHz)] │ (Web VAD: RMS > 0.020, 900ms pause) │ [bridge_native.py] (Port 8082) │ ┌─────┴────────────────────────────────────────────────┐ │ LFM3-Omni: Transcribe audio buffer (16 kHz) │ └─────┬────────────────────────────────────────────────┘ │ Transcript Text ▼ ┌──────────────────────────────────────────────────────┐ │ COGNITIVE SHUNT: llama-server.exe (Port 8083) │ │ Qwen 2.5 7B Q4_K_M (SSE streaming tokens) │ └─────┬────────────────────────────────────────────────┘ │ Text deltas streamed back ▼ ┌──────────────────────────────────────────────────────┐ │ Sentence Regex Demarcation (. ? !) │ └─────┬────────────────────────────────────────────────┘ │ Sentence 1, 2, ... ▼ ┌──────────────────────────────────────────────────────┐ │ LFM3-Omni: Synthesize 24 kHz acoustic codes │ └─────┬────────────────────────────────────────────────┘ │ Base64 PCM16 chunks ▼ [Web Audio FIFO Queue (Thorium Browser)] (Immediate playback of Sentence 1 while 2 & 3 synthesize)

Hardware & Benchmarks:

GPU: NVIDIA GeForce RTX 5060 Ti (16 GB VRAM) VRAM Footprint: ~11.9 GB – 12.1 GB steady state across both models Audio: 24 kHz capture and playback; 16 kHz resampled ASR; sentence-level FIFO buffering hiding synthesis latency.

Prerequisites & Quickstart:

1. Run run_qwn_reasoner.bat to start llama-server.exe on port 8083.
2. Run run_console.bat to launch bridge_native.py on port 8082.
3. Open [http://localhost:8082](http://localhost:8082) in Thorium, Chrome, or any Chromium browser.
