Repository navigation
Add resident Vulkan Cohere GGUF transcription - #792
Conversation
|
@peteonrails fyr - cohere gguf support, some other stuff coming to handle model install. tested on Intel PTL iGPU w Vulkan. |
ONNX → GGUF migration research (2026-09-24)This tracks a possible future migration; it is not a request to expand this PR. The Cohere path in this draft demonstrates the desired in-process pattern: transcribe.cpp's Rust binding loads a GGUF into the Voxtype daemon and retains its model/session between recordings. Voxtype now catalogs and checksum-verifies curated Cohere Q4_K_M and Q8_0 downloads. The configurable quiet-boundary chunker applies to both Cohere runtimes; its long-form WER still needs measurement. Runtime and model coverageGGUF is a tensor/metadata container, not a universal speech model ABI. A runtime needs the model architecture, frontend, tokenizer/decoder, and the right GGUF layout. audio.cpp says this explicitly. I checked the published model lists and current source trees of whisper.cpp, audio.cpp, and transcribe.cpp, plus the architecture registry vendored by Voxtype's pinned
CrispASR is a whisper.cpp fork with Paraformer, Dolphin, and OmniASR implementations, a C ABI/Rust bindings, and Vulkan builds. It is the most concrete alternative if preserving all three families is the goal. Its published variants are not automatically the same checkpoints Voxtype ships today. FunASR's Paraformer runner is another focused option. Porting the missing families into transcribe.cpp is a third option. Other transcribe.cpp models (Canary, Qwen3-ASR, MOSS, etc.) could fill some user needs, but they should be evaluated as new model choices, not silent replacements for these engines. What changes across Voxtype if ONNX Runtime is removed
Suggested order: (1) metadata/capability-driven catalog plus shared resident adapter; (2) Parakeet, Moonshine, SenseVoice migrations with side-by-side benchmarks; (3) choose transcribe.cpp ports vs an in-process CrispASR path vs retaining ONNX for Paraformer/Dolphin/Omnilingual, validating exact variants and licenses; (4) handle ECAPA/GTCRN; (5) remove ONNX build and distribution surfaces only after coverage is accounted for. This keeps the draft PR focused while making the migration decision reviewable. |
Ryan's Omarchy loopback proved Cohere GGUF on Vulkan works well enough that it belongs in voxtype natively rather than staying an Omarchy-side workaround, and Jacob's peteonrails#792 is already landing it for 1.2.0. That changes the shape of the rest of the roadmap: ONNX Runtime's build/packaging burden (5 of 8 release binaries, the AVX-512 leakage checks, the MIGraphX EP question, Cohere's CUDA decoder gap) all trace back to ONNX specifically, and peteonrails#792 shows the ggml alternative resolves several of them outright rather than needing separate fixes. Records the decision to remove ONNX Runtime at 2.0 once the remaining engines get an explicit port-or-retire call.
The runtime has been R2-only since #459, with no HuggingFace fallback, but the GGUF entry #792 added built its own huggingface.co/resolve/<rev> URL and bypassed that. Both quantizations are now mirrored under the cohere prefix, so point the downloader at them. Q8_0 needed mirroring first; Q4_K_M was already there. Both verified against the sha256s pinned here before upload, so no hashes change. The R2 directory is spelled out per entry rather than derived from the file name: the mirrored layout lowercases and swaps .gguf for -gguf, and a derivation that subtle is worth being able to grep for. Kept COHERE_GGUF_REPO and COHERE_GGUF_REVISION as provenance - the runtime never reads them now, but whoever re-mirrors needs the source and the revision the hashes came from. Also fixes a clippy lint in cohere_chunking's test that only appears when linting with --features cohere-gguf, which CI does not do.
Brings in transcribe.cpp (Cohere GGUF, peteonrails#792) and the 1.2.0 cleanup pipeline, so the Parakeet GGUF branch can sit on top. Conflicts: - notification.rs: kept the D-Bus delivery of peteonrails#881 and added 1.2.0's body_markup probe. - output: the cleanup diff now runs through the titled notification of peteonrails#880, so the clipboard-fallback label keeps the edit count. - evdev: peteonrails#884 opens devices in start(); it now passes the watched keys. - setup: peteonrails#880's pure build_output_chain gains 1.2.0's compositor and /dev/uinput checks. - parakeet.rs: kept peteonrails#891's pause-cut windows, which also cover timed transcription; rc's max_window_secs/window_overlap_secs are unused here. - ci.yml: requires both clippy-features and macos-check.
Summary
.ggufmodels through the official transcribe.cpp Rust binding in the Voxtype daemon. The model and session remain resident across recordings whenon_demand_loading = false; no separate worker is needed.cohere.max_chunk_secsdefaults to 35 (range 5–35);cohere.boundary_search_secsdefaults to 2.5 (range 0–5).voxtype setup model,voxtype setup --download --model, andvoxtype info models. The curated choices are Q4_K_M (1.56 GB) and Q8_0 (2.41 GB) from a pinned revision of handy-computer's official model repository. Setup checks size, GGUF header, and publisher SHA-256 before making a download visible. The other published quantizations can still be used by path.Validation
0ea56826d8bd5d74b7143a4a04e022dc1bb75452cfae49d98b6acb0c1d16a1fb.Vulkan0and transcribed an 11-second speech clip correctly. A hardware-gated test reused one loaded session twice; a 66-second repeated clip exercised two chunks and returned all six repetitions. These are integration checks, not long-form WER measurements.voxtype info models --engine cohere --json --verifyrecognized the installed Q4_K_M file and reportedverified: ok;voxtype setup --model ... --activateselected it in the temporary config.cargo check --locked --features gpu-vulkan,cargo test --locked --features cohere-gguf --lib setup::, the GGUF validation test,cargo fmt, andgit diff --checkpass. Q8_0's official size and checksum are pinned, but its inference was not tested on this machine.Review context