Repository navigation
Conversation
Parakeet was the only ONNX engine without a threads setting, so it ran on parakeet-rs's fixed 4 threads. The wait after a dictation grows with its length, and on a 12-core Ryzen AI 9 HX 370 a 3-minute dictation took 11.7 s at 4 threads and 8.6 s at 12; 16 or more were slower again. Unset keeps today's behavior. The setting reaches the batch and streaming pipelines, the configure TUI and the config schema.
Everything cohere_gguf.rs did before its first run is not Cohere's: resolving the path against the models directory, checking the GGUF header before C++ sees the file, parsing gguf_backend, refusing a software Vulkan device, and opening one resident session with the configured threads. Parakeet is about to load its GGUF weights the same way, and peteonrails#792's review asked for a shared adapter rather than a copy per family. gguf.rs now owns that plumbing behind GgufSession, parameterised by the engine's display name and config section so the errors still name the key to fix. Cohere keeps only its run options and chunking, and its error messages and tests are unchanged.
On a Radeon 890M, transcribe.cpp runs parakeet-tdt-0.6b-v3 on Vulkan three to four times faster than ONNX Runtime does on the Ryzen AI 9 HX 370's CPU, at the same LibriSpeech WER: a 3-minute dictation takes 3.4 s instead of 12.3 s. transcribe.cpp is already resident in-process for Cohere, so Parakeet gets the same treatment rather than a second ggml port. A [parakeet] model ending in .gguf now selects transcribe.cpp, the same rule Cohere uses; anything else stays on ONNX Runtime unchanged. The new parakeet-gguf feature builds it, and gpu-vulkan enables it, so the Vulkan binary accepts engine = "parakeet" without parakeet-rs. The parakeet feature does not imply it: ONNX builds would compile ggml for a runtime that only pays off on a GPU. [parakeet] gguf_backend takes the same values as Cohere's, and threads becomes transcribe.cpp's CPU thread count for GGUF models. Long audio goes through the existing max_window_secs windowing, because transcribe.cpp's Parakeet encoder uses full attention and a single pass grows memory with the square of its length. streaming = true is rejected with a config error instead of silently running batch, and a GGUF of another architecture is refused at load.
Pins parakeet-tdt-0.6b-v3 F16 and Q8_0 from handy-computer's parakeet-tdt-0.6b-v3-gguf at revision d8d8c32c, with the sizes and sha256s from its LFS metadata (checked against the downloaded files). Q8_0 is the smaller download and matched F16's LibriSpeech WER and Vulkan speed, so both are offered. Downloads point at R2 under the parakeet prefix, spelled the way the Cohere GGUFs were mirrored in 2f3d95e. Those objects do not exist yet: they need mirroring from the pinned revision before this ships, and the repo and revision consts are kept for exactly that. CohereGgufModelInfo becomes GgufModelInfo with an engine field, so the lookup, cheap and full verification, downloader and picker handler serve both engines instead of growing a Parakeet copy of each. The picker gains a Parakeet GGUF section, setup --download --model and --activate write engine = "parakeet", and voxtype info models lists and verifies the files under the parakeet engine.
# Conflicts: # docs/CONFIGURATION.md # src/config/engines/parakeet.rs # src/config/schema.rs # src/transcribe/parakeet.rs # src/tui/engine.rs
|
@crmne Thanks for this - I have some parallel work that overlaps with this, and indeed we're going to move completely off of ONNX soon. I'll take a look at this as soon as I can - am traveling at the moment. |
…assets Integrate the complete reviewed pre-model-expansion source, including native tray/language, Text Cleanup, OSD modernization and matching GGUF workers. Retain the bounded license-link contrast repair and its real Qt regression. Build the actual 1.2.0-rc1 package/worker versions and matching lock entries. Make the Linux release transport reject mismatched RC versions, avoid cached Docker layers and partial Linux matrices, and ship source-matched desktop assets. Ultra and the seven Handy conversion additions are deferred to RC2. Their mirrors, weights, candidate sources and evidence remain untouched. Provenance: tray PR #438 (N / nick-tgcs), GGUF PR #908 (Carmine Paolino), OSD PR #919 (OldJobobo), including the four equivalent #872 patches once. This message is a proposal only. Exact-source review and Pete's publication approval remain required; no installer drain-handshake fix is claimed. Co-authored-by: N <38736669+nick-tgcs@users.noreply.github.com> Co-authored-by: Carmine Paolino <carmine@paolino.me> Co-authored-by: OldJobobo <jsbrown7@gmail.com>
|
Carmine, thank you for the Parakeet GGUF and Vulkan work. This capability shipped in v1.2.0 and is retained in v1.2.1. We adapted the integration into an isolated GGUF worker rather than merging this branch directly. Commit 82e7bc1 names this PR in its provenance and includes your Co-authored-by credit. I have checked the remaining scope and am closing this PR as delivered through that integration, not rejecting the contribution. Your other PRs with outstanding work remain open while we reconcile those fixes separately. Thank you for the work you put into this. |
Why
Parakeet only runs through ONNX Runtime, which has no Vulkan EP, so AMD and Intel GPUs run it on the CPU (or through MIGraphX, which was slower than the CPU here). #483 plans a ggml Parakeet backend for 1.3.0. transcribe.cpp, which #792 already brought into rc/1.2.0 for Cohere, ships a Parakeet port that is numerically checked against NeMo, so this adds Parakeet on that same resident path instead of a second ggml library and a subprocess.
Measured on a Radeon 890M iGPU (Ryzen AI 9 HX 370),
parakeet-tdt-0.6b-v3, seconds to transcribe with the model loaded:LibriSpeech test-clean WER at 1 and 3 minutes is 1.7% and 0.8% for GGUF F16, Q8_0 and ONNX fp32 alike. transcribe.cpp's CPU backend was slower than ONNX (3 min: 13.5 s at 12 threads), so this is the GPU path; ONNX stays the CPU path.
What changed
Shared adapter.
src/transcribe/gguf.rsnow holds what Cohere GGUF did inline: header check, model path resolution,gguf_backendparsing, the software-Vulkan guard, device logging and the session withn_threads.cohere_gguf.rskeeps only its run options and chunking; its behavior, messages and tests are unchanged. This follows the "shared transcribe.cpp GGUF adapter" suggestion in Add resident Vulkan Cohere GGUF transcription #792.Engine. A
[parakeet] modelending in.ggufruns throughParakeetGgufTranscriber, the same rule Cohere uses.[parakeet] gguf_backendtakes Cohere's values and default, andthreadssets transcribe.cpp's CPU threads. No language hint (v3 detects it). Long audio goes through the existingmax_window_secs/window_overlap_secswindows, because transcribe.cpp 0.2.3's Parakeet uses full attention.streaming = truewith a GGUF model is a config error, and a GGUF whose architecture is notparakeetis refused after load.Features. New
parakeet-gguf = ["dep:transcribe-cpp"], enabled bygpu-vulkan(ascohere-ggufis). Engine availability accepts either feature; parakeet-rs and streaming stay behindparakeet. So the Vulkan binary acceptsengine = "parakeet"with a GGUF model.Setup.
CohereGgufModelInfobecameGgufModelInfowith an engine field, so the picker,setup --download --model,--activate, andinfo modelshealth/verify serve both. Two entries, pinned tohandy-computer/parakeet-tdt-0.6b-v3-ggufatd8d8c32cb2017c57e5307767343e97870f8a7f53; sizes and sha256 match HF's LFS metadata:parakeet-tdt-0.6b-v3-F16.gguf, 1,255,869,856 bytes,d9ec7e2c39da7b4fec3e01e71e82c7f7bbe97741e08c0c054091bf3d520a41d3parakeet-tdt-0.6b-v3-Q8_0.gguf, 739,508,576 bytes,5859f77944efcd8eafa23a6350731960b2b55b2203df51f319665c807d802cc7These point at R2 paths that do not exist yet (
parakeet/parakeet-tdt-0.6b-v3-f16-gguf/and-q8_0-gguf/, named like the Cohere mirror). They need mirroring the way 2f3d95e did for Cohere; until then setup downloads fail with a 404.Docs.
CONFIGURATION.md(.ggufmodel,gguf_backend,threadson GGUF) and a "GGUF on Vulkan (transcribe.cpp)" section inPARAKEET.md.The first commit is #906 (
[parakeet] threads), which targets dev; it drops out of this diff once dev reaches rc/1.2.0.Verification
Release build,
--features parakeet,gpu-vulkan, F16,gguf_backend = "vulkan",voxtype -c <config> transcribe:base.enran on Vulkan and transcribed the 11.7 s clip in 0.78 s. A temporary test ran Whisper, then Parakeet GGUF, then each again in one process: both stayed on Vulkan and each gave the same transcript twice. That is one data point on the two-ggml concern from Add suport for parakeet.cpp #483, not proof; whisper-rs and transcribe.cpp still link separate ggml copies, as with Cohere GGUF today.transcribes_twice_with_one_resident_vulkan_session(env-driven, like Cohere's) passes.gguf_backendvalidation, the header, streaming and architecture rejections, the catalog entries and URLs, health checks, and setup classification.cargo test(1270 lib tests) andcargo test --features parakeet,gpu-vulkan(1293) pass.gpu-vulkanandparakeet-gguf.parakeet,parakeet,gpu-vulkanandcohereshow only errors that rc/1.2.0 already has.Not done
VOXTYPE_VULKAN_DEVICEor waits for the GPU at login the way Whisper does. That is unchanged from Cohere GGUF.transcribe_timeduses the trait default.setup model --setdoesn't take GGUF names yet. Cohere has the same gap.