GigaAM-v4

ai-sage/GigaAM-v4

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

license: mit language:

  • ru
  • en pipeline_tag: automatic-speech-recognition library_name: transformers

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. The main branch 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 groupGigaAM-v4 RNN-TGigaAM-v4 CTCGigaAM-v3 RNN-TGigaAM-v3 CTCWhisper large-v3 (auto)Nemotron 30B-A4B (auto)Parakeet UltraQwen3-ASR 1.7B (auto)
Params238M234M222M220M1.5B34B (4.3B active)627M2B
Open-source data
Golos Crowd4.565.057.438.1212.224.362.8613.14
Golos Farfield3.624.074.975.7116.118.256.4720.22
Russian LibriSpeech3.694.065.775.938.619.169.1915.16
Mozilla Common Voice 272.292.682.242.515.884.815.417.55
In-house data
Disordered Speech12.8812.7818.6816.5533.6935.4532.1344.29
Callcenter6.717.2011.0411.9225.9626.7020.7723.95
Natural Speech8.328.4310.3711.4816.2214.2613.9917.53
Synth IT Terms5.075.6115.2715.239.6314.6312.5715.31
Education6.807.049.8310.0415.7212.7112.1915.65
Average5.996.339.519.7216.0114.4812.8419.20

English: Results on the public subset of the Open ASR benchmark

All full-context and streaming models are E2E. Nemotron is English-forced

SetGigaAM-v4 RNN-TGigaAM-v4 CTCWhisper large-v3Qwen3-ASRCanary Flash 1BParakeet TDT-CTCGigaAM-v4 RNN-T (640 ms)Nemotron 3.5 ASR (1120 ms)
Params238M234M1.55B938M883M1.1B238M600M
Average7.287.837.706.677.967.858.499.51
AMI-Cleaned7.4711.3413.669.4711.7612.198.4712.19
Earnings22-Cleaned-AA-chunked7.917.717.818.076.998.368.6613.54
Gigaspeech-Cleaned8.389.788.377.628.658.438.989.36
SPGISpeech2.002.152.692.741.691.992.363.03
URGENT2415.5714.8413.6511.5917.6614.9619.1118.23
Voice Arena Monsoon4.884.443.954.134.585.107.066.33
Voxpopuli-AA-Cleaned4.794.553.793.064.423.954.813.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.

内容来源:Hugging Face 模型卡

在 Hugging Face 查看