GigaAM v4 e2e CTC β€” MLX

Pure MLX port of ai-sage/GigaAM-v4 (revision="ctc", e2e head) for fast Russian & English speech recognition on Apple Silicon. Supports full-context and native streaming (160 / 320 / 640 ms) without PyTorch.

Usage

pip install git+https://github.com/aystream/gigaam-mlx.git

Offline / Full-context

from gigaam_mlx import load_model, transcribe

model, tokenizer = load_model("ctc")  # auto-downloads this repo
text = transcribe(model, tokenizer, "recording.wav")
print(text)

Or via CLI:

gigaam-mlx recording.mkv

Real-time Streaming

from gigaam_mlx import load_audio, load_model

model, tokenizer = load_model("ctc")
stream = model.create_stream(tokenizer, future_context_ms=320)

audio = load_audio("recording.wav")
for i in range(0, len(audio), 3200):
    print(stream.transcribe_partial(audio[i : i + 3200]), end="", flush=True)
print(stream.flush())

Performance

MacBook Pro M2 Max, 19-second dense Russian speech chunk (295 chars, avg of 3 warmed-up runs):

Backend Precision Time Realtime
MLX v4 CTC (this) FP16 0.038s ~507x
MLX v4 CTC (this) FP32 0.043s ~440x
PyTorch CPU v4 CTC FP32 0.417s ~46x
  • MLX timings measure pure encode + decode (librosa mel extraction adds ~3.0 ms); PyTorch timings include its FeatureExtractor.
  • Full 22-minute audio (1319.4s end-to-end): 16.3s (~81x realtime).
  • Streaming (320 ms context, dense chunk, FP32): 14.3 ms/packet (~22x realtime).
  • PyTorch parity: Identical decoded text and streaming packet deltas vs ai-sage/GigaAM-v4 PyTorch CPU reference across full-context and 160 / 320 / 640 ms streaming modes on our test clips (mean abs encoder diff <= 5e-6).

Model Details

  • Architecture: Zapformer (Causal ConvNeXt frontend, 3 stages: 4Γ—768d, 11Γ—1024d @2x, 4Γ—768d, interleaved RoPE, RMSNorm) + character CTC head
  • Parameters: ~235M (234,613,293, e2e head)
  • Vocabulary: 146 classes (145 Russian/English/punctuation characters + blank)
  • Features: Punctuation, normalization, Russian + English code-switching, full-context + streaming (160/320/640 ms)

Links

Downloads last month
-
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for aystream/GigaAM-v4-e2e-ctc-mlx

Finetuned
(3)
this model