GigaAM-v4 RNN-T, ONNX (int8 encoder)
ONNX export of the punctuated, cased RNN-T model GigaAM-v4 by Sber (salute-developers/GigaAM, MIT) for TypeWhisper's GigaAM plugin. It covers Russian and English and runs with ONNX Runtime alone.
The files were produced by export-gigaam-onnx.py (Don Yin's export script, MIT, with the model name as an argument) from Sber's checkpoint v4_rnnt with GigaAM at commit e9bbf2e773eedd217c6f0d3b89b9728c41332b7d.
| file | content |
|---|---|
v4_rnnt_encoder.int8.onnx |
encoder, dynamic int8 quantization of MatMul and Gemm only |
v4_rnnt_advance.onnx |
GigaAM's decoder graph with the greedy RNN-T loop inside, plus a token_frames output |
v4_rnnt_e2e_vocab.txt |
SentencePiece pieces with their ids, plus <blk> |
Running it
- Compute 64 log-mel features from 16 kHz mono audio with the GigaAM v3 feature extractor (for example
gigaam_v3.onnxfrom onnx-asr). Pad clips under 1 s with zeros and feed up to about 20 s at a time. - Run the encoder on
audio_signalandlength. This model has no language input. - Pass
head_outputsandencoded_lento the advance graph asprojectedandlengths. It returnstokensandtoken_framesof shape[steps, heads, batch]. - Head 0 is the punctuated, cased transcript. Skip
-1entries, map ids through the vocabulary and replace▁with a space.
Benchmark
Results on the TypeWhisper benchmark corpus, with this export run the way the plugin runs it: TypeWhisper/typewhisper-benchmark#36. WER over the core suites: Russian 3.59 %, English 5.72 %. 84× real time on an M5 Pro CPU.