On 24 November 2026 PrismML released Ternary Bonsai 2.5 27B, an upgrade to its ternary-compressed Qwen3.8 27B derivative. It keeps the 5.9 GB footprint while improving multi-turn tool use and agentic coding. SWE-bench Verified rises from 60.8 to 75.6; AppWorld from 51.2 to 90.5. On an RTX 4090 it hits roughly 204 tokens/s with multi-token prediction; on H100 about 291. Weights are Apache 2.0, runnable via PrismML's llama.cpp fork or MLX.
That is a practical unlock for on-device agents that touch private repos or files. It is not a free pass for the audio path if you are shipping a live overlay that needs short suggestions or translations during a technical interview or sales call in another language.
Why local models still wait on capture
A usable real-time overlay needs clean dual-track PCM before any model sees the audio:
- Microphone: what you say.
- Loopback of the render endpoint: what the remote party says through the call client.
Both must stay in shared-mode WASAPI so the call client keeps the device. Exclusive mode would break the call. The audio engine (audiodg.exe + audioeng.dll) mixes and applies any APOs. Typical shared period is 10 ms. You can request less via IAudioClient3; the engine often ignores it under load.
Rough budget once samples leave the callback (modern laptop, enhancements off):
| Stage | Typical cost |
|---|---|
| WASAPI shared period | 10 ms |
| Callback → lock-free ring + convert | 1–3 ms |
| Resample to 16 kHz mono + light VAD | 2–5 ms |
| Local STT first partial | 40–120 ms |
| Small local polish / suggestion model | 20–80 ms |
| Overlay paint | <16 ms |
A 200 tok/s local LLM is fast for text. The first usable partial still waits on the buffer period plus framing. Drop enhancements, pin the capture thread, and keep a lock-free SPSC ring or the floor moves up.
Minimal dual-track sketch
// Shared-mode loopback + mic (error handling omitted)
IMMDeviceEnumerator* enumerator = nullptr;
CoCreateInstance(__uuidof(MMDeviceEnumerator), nullptr, CLSCTX_ALL,
__uuidof(IMMDeviceEnumerator), (void**)&enumerator);
IMMDevice* defaultRender = nullptr;
enumerator->GetDefaultAudioEndpoint(eRender, eConsole, &defaultRender);
IAudioClient* loopbackClient = nullptr;
defaultRender->Activate(__uuidof(IAudioClient), CLSCTX_ALL, nullptr, (void**)&loopbackClient);
WAVEFORMATEX* format = nullptr;
loopbackClient->GetMixFormat(&format);
loopbackClient->Initialize(AUDCLNT_SHAREMODE_SHARED,
AUDCLNT_STREAMFLAGS_LOOPBACK | AUDCLNT_STREAMFLAGS_EVENTCALLBACK,
100000, 0, format, nullptr); // request ~10 ms
// Mirror for capture endpoint without LOOPBACK.
// Callback copies to SPSC ring only. Consumer thread resamples, VAD, feeds STT or local model.
From the ring you can feed a local STT (faster-whisper, Whisper.cpp, Windows ML Speech Recognition Task, or a small GGUF) then a short polish pass with something like Bonsai 2.5 or a smaller sibling. The model never sees the samples until the capture side is correct.
Running the local model
PrismML ships GGUF packs that need their llama.cpp fork (rotated Hadamard basis). A typical command for a short suggestion after a transcript chunk:
./llama-cli -m Ternary-Bonsai-2.5-27B-PTQ1_0.gguf \
-p "Polish this interview reply to be concise and technical: [transcript]" \
-c 8192 --temp 0.7 -n 128
On a loaded 4090 the decode is fast enough that the dominant delay is still the audio framing, not the token generation. Keep the context short for the polish step; full agent loops belong in a separate process.
Architecture notes and tradeoffs
- Shared mode is non-negotiable for call clients. Exclusive would require the call to release the device.
- Local models remove network RTT and keep transcripts on-machine, but they still consume the same WASAPI period.
- Ternary packing makes a 27B-class model fit in 6 GB, so a dedicated polish process can stay resident without thrashing. Throughput numbers assume the model is already loaded; cold start and KV cache still matter for interactive use.
- Overlay lifetime is independent. A Win32 layered window or DirectComposition surface can paint suggestions while the coding-agent UI is closed.
- Disable audio enhancements (Communications tab or IAudioClient properties) or the period and APO chain add tens of milliseconds.
PrismML's numbers show local agentic coding is now practical on consumer GPUs. The audio capture path has not changed. If your product needs sub-200 ms end-to-end from speech to overlay text, the buffer period and callback discipline still set the floor.
Shared-mode WASAPI periods dominate before any local model runs.
I'm building Talkaside, a Windows app for job interviews and calls in another language.
Drafted with AI assistance from this project's code and logs.

Top comments (0)