GigaAM-VAD — MLX
Pure Apple MLX port of official GigaAM VAD (GigaAMVAD, 1.33M-parameter 5-layer Conformer, ~5.3 MB) for fast Voice Activity Detection and speech segmentation on Apple Silicon with zero PyTorch runtime dependency.
Usage
pip install -U git+https://github.com/aystream/gigaam-mlx.git
Automatic VAD segmentation in ASR
from gigaam_mlx import load_model, transcribe
model, tokenizer = load_model("ctc")
text = transcribe(model, tokenizer, "meeting.wav", vad=True) # auto-downloads this repo
Or via CLI:
gigaam-mlx recording.mkv --vad
Standalone VAD probabilities & timestamps
from gigaam_mlx import load_audio, load_vad_model, segment_audio_vad, speech_timestamps
vad = load_vad_model() # auto-downloads aystream/GigaAM-VAD-mlx
audio = load_audio("meeting.wav")
probs = vad.speech_probs(audio) # 40 ms step (25 Hz) probabilities
intervals = speech_timestamps(probs, vad.step_sec, len(audio) / 16000)
segments = segment_audio_vad(audio, vad)
Performance & Parity
- Speed (M2 Max, FP32): processes 22 minutes of audio (
1319.4s) in ~0.26s. - PyTorch parity:
max |Δprob| < 1e-4and identicalspeech_timestampsvs upstream PyTorchgigaam.load_model("vad"). - Architecture: 5-layer Conformer (
d_model=128,n_heads=4,ff_expansion_factor=2,conv_kernel_size=15, 4x Conv1d subsampling, RoPEbase=10000, 10s independent windows).
Links
- MLX implementation & CLI: aystream/gigaam-mlx
- Upstream model & paper: salute-developers/GigaAM (arXiv:2506.01192)
License
MIT — same as the original GigaAM model.