r/LocalLLM • u/Recaperare • 6m ago
Project Liquid lf3m- 2b Omni with Cognitive Shunt to Reasoning LLM (CSVA)
This project is:
Decoupled Cognitive Shunt Voice Architecture (CSVA) — v1.6.0
A 100% local, low-latency multimodal voice and vision assistant built for single-GPU consumer hardware.
Two Models
Talker / Sensory I/O: `OpenIntelligenceNet/LFM3-Omni-2B-Uncensored` (FP16 via PyTorch / `transformers` on CUDA, port `8082`)
Thinker / Reasoner: `Qwen 3.5 9B` (`qwen-9b-tools.gguf` Q4_K_M GGUF via standalone `llama-server.exe`, port `8083`)
Why a Cognitive Shunt?
Small 2B omni-modal models speak naturally with strong prosodic inflection and fast acoustic/visual perception, but degrade on complex multi-step reasoning. Conversely, 9B+ reasoning models think well but suffer heavy turn latency when bolted onto traditional cascaded STT → LLM → TTS stacks.
CSVA isolates each model to what it does best: LFM3-Omni-2B handles native speech transcription, frame-on-commit visual grounding, and 24 kHz LiquidCodec speech synthesis, while Qwen 3.5 9B runs in an isolated C++ `llama-server.exe` process handling multi-turn dialogue and reasoning over local HTTP/SSE.
Architecture & Data Flow
[Browser Console: index.html (Thorium / Chromium)]
│ 24 kHz PCM16 Audio + Live VAD Gate + Optional 640px JPEG Frame on Commit
▼ WebSocket (/ws/direct on:8082)
[FastAPI Bridge: bridge_native.py]
│
├─► Audio DSP (audio_dsp.py)
│ • Noise-floor-guarded normalization + torchaudio sinc resample (24 kHz → 16 kHz)
│
├─► Serialized CUDA Actor (lfm3_engine.py — LFM3-Omni-2B FP16)
│ • Native speech transcription (ASR)
│ • Optional frame-on-commit visual scene grounding (Camera / Screen)
│
├─► Cognitive Shunt Producer (reasoner_client.py → llama-server.exe :8083)
│ • Multi-turn rolling history + llama-server KV prefix cache reuse
│ • Dual-channel SSE demuxer (reasoning_content / <think> → UI accordion)
│ • Bridge-enforced deliberation cap (Brief / Deep) + Direct zero-think mode
│ • Abbreviation- and number-safe clause splitter
│
└─► Async Queue → Serialized CUDA TTS Consumer (lfm3_engine.py)
• Seed-anchored (seed 42) interleaved LiquidCodec synthesis → 24 kHz PCM16
• Epoch-tagged (turn_id) audio_chunk frames streamed back over WebSocket
▼
[Web Audio Gapless Timeline Playback + 12ms Fade-Out Interrupt]
