GigaAM-v4: transcribe.cpp GGUF
GGUF conversions of ai-sage/GigaAM-v4 (e2e RNN-T head) for use with transcribe.cpp.
Ported from upstream commit 180301a, pinned 2026-11-27. Validated against the PyTorch GigaAMDualASR reference at fork commit 4d860cd on 2026-11-27.
Offline Russian and English speech-to-text with greedy RNN-T decoding. 3-stage 4/11/4 Zapformer encoder (768/1024/768 dims, 2x frame stacking/unstacking in stage 1) paired with a 1-layer LSTM RNN-T transducer head. Output is cased and punctuated text from a 1024-piece SentencePiece tokenizer. Not a streaming port and does not translate. Audio past the 25 s training window is encoded in overlapping windows.
Engine requirement: Requires Zapformer support in
transcribe.cpp— currently on70sh1/transcribe.cpp@gigaam-v4(upstream proposal:handy-computer/transcribe.cpp#279). Stocktranscribe.cpp<= 0.5.1 only supports the GigaAM-v3 Conformer encoder.
Downloads
| Quantization | Download | Size | SHA256 |
|---|---|---|---|
| Q8_0 | gigaam-v4-e2e-rnnt-Q8_0.gguf | 243 MiB | debd6179b9948beba5c60c0944285e577f32610dd50dee1233884e4b46e3e29 |
| F32 | gigaam-v4-e2e-rnnt-F32.gguf | 912 MiB | 6cd32ae7ded4ec470075ac7acb79c248b64818f118c6913a96c4a81ae11cd745 |
Validation notes:
- Encoder numerical parity vs PyTorch
GigaAMDualASRon an odd-length clip (T_enc = 113):max_abs = 0.000570,mean_abs = 0.000058, cosine similarity1.000000. - Exact character-for-character transcript match vs PyTorch across 6 Russian and English test clips (including a 33.8 s windowed long-form clip) on CPU F32, CPU Q8_0, Metal F32, and Metal Q8_0.
- Apple M4 Metal
Q8_0speed: ~45x–132x realtime. Full-corpus WER sweep has not been run yet.
Usage
Build the Zapformer-enabled transcribe.cpp branch from source:
git clone -b gigaam-v4 https://github.com/70sh1/transcribe.cpp.git
cd transcribe.cpp
cmake -B build && cmake --build build
Run on a 16 kHz mono WAV:
build/bin/transcribe-cli \
-m gigaam-v4-e2e-rnnt-Q8_0.gguf \
input.wav
If your audio isn't already 16 kHz mono WAV, convert it first:
ffmpeg -i input.mp3 -ar 16000 -ac 1 output.wav
Usage with Hex
Build from 70sh1/hex@gigaam-v4 (see anomalyco/hex#2989), then import gigaam-v4-e2e-rnnt-Q8_0.gguf via Add model file… or:
hex model import gigaam-v4-e2e-rnnt-Q8_0.gguf --name "GigaAM v4"
License
Inherited from the base model: MIT. See the upstream model card for full terms.
Original Model Card
The section below is reproduced from ai-sage/GigaAM-v4 at commit
180301afor offline reference. The upstream card is the authoritative source.
GigaAM-v4
GigaAM-v4 is a Zapformer-based speech foundation model pretrained on 7 million hours of unlabelled audio and trained on 58,000 hours of supervised speech. Model supports full-context and streaming (160ms, 320ms, 640ms), providing both raw and e2e transcripts with dual-head ASR and shared encoder.
Versions
ssl: base foundation model.rnnt: RNN-T dual-head ASR. Themainbranch points to this revision.ctc: CTC dual-head ASR.
The RNNT revision includes paired SentencePiece tokenizers.
Russian WER (%)
Lower is better. All models use full-context E2E outputs.
| Test set or group | GigaAM-v4 RNN-T | GigaAM-v4 CTC | GigaAM-v3 RNN-T | GigaAM-v3 CTC | Whisper large-v3 (auto) | Nemotron 30B-A4B (auto) | Parakeet Ultra | Qwen3-ASR 1.7B (auto) |
|---|---|---|---|---|---|---|---|---|
| Params | 238M | 234M | 222M | 220M | 1.5B | 34B (4.3B active) | 627M | 2B |
| Open-source data | ||||||||
| Golos Crowd | 4.56 | 5.05 | 7.43 | 8.12 | 12.22 | 4.36 | 2.86 | 13.14 |
| Golos Farfield | 3.62 | 4.07 | 4.97 | 5.71 | 16.11 | 8.25 | 6.47 | 20.22 |
| Russian LibriSpeech | 3.69 | 4.06 | 5.77 | 5.93 | 8.61 | 9.16 | 9.19 | 15.16 |
| Mozilla Common Voice 27 | 2.29 | 2.68 | 2.24 | 2.51 | 5.88 | 4.81 | 5.41 | 7.55 |
| In-house data | ||||||||
| Disordered Speech | 12.88 | 12.78 | 18.68 | 16.55 | 33.69 | 35.45 | 32.13 | 44.29 |
| Callcenter | 6.71 | 7.20 | 11.04 | 11.92 | 25.96 | 26.70 | 20.77 | 23.95 |
| Natural Speech | 8.32 | 8.43 | 10.37 | 11.48 | 16.22 | 14.26 | 13.99 | 17.53 |
| Synth IT Terms | 5.07 | 5.61 | 15.27 | 15.23 | 9.63 | 14.63 | 12.57 | 15.31 |
| Education | 6.80 | 7.04 | 9.83 | 10.04 | 15.72 | 12.71 | 12.19 | 15.65 |
| Average | 5.99 | 6.33 | 9.51 | 9.72 | 16.01 | 14.48 | 12.84 | 19.20 |
English: Results on the public subset of the Open ASR benchmark
All full-context and streaming models are E2E. Nemotron is English-forced
| Set | GigaAM-v4 RNN-T | GigaAM-v4 CTC | Whisper large-v3 | Qwen3-ASR | Canary Flash 1B | Parakeet TDT-CTC | GigaAM-v4 RNN-T (640 ms) | Nemotron 3.5 ASR (1120 ms) |
|---|---|---|---|---|---|---|---|---|
| Params | 238M | 234M | 1.55B | 938M | 883M | 1.1B | 238M | 600M |
| Average | 7.28 | 7.83 | 7.70 | 6.67 | 7.96 | 7.85 | 8.49 | 9.51 |
| AMI-Cleaned | 7.47 | 11.34 | 13.66 | 9.47 | 11.76 | 12.19 | 8.47 | 12.19 |
| Earnings22-Cleaned-AA-chunked | 7.91 | 7.71 | 7.81 | 8.07 | 6.99 | 8.36 | 8.66 | 13.54 |
| Gigaspeech-Cleaned | 8.38 | 9.78 | 8.37 | 7.62 | 8.65 | 8.43 | 8.98 | 9.36 |
| SPGISpeech | 2.00 | 2.15 | 2.69 | 2.74 | 1.69 | 1.99 | 2.36 | 3.03 |
| URGENT24 | 15.57 | 14.84 | 13.65 | 11.59 | 17.66 | 14.96 | 19.11 | 18.23 |
| Voice Arena Monsoon | 4.88 | 4.44 | 3.95 | 4.13 | 4.58 | 5.10 | 7.06 | 6.33 |
| Voxpopuli-AA-Cleaned | 4.79 | 4.55 | 3.79 | 3.06 | 4.42 | 3.95 | 4.81 | 3.94 |
Usage
Load an ASR revision with Transformers and call transcribe. The result contains unformatted raw text and formatted e2e text.
from transformers import AutoModel
model = AutoModel.from_pretrained(
"ai-sage/GigaAM-v4", revision="rnnt", trust_remote_code=True,
device="cuda", fp16_encoder=True,
).eval()
result = model.transcribe("example.wav")
print(result["raw"].text)
print(result["e2e"].text)
Use revision="ctc" for CTC ASR or revision="ssl" for the SSL model.
Streaming
Send audio chunks to the stateful stream to receive formatted text as it arrives. Calling flush() returns any remaining text.
stream = model.create_stream(future_context_ms=160)
audio_pieces = model.model.prepare_wav("example.wav")[0][0].split(32000)
for packet in audio_pieces:
print(stream.transcribe_partial(packet)["e2e"].text, end="")
print(stream.flush()["e2e"].text, end="")
ONNX
Export the model as a full-context or streaming graph.
model.to_onnx("onnx_fc")
sessions, cfg = model.load_onnx("onnx_fc", model.model.cfg.model_name)
print(model.infer_onnx("example.wav", cfg, sessions)["e2e"][0])
prefix = model.to_onnx("onnx_stream", streaming=True)
sessions, cfg = model.load_onnx("onnx_stream", prefix)
stream = model.create_onnx_stream(cfg, sessions, future_context_ms=160)
for packet in audio_pieces:
print(stream.transcribe_partial(packet)["e2e"].text, end="")
print(stream.flush()["e2e"].text, end="")
Dependencies
pip install numpy "transformers<5" onnx onnxruntime hydra-core omegaconf sentencepiece tqdm
For fine-tuning and more advanced usage, see the GigaAM GitHub repository.