Skip to content

Add GigaAM Multilingual-v2 E2E RNN-T support - #311

Merged
cjpais merged 7 commits into
handy-computer:mainfrom
nashio0jj62:feat/gigaam-multilingual-v2
Dec 4, 2026
Merged

cjpais merged 7 commits into
handy-computer:mainfrom
nashio0jj62:feat/gigaam-multilingual-v2

Conversation

@nashio0jj62

Copy link
Copy Markdown
Contributor

Summary

Offline support for GigaAM Multilingual-v2 E2E RNN-T, model supports 21 languages language hint like --language kk/hy is optional

Scope

Extended the GigaAM runtime and GGUF converter, building on #285. Added reference comparisons and smoke tests. Credit to @ai-babai for the C++ prototype and @kalpakprod for the converter patch

AI Assistance

I ran the prototype on Windows. Codex helped me adapt the C++ runtime and GGUF converter, add tests, and validate the port.

Validation

Three Kazakh clips matched PyTorch exactly with and without --language kk. All words matched the references on three Armenian clips, with punctuation differences on two. All 18 tensor comparisons passed across the Russian and English samples

Closes #302

@nashio0jj62
nashio0jj62 requested a review from cjpais as a code owner December 3, 2026 18:24
- quantize: keep lang.embed.weight F32. The loader reads it through an
  F32-only slot, so every quantized GGUF failed to load; a policy unit test
  pins the F32-only lookup tables for every preset.
- RNN-T emissions per frame come from stt.gigaam.rnnt.max_symbols (the
  checkpoint's max_symbols_per_step) instead of a guess from the language
  list; GGUFs without the KV keep 10.
- 'auto' is accepted as the default language slot, like sensevoice.
- Restore three comments mangled by a Windows code page round trip.
- Tolerances cover macOS arm64 drift as well as Windows x64.
- The WER reference runner takes Multilingual-v2 and a language slot.
Record seeded from the intake and the published GGUFs. The intake now
carries the model card's WER as context; the card names no dataset.
The joint's output projection is a [n_classes, 320] matrix scored once per
frame. Without BLAS (the default off Apple) each dot product was one
running sum the compiler may not vectorize, so Multilingual-v2's 4027-class
joint made decode about as slow as encode on a Ryzen 4750U (3.0 s for the
35 s dots sample, CPU Q8_0).

Dot products now keep eight partial sums, and the speculative span scores
each class row against four frames per load. dots decode: Multilingual-v2
3.0 s -> 0.74 s, v4 0.80 s -> 0.27 s, v3 e2e-rnnt 0.69 s -> 0.21 s.
Transcripts and token counts are identical to the previous build on 75
runs across v3 (CTC and RNN-T), v4 and Multilingual-v2 F32/Q8_0/Q4_K_M.
The BLAS path is unchanged.
Catalog record with every asr-publication-v2 accuracy and speed cell at
d704775 (L40S WER; M4 Max, Ryzen 4750U and M1 speed), the model page,
the family doc section with the capability table and the reference WER
gate, the HF card spec, and the rendered roll-ups.
No semicolons or dashes in the model page, family doc section, HF card,
porting log and catalog notes.
Model page gets a What it's for section and a Languages section like the
other multilingual pages; the HF summary and WER note follow the
Parakeet and Nemotron cards.
@cjpais
cjpais merged commit 009bcf1 into handy-computer:main Dec 4, 2026
1 check passed
shaba added a commit to shaba/transcribe.cpp that referenced this pull request Dec 4, 2026
The Multilingual-v2 merge (handy-computer#311) validates the Zapformer frontend
dimensions before the streaming block, so a zero-subsampling fixture no
longer reaches the streaming check; drop it. Also fix a leftover loop
header from merging the mutant table.
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.

Add GigaAM Multilingual-v2 E2E RNN-T support to transcribe.cpp

2 participants