How to Run GigaAM-v4 and GigaAM Multilingual v2 Locally: Fast Speech-to-Text on a CPU

Cover image for How to Run GigaAM-v4 and GigaAM Multilingual v2 Locally: Fast Speech-to-Text on a CPU: Screenshot: ai-sage/GigaAM-v4 on Hugging Face

Key facts

Sources checked Nov 28, 2026

  • GigaAM-v4 (Russian + English, 238M parameters) and GigaAM Multilingual v2 (21 languages) are Sber’s new MIT-licensed speech-recognition models. Both were published on Hugging Face on November 26–27, 2026.
  • They run on a plain CPU. On our 8-vCPU test box, GigaAM-v4 transcribed a 10.4-second clip in 0.63 s and a 62.6-second file in 1.47 s, peaking at about 1.9 GB of RAM.
  • You need Python 3.10+, ffmpeg on your PATH, transformers<5, and one package the model card leaves out: soundfile.
  • Clips longer than 30 seconds need transcribe_longform(), which uses GigaAM’s built-in voice detector. Plain transcribe() raises an error.
  • Streaming (160/320/640 ms chunks), word timestamps and ONNX export all worked in our tests.

Tested on 8 vCPU Intel Xeon, 15 GB RAM, no GPU, Debian 13, Python 3.12.16, torch 2.15.0+cpu, transformers 4.57.6

GigaAM is a speech-to-text family from Sber’s SaluteDevices team, and its newest models are small, permissively licensed, and accurate enough to compete with Whisper. This guide shows how to install GigaAM-v4 and GigaAM Multilingual v2 on Windows, macOS or Linux and transcribe short files, long recordings and live streams. Every command below was run on our test machine. For how other local speech models compare, see our local speech-to-text roundup.

Params238M (v4) / 776M (Multilingual v2)
LicenseMIT
VRAMNone needed; ~2 GB RAM on CPU
Context30 s per call; longer via built-in VAD

Which GigaAM model should you install?

GigaAM-v4 GigaAM Multilingual v2
Languages Russian, English 21, including Russian, English, German, Spanish, French, Italian, Dutch, Polish, Portuguese, Romanian, Kazakh, Uzbek, Georgian, Armenian
ASR heads RNN-T (main) or CTC RNN-T (main)
Size 238M parameters (RNN-T); about 0.5 GB downloaded 776M parameters per the card; about 1.5 GB downloaded
Streaming 160, 320, 640 ms 160, 320, 640 ms
License MIT MIT

Sber’s own tables put GigaAM-v4 at an average 7.28% word error rate on its English test sets, compared with 7.70% for Whisper large-v3. It averages 5.99% on its Russian sets. For Multilingual v2, the card reports an average of 3.96% across its 21 languages. These are vendor numbers we haven’t reproduced. In general, pick v4 for English or Russian and Multilingual v2 for everything else.

Screenshot of ai-sage/GigaAM-Multilingual-v2 on Hugging Face
Screenshot: ai-sage/GigaAM-Multilingual-v2 on Hugging Face (official page, captured December 1, 2026).

What you need

  • OS: Windows 10/11, macOS or Linux. The card’s example targets an NVIDIA GPU (CUDA); we tested CPU only, which works fine.
  • Python: 3.10 or newer (the GigaAM repo’s minimum). We used 3.12.16.
  • ffmpeg: required. GigaAM’s loader shells out to ffmpeg to decode and resample audio, so it must be on your PATH. On Windows, install it with winget install Gyan.FFmpeg. On macOS, use brew install ffmpeg. On Debian/Ubuntu, use sudo apt install ffmpeg.
  • RAM: about 2 GB free for v4 and more for Multilingual v2. Our peak for v4 was 1.86 GB, including long-form transcription.
  • Disk: about 1 GB for PyTorch CPU wheels, plus 0.5 GB (v4) or 1.5 GB (Multilingual v2) of model files in the Hugging Face cache.

Step 1: Create a virtual environment and install packages

python -m venv gigaam-env
# Windows: gigaam-env\Scripts\activate
source gigaam-env/bin/activate

# CPU-only PyTorch (NVIDIA users: use the CUDA index URL from pytorch.org instead)
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu

# The model card's dependency list, plus soundfile
pip install numpy "transformers<5" onnx onnxruntime hydra-core omegaconf sentencepiece tqdm soundfile

We tested with torch 2.15.0 (CPU), transformers 4.57.6 and onnxruntime 1.32.0. Keep transformers below version 5, as the card says. If you skip soundfile, loading fails with This modeling file requires the following packages that were not found in your environment: soundfile.

Step 2: Transcribe your first file

Save this as transcribe.py. The card’s example uses device="cuda", fp16_encoder=True. On a CPU, use device="cpu" and turn fp16 off.

from transformers import AutoModel

model = AutoModel.from_pretrained(
    "ai-sage/GigaAM-v4", revision="rnnt", trust_remote_code=True,
    device="cpu", fp16_encoder=False,
).eval()

result = model.transcribe("example.wav")
print(result["raw"].text)   # lowercase, no punctuation
print(result["e2e"].text)   # formatted, with punctuation and capitals
python transcribe.py

trust_remote_code=True downloads and runs Sber’s model code from the Hugging Face repo, so only use it with repos you trust. Because ffmpeg handles decoding, any common format works. We passed a FLAC file directly, with no conversion.

Verification. On a 10.4-second LibriSpeech sample, the first run printed:

He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick peppered, flour-fattened sauce.

That matches the reference transcript word for word. Loading took 5.7 s and transcription took 0.63 s.

Step 3: Use Multilingual v2 for other languages

model = AutoModel.from_pretrained(
    "ai-sage/GigaAM-Multilingual-v2", revision="rnnt", trust_remote_code=True,
    language="auto", device="cpu", fp16_encoder=False,
).eval()

result = model.transcribe("example.wav", language="en")  # or "auto", "de", "kk", ...
print(result["e2e"].text)

With both language="en" and auto, our English clip came back correct, with slightly different commas. It took 1.41 s on CPU, about twice as long as v4, which fits the bigger model.

Step 4: Long recordings (over 30 seconds)

Plain transcribe() refuses anything over 30 seconds:

ValueError: Audio exceeds 30 seconds. Use transcribe_longform(...).

The fix is built in. transcribe_longform() cuts the audio at pauses using GigaAM’s own voice-activity model, which ships in the repo, so you don’t need a separate VAD package or token. It then transcribes the segments in batches.

result = model.transcribe_longform("meeting.wav", word_timestamps=True)
for seg in result["e2e"].segments:
    print(f"[{seg.start:6.1f}–{seg.end:6.1f}] {seg.text}")

Our 62.6-second test file was split into 6 segments and transcribed in 1.47 s, with a start and end time for every word.

Step 5: Live streaming

For live captions, create a stream and feed it chunks. future_context_ms sets how far ahead the model looks: 160, 320 or 640 ms. Lower values cut latency, and higher values improve accuracy.

stream = model.create_stream(future_context_ms=160)
pieces = model.model.prepare_wav("example.wav")[0][0].split(32000)  # 2-second chunks at 16 kHz
for packet in pieces:
    print(stream.transcribe_partial(packet)["e2e"].text, end="", flush=True)
print(stream.flush()["e2e"].text)

Streaming Multilingual v2 with a 160 ms look-ahead produced the same sentence with one punctuation change, in 2.25 s total. In a real app, you’d feed microphone audio (16 kHz mono float) instead of slicing a file.

Optional: Export to ONNX

ONNX lets you run GigaAM with only onnxruntime, which suits small servers and apps:

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])

The export took 8.5 s and produced a 922 MB folder (encoder, decoder step and tokenizers). The ONNX run returned the same transcript in 0.38 s. Pass streaming=True to to_onnx() for a streaming graph.

Troubleshooting

  • soundfile ImportError: run pip install soundfile. It’s imported by the model code but missing from the card’s dependency list.
  • RuntimeError: Failed to load audio: ffmpeg isn’t on your PATH, or the file is corrupt. Run ffmpeg -version in the same terminal.
  • Audio exceeds 30 seconds: switch to transcribe_longform().
  • Errors after upgrading transformers: the card pins transformers<5. Reinstall with pip install "transformers<5".
  • CUDA errors on a CPU machine: you copied the card’s device="cuda" line. Change it to device="cpu" and set fp16_encoder=False.
  • Slow first run: the first call downloads the model into ~/.cache/huggingface. Later runs load in a few seconds.

Bottom line

GigaAM-v4 is one of the easiest local speech-recognition setups we’ve tested. Install a few packages and ffmpeg, and you get punctuated English or Russian transcripts faster than real time on an ordinary CPU, with long-form, word timestamps and streaming built in. For other languages, Multilingual v2 is the one to use. Both are MIT-licensed, so commercial use is allowed. Note that the models come from Sber, a U.S.-sanctioned bank, which may matter for some businesses.

Tested November 28, 2026 on a cloud VM: 8 vCPU Intel Xeon, 15 GB RAM, no GPU, Debian 13, Python 3.12.16, torch 2.15.0+cpu, transformers 4.57.6. Sources: GigaAM-v4 model card, GigaAM Multilingual v2 model card, GigaAM GitHub repository, PyTorch install selector, LibriSpeech sample. Facts checked November 28, 2026.

Cover image: screenshot of ai-sage/GigaAM-v4 on Hugging Face