Local & Offline
~8 min readUpdated: November 2026

GigaAM-v4 238M Zapformer: Streaming Dual-Head ASR for Voice Agents

GigaAM-v4 238M Zapformer Streaming Dual-Head ASR Architecture in Smoke Monkey

GigaAM-v4 (`ai-sage/GigaAM-v4`) is a 238M-parameter Zapformer speech foundation model pretrained on 7 million hours of unlabeled audio and fine-tuned on 58,000 hours of supervised speech. Supporting full-context inference and 160ms, 320ms, and 640ms streaming windows with dual raw/e2e RNN-T and CTC heads, it enables low-latency local voice agents under an MIT license.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

GigaAM-v4 238M Zapformer: Streaming Dual-Head ASR for Voice Agents: GigaAM-v4 (`ai-sage/GigaAM-v4`) is a 238M-parameter Zapformer speech foundation model pretrained on 7 million hours of unlabeled audio and fine-tuned on 58,000 hours of supervised speech. Supporting full-context inference and 160ms, 320ms, and 640ms streaming windows with dual raw/e2e RNN-T and CTC heads, it enables low-latency local voice agents under an MIT license. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Examplegigaam-v4-voice-agent.ts
gigaam-v4-voice-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
const voiceAgent = createAgent({
agentId: 'gigaam-v4-streaming-voice',
provider: 'ollama',
model: 'qwen3.8:27b',
workspacePath: process.cwd(),
permissions: {
read_file: 'allow',
write_file: 'allow',
run_command: 'ask',
},
mcpServers: {
asr: {
command: 'python3',
args: ['-m', 'gigaam_mcp_server', '--revision', 'rnnt', '--future-context-ms', '160'],
},
},
});
async function processAudioTurn(wavPath: string) {
const result = await voiceAgent.run(
`Transcribe ${wavPath} using GigaAM-v4 160ms streaming ONNX mode, inspect raw vs e2e transcripts, and dispatch tool actions.`
);
console.log('Voice Agent Summary:', result.summary);
}
processAudioTurn('./audio/incident-call.wav').catch(console.error);
Video Guides

Watch: Related Video Guides

100% Local AI Speech to Speech with RAG - Low Latency | Mistral 7B, Faster Whisper ++

Architecting Real-Time Voice AI: Beyond STT-LLM-TTS (2026 Guide)

What Is GigaAM-v4? Zapformer Architecture & Dual-Head Design

GigaAM-v4 is a 238M-parameter acoustic foundation model built on a 19-layer Zapformer encoder arranged in three stages (4, 11, and 4 layers at 768, 1024, and 768 hidden dimensions) with 12/16/12 attention heads and SiLU activations. Pretrained on 7 million hours of unlabeled audio and trained on 58,000 hours of supervised speech, it runs a causal convolutional frontend over 64-channel HTK mel spectrograms (n_fft=320, hop_length=160 at 16 kHz).

Rather than chaining an external punctuation model after ASR, GigaAM-v4 attaches two separate decoding heads (raw and e2e, each with a 320-hidden LSTM predictor and 1,025-token SentencePiece vocabulary) to one shared encoder. Full-context runs use unrestricted attention windows ([-1, -1]), while streaming modes switch to left-context 32 with bounded [32, 0] chunk sizes (4, 8, 16) corresponding to 160ms, 320ms, and 640ms lookahead.

GigaAM-v4 Benchmarks vs Whisper large-v3, Nemotron & Qwen3-ASR

Across bilingual English and Russian evaluation suites, GigaAM-v4 RNN-T (238M parameters) and GigaAM-v4 CTC (234M parameters) match or beat models 6x to 140x larger in Word Error Rate (WER %, lower is better).

ModelParamsOpen ASR English Avg WERAMI-Cleaned WERSPGISpeech WERRussian Benchmark Avg WERSynth IT Terms WER
GigaAM-v4 RNN-T (Full)238M7.28%7.47%2.00%5.99%5.07%
GigaAM-v4 CTC (Full)234M7.83%11.34%2.15%6.33%5.61%
GigaAM-v4 RNN-T (640ms Stream)238M8.49%8.47%2.36%——
Qwen3-ASR 1.7B / 938M938M–2B6.67%9.47%2.74%19.20%15.31%
Whisper large-v31.55B7.70%13.66%2.69%16.01%9.63%
NVIDIA Nemotron 30B-A4B34B (4.3B active)———14.48%14.63%
Parakeet TDT-CTC / Ultra627M–1.1B7.85%12.19%1.99%12.84%12.57%

On domain-heavy developer terminology (Synth IT Terms), GigaAM-v4 drops WER from 15.27% (v3) to 5.07% while cutting FP16 weight storage to ~475 MB plus the bundled vad.safetensors voice activity detector.

Revision Selection: rnnt vs ctc vs ssl

Use `revision="rnnt"` (default `main`) for lowest WER in interactive voice agents, `revision="ctc"` for non-autoregressive batch throughput, and `revision="ssl"` when extracting acoustic embeddings.

Streaming 160ms Inference & ONNX Export Commands

GigaAM-v4 exports both full-context and stateful streaming graphs directly to ONNX Runtime without writing custom TorchScript wrappers. Keep transformers<5 pinned per the model card dependency spec.

bash
pip install numpy "transformers<5" onnx onnxruntime hydra-core omegaconf sentencepiece tqdm
python
from transformers import AutoModel

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

# Export stateful streaming ONNX graph (160ms future context)
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)

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)

Wiring GigaAM-v4 into Smoke Monkey Voice & Tool Pipelines

Inside Smoke Monkey Harness, exposing GigaAM-v4's raw stream for deterministic wake-word/command matching while feeding e2e punctuated transcripts to your reasoning model cuts voice-to-tool latency below 200ms per turn. Because the ONNX graph runs entirely on local CPU or a single GPU alongside vad.safetensors, proprietary engineering calls never leave your network perimeter.

Google Search Questions & Answers

Frequently Asked Questions

Q:How much VRAM or RAM does GigaAM-v4 require in production?

GigaAM-v4 contains 239.4M total parameters (235.78M FP16 and 3.67M FP32), occupying under 500 MB of VRAM in FP16 or roughly 950 MB in FP32 ONNX CPU inference.

Q:What is the difference between the raw and e2e output heads in GigaAM-v4?

Both heads share the 19-layer Zapformer encoder: `raw` emits unformatted lowercase lexical text ideal for exact keyword spotting, while `e2e` produces capitalized, punctuated transcripts for LLM agents.

Q:Which streaming lookahead latency should I choose for real-time voice agents?

GigaAM-v4 supports `future_context_ms` values of `160`, `320`, and `640`. Use `160` ms for low-latency conversational barge-in and `640` ms when accuracy on noisy meetings matters more.

Q:Can I use GigaAM-v4 commercially under an open-source license?

Yes. `ai-sage/GigaAM-v4` is published under the permissive MIT license, allowing commercial self-hosting, ONNX redistribution, and fine-tuning.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness