Instructions to use ai-sage/GigaAM-Multilingual-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ai-sage/GigaAM-Multilingual-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="ai-sage/GigaAM-Multilingual-v2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ai-sage/GigaAM-Multilingual-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
GigaAM Multilingual v2
GigaAM Multilingual-v2 brings speech recognition to 21 languages. The model was pretrained on 10 million hours of unlabelled audio and trained on 155,000 hours of supervised speech. Model uses two RNN-T heads for raw (unformatted) and e2e (formatted) transcripts. Both full-context and streaming (160ms, 320ms, 640ms) ASR are supported.
Versions
ssl: base foundation model.rnnt: RNN-T dual-head ASR with optional language conditioning. Themainbranch points to this revision.
The RNNT revision includes paired SentencePiece tokenizers.
Multilingual WER (%)
Lower is better. GigaAM uses auto language mode in full-context and 640 ms streaming inference.
| Language | GigaAM (776M) | GigaAM (776M, 640 ms) | Omni LLM (7B) | Whisper large-v3 (1.55B) | Qwen3-ASR (1.7B) | Rumble-2-Flash (0.5B) | Parakeet Ultra (0.6B) |
|---|---|---|---|---|---|---|---|
| Average | 3.96 | 5.58 | 14.10 | 44.09 | 59.80 | 52.77 | 55.64 |
| Russian | 2.30 | 3.38 | 6.75 | 4.81 | 6.05 | 8.12 | 4.83 |
| English | 5.42 | 7.48 | 7.86 | 11.04 | 4.55 | 6.23 | 5.62 |
| German | 3.16 | 4.54 | 4.92 | 4.42 | 4.16 | 5.49 | 3.93 |
| Spanish | 3.06 | 3.80 | 3.73 | 3.55 | 3.49 | 3.91 | 3.21 |
| French | 5.36 | 7.11 | 7.13 | 7.80 | 6.04 | 7.97 | 5.70 |
| Italian | 2.28 | 3.13 | 3.38 | 3.68 | 3.54 | 3.80 | 2.65 |
| Dutch | 2.72 | 4.23 | 4.63 | 4.54 | 5.64 | 5.00 | 4.69 |
| Polish | 3.40 | 5.25 | 6.04 | 5.51 | 12.92 | 6.56 | 3.69 |
| Portuguese | 4.32 | 5.75 | 6.09 | 5.24 | 5.49 | 5.43 | 5.75 |
| Romanian | 4.90 | 7.28 | 17.20 | 16.73 | 45.62 | 12.25 | 14.76 |
| Azerbaijani | 5.31 | 8.14 | 24.85 | 26.58 | 80.15 | 17.64 | 100.51 |
| Bashkir | 2.74 | 4.58 | 12.83 | 96.49 | 107.49 | 108.88 | 101.80 |
| Belarusian | 2.50 | 3.71 | 7.25 | 74.02 | 85.09 | 15.58 | 81.70 |
| Armenian | 3.06 | 3.96 | 7.97 | 47.86 | 114.44 | 122.29 | 105.97 |
| Georgian | 4.52 | 6.04 | 10.34 | 68.64 | 127.93 | 136.58 | 113.51 |
| Kyrgyz | 4.32 | 5.71 | 17.51 | 87.32 | 107.44 | 107.04 | 103.25 |
| Kazakh | 3.95 | 5.75 | 14.20 | 35.82 | 105.95 | 107.72 | 101.27 |
| Tajik | 4.98 | 6.05 | 29.82 | 111.82 | 106.55 | 106.69 | 102.65 |
| Turkmen | 6.85 | 10.18 | 30.97 | 108.65 | 108.65 | 106.96 | 101.98 |
| Tatar | 4.31 | 6.08 | 50.72 | 96.66 | 106.94 | 107.15 | 103.49 |
| Uzbek | 3.70 | 5.08 | 21.82 | 104.79 | 107.61 | 106.88 | 97.57 |
Usage
Load the RNN-T revision with Transformers and call transcribe. Pass a supported language tag to select the language. The auto mode is also available.
from transformers import AutoModel
model = AutoModel.from_pretrained(
"ai-sage/GigaAM-Multilingual-v2", revision="rnnt", trust_remote_code=True, language="auto",
device="cuda", fp16_encoder=True,
).eval()
result = model.transcribe("example.wav", language="ru")
print(result["raw"].text)
print(result["e2e"].text)
Use 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. The model uses the auto language setting from the loader unless you select another language.
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
- 10