GigaAM-Multilingual-v2

ai-sage/GigaAM-Multilingual-v2

作者
ai-sage
任务
语音识别
下载量
2,607
点赞数
54
趋势分
17
许可证
mit
收录时间
2026/11/28

license: mit language:

  • ru
  • en
  • kk
  • ky
  • uz
  • be
  • fr
  • es
  • ba
  • ka
  • hy
  • ro
  • tk
  • az
  • tg
  • de
  • it
  • nl
  • pl
  • pt
  • tt pipeline_tag: automatic-speech-recognition library_name: transformers

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. The main branch 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.

LanguageGigaAM (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)
Average3.965.5814.1044.0959.8052.7755.64
Russian2.303.386.754.816.058.124.83
English5.427.487.8611.044.556.235.62
German3.164.544.924.424.165.493.93
Spanish3.063.803.733.553.493.913.21
French5.367.117.137.806.047.975.70
Italian2.283.133.383.683.543.802.65
Dutch2.724.234.634.545.645.004.69
Polish3.405.256.045.5112.926.563.69
Portuguese4.325.756.095.245.495.435.75
Romanian4.907.2817.2016.7345.6212.2514.76
Azerbaijani5.318.1424.8526.5880.1517.64100.51
Bashkir2.744.5812.8396.49107.49108.88101.80
Belarusian2.503.717.2574.0285.0915.5881.70
Armenian3.063.967.9747.86114.44122.29105.97
Georgian4.526.0410.3468.64127.93136.58113.51
Kyrgyz4.325.7117.5187.32107.44107.04103.25
Kazakh3.955.7514.2035.82105.95107.72101.27
Tajik4.986.0529.82111.82106.55106.69102.65
Turkmen6.8510.1830.97108.65108.65106.96101.98
Tatar4.316.0850.7296.66106.94107.15103.49
Uzbek3.705.0821.82104.79107.61106.8897.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.

内容来源:Hugging Face 模型卡

在 Hugging Face 查看