feat(eris): kb-whisper large on the gpu via whisper.cpp - #1788
Conversation
|
Claude finished @johnae's task —— View job Review
Nicely shaped change — the comments carry the reasoning (why Vulkan, why not turbo, why Blocking1. Bugs / robustness2. Prompt building sits outside the failure net — 3. 4. The bridge needs the network at startup but isn't ordered against it — 5. Missing token degrades silently — 6. Model cache key ignores the repo — 7. No integrity check on the 3 GB download — 8. Unbounded audio buffer — Performance9. A fresh Quality / maintainability10. Zero build-time verification — 11. Prompt file is read once, not per request — the qwen bridge deliberately re-read its vocabulary file ( 12. 13. Shell quoting in 14. 15. Dead code after this PR — nothing imports Things I liked
I did not run |
cd74eca to
00545f1
Compare
|
Claude finished @johnae's task —— View job Claude finished @johnae's task —— View job Re-review (after
|
Swedish commands were never the problem; foreign artist names were. kb-whisper large with a prompt of the names that recur in the Spotify library spells them, and on the 7900 XTX through Vulkan it answers in about 0.2s beside the resident LLM. Replaces Qwen3-ASR on eris.
00545f1 to
fe104bd
Compare
|
Claude finished @johnae's task —— View job Re-review (third pass, after
|
kb-whisper large on the 7900 XTX through whisper.cpp's Vulkan backend, fronted by
a small wyoming bridge, replacing Qwen3-ASR on eris.
Speed. ~0.2s per command end to end through wyoming, with the model resident.
On the CPU the same model takes ~8s; faster-whisper has no AMD GPU backend and a
rocm torch is not cached anywhere, while whisper.cpp with Vulkan is.
Memory. gemma4 ~14 GiB + kb-whisper-large ~4 GiB of 24, so both stay
loaded.
OLLAMA_KEEP_ALIVE=-1keeps the LLM from unloading between questions.Prompt. The bridge reuses wyoming-faster-whisper's
HassNameCache, so HomeAssistant names are tiered, budgeted and refreshed exactly as on icarus, counted
with kb-whisper's own tokenizer. Ahead of them sits a Swedish sentence of the
foreign artist names that recur in the Spotify library (89 tokens). In testing
it turned "Miss Kitty in", "Sharon-vanetten" and "hans Zimmer" into the right
names; Swedish commands were correct with or without it.
Before this builds: eris needs the HA token rekeyed —
agenix rekey -aand commitsecrets/rekeyed/eris/. It reuses icarus'sexisting read-only
whisper-hass-token.🤖 Generated with Claude Code
https://claude.ai/code/session_01XfYTVcQVjCevVeoJofu8FF