Skip to content

Run Parakeet GGUF models on Vulkan through transcribe.cpp - #908

Closed
crmne wants to merge 4 commits into
peteonrails:rc/1.2.0from
crmne:feat/parakeet-gguf
Closed

crmne wants to merge 4 commits into
peteonrails:rc/1.2.0from
crmne:feat/parakeet-gguf

Conversation

@crmne

@crmne crmne commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

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:

audio GGUF F16, Vulkan GGUF Q8_0, Vulkan ONNX fp32, CPU, 4 threads ONNX fp32, CPU, 12 threads ONNX fp32, MIGraphX
5 s 0.11 0.09 0.35 0.26 0.44
12 s 0.19 0.20 0.68 0.52 0.84
1 min 0.95 0.91 3.83 2.81 4.58
3 min 3.43 3.42 12.3 9.30 14.1

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.rs now holds what Cohere GGUF did inline: header check, model path resolution, gguf_backend parsing, the software-Vulkan guard, device logging and the session with n_threads. cohere_gguf.rs keeps 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] model ending in .gguf runs through ParakeetGgufTranscriber, the same rule Cohere uses. [parakeet] gguf_backend takes Cohere's values and default, and threads sets transcribe.cpp's CPU threads. No language hint (v3 detects it). Long audio goes through the existing max_window_secs / window_overlap_secs windows, because transcribe.cpp 0.2.3's Parakeet uses full attention. streaming = true with a GGUF model is a config error, and a GGUF whose architecture is not parakeet is refused after load.

  • Features. New parakeet-gguf = ["dep:transcribe-cpp"], enabled by gpu-vulkan (as cohere-gguf is). Engine availability accepts either feature; parakeet-rs and streaming stay behind parakeet. So the Vulkan binary accepts engine = "parakeet" with a GGUF model.

  • Setup. CohereGgufModelInfo became GgufModelInfo with an engine field, so the picker, setup --download --model, --activate, and info models health/verify serve both. Two entries, pinned to handy-computer/parakeet-tdt-0.6b-v3-gguf at d8d8c32cb2017c57e5307767343e97870f8a7f53; sizes and sha256 match HF's LFS metadata:

    • parakeet-tdt-0.6b-v3-F16.gguf, 1,255,869,856 bytes, d9ec7e2c39da7b4fec3e01e71e82c7f7bbe97741e08c0c054091bf3d520a41d3
    • parakeet-tdt-0.6b-v3-Q8_0.gguf, 739,508,576 bytes, 5859f77944efcd8eafa23a6350731960b2b55b2203df51f319665c807d802cc7

    These 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 (.gguf model, gguf_backend, threads on GGUF) and a "GGUF on Vulkan (transcribe.cpp)" section in PARAKEET.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:

clip load transcription WER
11.7 s dictation 0.66 s 0.21 s 2.4%
610 s LibriSpeech (3 windows) 0.23 s 10.63 s 2.0%
  • Whisper alongside. In the same binary, Whisper base.en ran 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.
  • Hardware test. The new ignored test transcribes_twice_with_one_resident_vulkan_session (env-driven, like Cohere's) passes.
  • Unit tests cover dispatch by extension, gguf_backend validation, the header, streaming and architecture rejections, the catalog entries and URLs, health checks, and setup classification.
  • Suites. cargo test (1270 lib tests) and cargo test --features parakeet,gpu-vulkan (1293) pass.
  • Clippy. Clean for default, gpu-vulkan and parakeet-gguf. parakeet, parakeet,gpu-vulkan and cohere show only errors that rc/1.2.0 already has.

Not done

  • Q8_0 was benchmarked through transcribe.cpp directly, not through voxtype.
  • Neither GGUF engine applies VOXTYPE_VULKAN_DEVICE or waits for the GPU at login the way Whisper does. That is unchanged from Cohere GGUF.
  • transcribe_timed uses the trait default.
  • setup model --set doesn't take GGUF names yet. Cohere has the same gap.

crmne added 4 commits October 21, 2026 15:55
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.
@crmne
crmne requested a review from peteonrails as a code owner October 21, 2026 18:05
crmne added a commit to crmne/voxtype that referenced this pull request Oct 21, 2026
# Conflicts:
#	docs/CONFIGURATION.md
#	src/config/engines/parakeet.rs
#	src/config/schema.rs
#	src/transcribe/parakeet.rs
#	src/tui/engine.rs
@peteonrails

Copy link
Copy Markdown
Owner

@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.

peteonrails added a commit that referenced this pull request Nov 10, 2026
…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>
@peteonrails

Copy link
Copy Markdown
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants