Instructions to use ai-sage/GigaAM-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ai-sage/GigaAM-v4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="ai-sage/GigaAM-v4", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ai-sage/GigaAM-v4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
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.
- Downloads last month
- 13