Test de vitesse
Laguna-S-2.1-MLX-4bit
M5 Max 128GB · mlx · mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0 · 4bit-affine-gs64
Décodage
69.5tok/s
Prefill
139tok/s
Délai jusqu'au premier token
1 710ms
Total
—
VRAM max
66Go
Longueur de contexte
376
Profondeur KV
—
Taille de lot
1
Consommation
—
Vérification
Non vérifiée — résultat expérimental
Les exécutions vérifiées utilisent un prompt de test standard et enregistrent assez de données pour contrôler le résultat.
Commande de lancement
python bench_speed.py (one-big-function @mx.compile + zmlx moe_mlp sigmoid gating fix + precomputed masks + bf16 gating)
Theoretical memory ceiling
184.4–187.0 tok/s
614 GB/s memory bandwidth (spec sheet) · 59.00 GB model weights · 16-bit KV cache · 1–238 tokens of context
37–38%
of the ceiling reached
Medium confidenceThe fastest this hardware's memory could serve a single request; real runs are slower. Model details from pipenetwork/Laguna-S-2.1-MLX-4bit; size from 4bit-affine-gs64 estimate. Hardware source · Open calculator
Matériel
- Puce
- M5 Max
- Mémoire
- 128 GB
Moteur
- Moteur
- mlx
- Version
- mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0
- Quant
- 4bit-affine-gs64
- Backend
- metal
- Attn
- sdpa
Configuration du run
- Contexte
- 376 tokens
- Taille de batch
- 1
- Tokens de prompt
- 238
- Prefill tok/s
- 139.2 tok/s
- Tokens de sortie
- 128
- Notes
- Optimized MLX decode: one-big-function @mx.compile (48 layers), zmlx moe_mlp patch with sigmoid gating fix (zmlx defaults to softmax, Laguna uses sigmoid), precomputed attention masks, bfloat16 gating. Pure MLX, no torch/CUDA. Quality: 0.9555 Pearson logit correlation vs BF16 reference. Code: github.com/jacklarmer/laguna-apple
Preuves capturées
- Empreinte du prompt (SHA-256)
- —
Autres runs de ce modèle sur ce matériel
- 63.9tok/smlx · mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0 · 4bit-affine-gs64Contexte 1,200 · profondeur 0 · lot 1jacklarmer · 27 juil. 2026
- 63.8tok/smlx · mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0 · 4bit-affine-gs64Contexte 1,200 · profondeur 0 · lot 1jacklarmer · 27 juil. 2026
- 60.9tok/smlx · mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0 · 4bit-affine-gs64Contexte 1,800 · profondeur 0 · lot 1jacklarmer · 27 juil. 2026
- 13.3tok/smlx · mlx 0.32.0 + mlx-lm 0.31.3 · 4bit-affine-gs64Contexte 952 · profondeur 0 · lot 1jacklarmer · 27 juil. 2026
