Repository navigation
vibevoice_asr_streaming: add the 1.5B size, which the loader already handles - #613
Conversation
…handles The 1.5B streaming checkpoint runs through the existing loader with no code change. Layer count, hidden size and head counts come from the checkpoint's own config.json and the tensor names match the 7B's, so there was nothing size specific to extend. The only structural difference is that embed_tokens is (151936, 1536) against the 7B's padded (152064, 3584), which is harmless because the shape is checked against vocab_size from the same config. Adds bf16/q8_0/q4_k package entries, the model guide section, and the README and ASR/GGUF doc rows. Also adds tools/asr_wer.py, which scores a family against the four LibriSpeech clips already in assets/asr_validation/ and is what produced the numbers in the guide. WER on those four clips, CUDA, greedy: 7B q4_k 5.86 GB 4.35% 1.5B bf16 5.64 GB 4.35% 1.5B q8_0 3.34 GB 5.80% 1.5B q4_k 2.12 GB 7.25% That is 69 words, so the spread is two substitutions and only the ordering is meaningful. The like-for-like pair is the two q4_k rows, where the 7B leads. The package entries point at audio-cpp/VibeVoice-ASR-Streaming-1.5B-GGUF, which does not exist yet -- the GGUFs need uploading before these ids resolve. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01QCCx4pMMex72qrNomPh5yL
Doc conventions, checked against neighbouring entries rather than against my own change: - The README row put the description clause after a <br>, where every other multi-variant row uses <br> only between model names, so it read as a third model. Now "7B/1.5B with persistent decoder state...". - docs/asr.md had two rows for one family; every other family there gets one, including multi-size moonshine_asr. Collapsed. - webui/configs/models_catalog.json had no 1.5B entry, though multi-size families there do list each size. Added at min_vram_gb 6 against the 7B's 18; low VRAM is the main reason to reach for this size in a web UI. tools/asr_wer.py: - --threads defaulted to 16, which is one machine's core count leaking into an upstream tool. Now min(os.cpu_count() or 4, 16). - The stderr diagnostic only printed on a non-zero exit, so a model that exits 0 and emits nothing printed a bare 100% WER with no reason -- the same class of silent failure this tool was hardened against one branch earlier. Now prints the exit code and stderr tail whenever the hypothesis is empty. - A per-clip timeout propagated and discarded every clip already scored. Now scored as a miss, with --timeout to set it. - A missing reference transcript raised a bare FileNotFoundError. No scoring change: 1.5B q4_k re-scores 7.25%, and forcing a bad model path now reports "model path does not exist" per clip instead of a silent 100%. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01QCCx4pMMex72qrNomPh5yL
…by backend
tools/prepare_vibevoice_asr_streaming_gguf.py builds the BF16/Q8_0/Q4_K packages
for either size and can create the HF repo and upload them, so publishing is one
command rather than a described procedure. Nothing uploads without --upload.
It stages a curated sidecar set rather than pointing --root at the raw snapshot,
which would also embed README.md and the safetensors index: --root takes every
file under 64 MB that is not itself weights.
While testing it, a q4_k package scored 5.80% where the same precision had
scored 7.25%. The cause was this script calling asr_wer.py without --backend,
which defaults to cpu, so a CPU number was compared against a CUDA one. The
script now takes --verify-backend and defaults to cuda.
That surfaced something worth recording: CPU and CUDA disagree on quantized
packages, deterministically.
package CPU CUDA
1.5B bf16 4.35% 4.35%
1.5B q8_0 4.35% 5.80%
1.5B q4_k 5.80% 7.25%
7B q4_k 4.35% 4.35%
Not a structural quantization issue -- both q4_k models are {Q4_K: 319,
BF16: 857, F16: 1} with no rows misaligned to the 256-element block -- and not
cuBLAS FP16 accumulation, since GGML_CUDA_FORCE_CUBLAS_COMPUTE_32F and _16F both
leave the output unchanged. It is upstream ggml quantizing activations
differently per backend: Q4_K weights meet Q8_K activations on CPU (one scale
per 256) and Q8_1 on CUDA (scale and sum per 32), and Q8_0 meets Q8_0 against
Q8_1. BF16 quantizes no activations, which is exactly why its rows agree.
The visible effect is one fragile word, "cutter" on CPU against "country" on
CUDA. Expected upstream behavior, nothing to fix here, but it means a WER for a
quantized package needs its backend attached. The model guide now carries both
columns and docs/gguf.md says so.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01QCCx4pMMex72qrNomPh5yL
|
@christopherthompson81 Do you want to host the GGUFs? Running out of SSD space now, and I've reserved what's left for AuK and YuE2 LoRA training 😅 |
|
@0xShug0 Sure, give me a few and I'll put them up. |
|
@0xShug0 Done — they're up here:
Mirrors the 7B repo: same card metadata and structure, same file naming, flat layout, MIT carried over, upstream revision pinned ( I've left the spec pointing at One thing worth knowing before you copy: these GGUFs embed the model spec as it stood before this PR added the 1.5B |
7458c48 to
738a84c
Compare
|
@christopherthompson81 Appreciate it if you could update the spec to point to your repo. I'm more than happy to see more model repos providing audio.cpp-compatible weights. |
The 1.5B GGUFs are published at christopherthompson81/VibeVoice-ASR-Streaming-1.5B-GGUF, mirroring the 7B repo's card, file naming and flat layout, so the three packages now resolve instead of 404ing. The model guide names the repo the way the 7B section does. The published GGUFs were rebuilt from the pristine upstream snapshot after this branch added the 1.5B packages[] entries, so their embedded spec carries all six packages rather than only the 7B's three, with the 1.5B entries pointing at the repo they actually ship from. Rebuilding meant the measured numbers no longer described the published bytes, so all six were re-scored on the new files: BF16 4.35/4.35, Q8_0 5.80/4.35 and Q4_K 7.25/5.80 for CUDA/CPU, matching the table exactly. Verified the whole loop as a user sees it -- model_manager_v2 install from the repo, the downloaded file carrying the six-package spec, and a transcription at the published 7.25%. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01QCCx4pMMex72qrNomPh5yL
|
@0xShug0 Done on both counts. Spec now points at the repo, and the model guide names it the way the 7B section does. I also fixed the embedded-spec wrinkle I flagged rather than leaving it. The files were rebuilt from the pristine upstream snapshot after this branch added the 1.5B Rebuilding meant the measured numbers no longer described the published bytes, so I re-scored all six on the new files:
Identical to the table in the PR. And I ran the loop a user actually takes — install from the repo, confirm the downloaded file carries the six-package spec, transcribe with it — which came back at the published 7.25%. Happy to move the repo into an org later if you ever want these under |
|
Merged! Thanks! |
Adds the VibeVoice ASR Streaming 1.5B size to the existing
vibevoice_asr_streamingfamily. Picked up from #484.No code change was needed
The 1.5B checkpoint runs through the existing loader as-is. Layer count, hidden size and head counts are read from the checkpoint's own
config.json, and the tensor names are identical to the 7B's, so there was nothing size-specific to extend. This PR is package entries, docs, and a scoring tool.The one structural difference is the vocabulary:
embed_tokensis(151936, 1536)here against the 7B's padded(152064, 3584). It is harmless, because the shape is validated againstvocab_sizefrom the same config. It would only matter to something that treats the 7B's padded count as a constant — a shared tokenizer bundle, or a logits slice sized for the 7B — so I noted it in the model guide for anyone adding code that spans both sizes.Measurements
WER over the four LibriSpeech clips already in
assets/asr_validation/librispeech/, greedy decode, all rows through one binary:vibevoice_asr_streaming_7b_q4_kvibevoice_asr_streaming_1_5b_bf16vibevoice_asr_streaming_1_5b_q8_0vibevoice_asr_streaming_1_5b_q4_kPlease read these as a sanity check, not a benchmark. Four clips is 69 words, so the entire spread above is two substitutions and one of them moves the number 1.4 points. The like-for-like pair is the two
q4_krows, where the 7B leads. The tie between 7B Q4_K and 1.5B BF16 is a coincidence of different clips summing to the same total, not parity — I would not want that row quoted as "the 1.5B matches the 7B".Worth noting that 1.5B BF16 is smaller on disk than 7B Q4_K (5.64 vs 5.86 GB). "1.5B" names the decoder; the audio encoder is a large fixed cost that does not shrink with it.
CPU and CUDA disagree on quantized packages, and that is upstream
The two columns above are not a mistake. A quantized package scores differently per backend, deterministically — six repeat runs per file, and thread counts of 1/4/16, are all stable within a backend. On these clips the entire effect is one fragile word:
Ruled out: it is not a structural quantization problem (both Q4_K models are
{Q4_K: 319, BF16: 857, F16: 1}with zero rows misaligned to the 256-element k-quant block), and it is not cuBLAS FP16 accumulation (GGML_CUDA_FORCE_CUBLAS_COMPUTE_32F=1and..._16F=1both leave the output unchanged, so these matmuls are not going through cuBLAS).It is upstream ggml quantizing the activations differently per backend:
vec_dot_typeGGML_TYPE_Q8_K— one scale per 256quantize_row_q8_1_cuda— scale+sum per 32GGML_TYPE_Q8_0— scale per 32quantize_row_q8_1_cuda— scale+sum per 32Different block size and different block format, deliberately. That predicts the table exactly: BF16 quantizes no activations and its two columns agree; every quantized package diverges. The 7B not flipping here is four clips, not immunity.
Nothing to fix in this PR — I mention it because it means a WER figure for a quantized package is not interpretable without its backend, which is now stated everywhere this branch prints one. Happy to move this note somewhere more permanent if you think it belongs in
docs/gguf.mdat greater length than the sentence I added.⚠ The download repo does not exist yet
The new package ids point at
audio-cpp/VibeVoice-ASR-Streaming-1.5B-GGUF, following the naming of the 7B repo:So these three ids resolve correctly through the model manager but will 404 on download until that repo exists and the GGUFs are uploaded — which needs your account, not mine.
tools/prepare_vibevoice_asr_streaming_gguf.py --size 1.5b --uploaddoes the whole thing in one command (see below), and I have the converted BF16/Q8_0/Q4_K files here if you would rather not spend the conversion time.This is the one thing that needs a decision from you. If you would rather not add another repo, say so and I will re-point the entries into the existing 7B repo or
audio-cpp/audio.cpp-gguf— it is a three-line change to the spec. Everything else in the PR is independent of that choice.Surface sync
Per
docs/maintainers/loader_and_catalog.md:audiocpp_cli --list-loaders --jsonemitsvibevoice_asr_streamingtools/model_manager_v2.py list --jsonnow shows six packages under that familytools/model_manager_v2.py info vibevoice_asr_streaming_1_5b_q8_0resolves the repo, file and target directorytools/check_loader_catalog_sync.pyreportsok(the remaining warnings are pre-existingformat=safetensorsnotices on other families)docs/asr.md/docs/gguf.mdtables updatedwebui/configs/models_catalog.jsongains a 1.5B entry atmin_vram_gb: 6against the 7B's 18, since multi-size families there already list each size and low VRAM is the main reason to reach for this onePublishing is a script, not a procedure
tools/prepare_vibevoice_asr_streaming_gguf.pydoes the whole thing for either size:It downloads the source from HF (or takes a local
--source), stages the 8 sidecars, converts to BF16/Q8_0/Q4_K, optionally scores each result, andcreate_repo(exist_ok=True)+ uploads. Nothing is uploaded unless--uploadis passed. Bare--uploaduses the repo id from the model spec for that size.It stages a curated sidecar set rather than pointing
--rootat the raw snapshot, because--rootembeds every file under 64 MB that is not itself weights — the raw checkout would putREADME.mdand the safetensors index inside the GGUF.I have run it end to end here apart from the upload step, which needs your token. If you would rather publish by hand, the script is still the record of exactly which flags produced the validated files.
tools/asr_wer.pyAlso included, because it produced the numbers above and the assets it scores against are already in the tree. It runs a family over the LibriSpeech clips and reports WER. Two notes from building it, in case they are useful beyond this PR:
text_output=line and this family's multi-line diarized output withSpeaker N:prefixes. Reading only the first line of the diarized form scored a perfectly working 7B at 100% WER.Drop it from the PR if you would rather not carry it; nothing else here depends on it.
Second commit is self-review
I read the diff back before marking this ready and fixed eight things, which is why there is a second commit. Three were doc-convention slips found by comparing against neighbouring rows — the README row rendered its description clause as a third model variant,
docs/asr.mdgot two rows for a family where every other family has one, and the webui catalog was missing the 1.5B entirely. The rest were inasr_wer.py: a--threadsdefault of 16 that was one machine's core count, a per-clip timeout that discarded every already-scored clip, a bareFileNotFoundErroron a missing reference, and a diagnostic that only printed on a non-zero exit — so a model exiting 0 with no output would still have reported a silent 100% WER, the very thing the parsing fix above was for. Squash if you would rather not carry the history.Verified the fixes changed nothing measured: 1.5B Q4_K re-scores 7.25%, and a deliberately bad model path now reports
model path does not existper clip.🤖 Generated with Claude Code
https://claude.ai/code/session_01QCCx4pMMex72qrNomPh5yL