Automatic Speech Recognition
MLX
Russian
English
gigaam_mlx
apple-silicon
russian
english
gigaam
zapformer
rnnt
streaming
Instructions to use aystream/GigaAM-v4-e2e-rnnt-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use aystream/GigaAM-v4-e2e-rnnt-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download aystream/GigaAM-v4-e2e-rnnt-mlx --local-dir GigaAM-v4-e2e-rnnt-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
GigaAM v4 e2e RNNT β MLX
Pure MLX port of ai-sage/GigaAM-v4 (revision="rnnt", e2e head) for 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("rnnt") # auto-downloads this repo
text = transcribe(model, tokenizer, "recording.wav")
print(text)
Or via CLI:
gigaam-mlx recording.mkv --model-type rnnt
Real-time Streaming
from gigaam_mlx import load_audio, load_model
model, tokenizer = load_model("rnnt")
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 RNNT (this) | FP16 | 0.198s | ~96x |
| MLX v4 RNNT (this) | FP32 | 0.203s | ~94x |
| PyTorch CPU v4 RNNT | FP32 | 0.490s | ~39x |
- MLX timings measure pure encode + decode (
librosamel extraction adds~3.0 ms); PyTorch timings include itsFeatureExtractor. - Full 22-minute audio (1319.4s end-to-end): 25.7s (~51x realtime).
- Streaming (320 ms context, dense chunk, FP32): 17.3 ms/packet (~18x realtime).
- PyTorch parity: Identical decoded text and streaming packet deltas vs
ai-sage/GigaAM-v4PyTorch CPU reference across full-context and160 / 320 / 640 msstreaming modes on our test clips (mean abs encoder diff <= 4e-6).
Model Details
- Architecture: Zapformer (Causal ConvNeXt frontend, 3 stages:
4Γ768d,11Γ1024d @2x,4Γ768d, interleaved RoPE, RMSNorm) + RNN-Transducer head (LSTM predictor + joint) - Parameters: ~236M (236,327,324, e2e head)
- Vocabulary: 1025 tokens (SentencePiece + blank)
- Features: Punctuation, normalization, Russian + English code-switching, full-context + streaming (
160/320/640 ms)
Links
- Code: github.com/aystream/gigaam-mlx
- Original: ai-sage/GigaAM-v4 / salute-developers/GigaAM
- License: MIT
- Downloads last month
- -
Hardware compatibility
Log In to add your hardware
Quantized
Model tree for aystream/GigaAM-v4-e2e-rnnt-mlx
Base model
ai-sage/GigaAM-v4