速度测试
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
jacklarmer社区2026年7月27日
解码
69.5tok/s
预填充
139tok/s
首个 token 延迟
1,710ms
总计
—
峰值 VRAM
66GB
上下文长度
376
KV 深度
—
批大小
1
功耗
—
验证
未验证 — 实验性结果
已验证的运行使用标准测试提示词,并记录足够的数据以核对结果。
启动命令
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
模型
- 芯片
- M5 Max
- 内存
- 128 GB
引擎
- 引擎
- mlx
- 版本
- mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0
- 量化
- 4bit-affine-gs64
- 后端
- metal
- Attn
- sdpa
运行配置
- 上下文
- 376 个 token
- 批量大小
- 1
- 提示词 token
- 238
- 预填 tok/s
- 139.2 tok/s
- 输出 token
- 128
- 备注
- 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
已记录的证据
- 提示词哈希(SHA-256)
- —
提示词样本—
输出样本—
该模型在此硬件上的更多运行
- 63.9tok/smlx · mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0 · 4bit-affine-gs64上下文 1,200 · 深度 0 · 批大小 1jacklarmer · 2026年7月27日
- 63.8tok/smlx · mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0 · 4bit-affine-gs64上下文 1,200 · 深度 0 · 批大小 1jacklarmer · 2026年7月27日
- 60.9tok/smlx · mlx 0.32.0 + mlx-lm 0.31.3 + zmlx 0.9.0 · 4bit-affine-gs64上下文 1,800 · 深度 0 · 批大小 1jacklarmer · 2026年7月27日
- 13.3tok/smlx · mlx 0.32.0 + mlx-lm 0.31.3 · 4bit-affine-gs64上下文 952 · 深度 0 · 批大小 1jacklarmer · 2026年7月27日
