Quantization & Engine
Hardware & Mode
Weights & Recipe
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 32 GB
8,802.0
@32K
181.1
tok/s
▲ 24.6%
Kernel Bound
42.5 GB
2.49×
Optimization history — Peak Decode Throughput (35B MoE 4-bit)
Compatible Apple Silicon Macs
× Mac mini / MacBook Air (M4) (24G)✓ Mac mini / MBP 14″ / iMac (M6) (32G)✓ Mac mini / MBP (M5 Pro) (64G)✓ Mac Studio / MBP (M5 Max) (128G)✓ Mac Studio / Mac Pro (M2 Ultra) (192G)✓ Mac Studio (M3 Ultra) (256G)✓ Mac Studio (M5 Ultra · 256 GB) (256G)✓ Mac Studio (M5 Ultra · 512 GB) (512G)
Weights & verified launch recipes
MLX 4-bit (gs=64) — mlx-community/Qwen3.6-35B-A3B-4bit ↗
omlx-recipe:1:eNqNU9lygzAM_BeeO50khUyan9EoWAYXYzs-ckyn_16R5oACmbwx1u6iXUnfGW7AeZJKayCDO00i20af6K1faZWBaBsyIduucy6VUR0wKmtAuuX6wZSoA1MFkQtEDRzyJRcrjy2EIMBKqS32cFJjqEd0aX1JELB1Wpnq_lyf82dirSWgkyMfb6WR8ATEU1CCTATpO1fWZNvF-6pgbHQj_v5I5qMANHSPpnQJhD2aAX8xC31RsS-2_ChmcZV49cehRk8XuzZxurchz6Bj7QkFT3szCREJdffwROUFozIF7qgL7xmKLT75zf8AillUiyfQeCbPrvJpW31It-YTkED7RIa3U_MmxjrbrhYzYtfAH80tZ6YTUWlwKATv-uDSrvD80r6g0gqCIy8rM-3XILIcnKbJowiOyrmRRGr5FDAmT9fuYq1M07WxS6KiOGZYB03n-e_TdYl_cuQssbP7hHxGzQF2KnYZXwQHhZHcoBrKmlrupPecDTChUY7nE-JtHw66hfGZ_vwCYSvGGg
⚡ Hardware roofline · bandwidth efficiency gate
η_BW = (Decode tok/s × active GB/token) / (chip peak BW GB/s × MTP multiplier) · ≥75% (or NVMe ≥95%) = silicon roofline | <60% = kernel bottleneck MLX 4-bit (gs=64) (oMLX 0.8.3)
▲ 24.6% · Kernel Bound 181.1 tok/s × 1.67 GB/tok ÷ (1228 GB/s × 1.00× MTP) = 302.4 / 1228 GB/s · 1.10 GB GDN/dense + 0.57 GB routed (8/256 of 18.12 GB 4-bit = 41.8 MB/layer)
Kernel Bottleneck: Only 41.8 MB read per layer across 40 GDN+MoE layers — bound by Metal command-buffer dispatch & gather_qmm latency (302.4 GB/s, 24.6%; jumps to 473.9 tok/s @ batch=4). Next target: Metal ICB graph capture + built-in MTP head activation.
📋 Per-Mac dated & verifiable optimization logs
Mac Studio · Apple M5 Ultra (36c CPU / 80c GPU · 256 GB) · macOS 27.2 (26B123) · sysctl iogpu.wired_limit_mb=249036 · 2 TB NVMe (11.18 GB/s)
Pomavia Lab verified log | Date & stage | Engine & quant | Optimization / ablation parameters | Measured speed | Wired RAM & NVMe I/O | Verification & repro |
|---|---|---|---|---|---|
2026-11-30 Baseline | oMLX 0.8.3 · MLX 4-bit (gs=64) | Legacy M3/M4 Dual-ANE hybrid prefill (ane-tune calibrated) | 112.4 tok/s TG 8,029.3 PP@2K (ANE dispatch bottleneck) | 41.8 GB Wired · Pure RAM | 3/3 Reasoning Pass ✅ |
2026-12-03 Ablation | oMLX 0.8.3 · MLX 4-bit | Disabled ANE + enabled M5 Q4A8(m64) + TQ8 KV (unnecessary on Hybrid GDN) | 131.3 tok/s TG 10,190 PP@4K | 40.2 GB Wired · Pure RAM | 3/3 Reasoning Pass ✅ |
2026-12-05 Optimal ★ | oMLX 0.8.3 · MLX 4-bit | Pure GPU M5 Q4A8(m64) + Lossless BF16 KV (only 1/4 layers use full KV) | 181.1 tok/s TG (473.9 Batch-4!) 11,086.6 PP@2K (+38.1% vs ANE) · 10,257 PP@16K | 42.5 GB Wired · Pure RAM | 3/3 Deterministic Pass ✅ |
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 181.1 tok/s Decode · ≈ 8,802 tok/s Prefill (@32K)
Roofline-sized · awaiting lab PR This Mac has the native M5/M6 Neural GPU matrix path — keep the M5 QxA8 (min_tokens=64) recipe enabled.
sudo sysctl iogpu.wired_limit_mb=486400 iogpu.wired_lwm_mb=465920 Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 123.1 tok/s Decode · ≈ 2,905 tok/s Prefill (@32K)
Roofline-sized · awaiting lab PR Note: M2/M3/M4 chips lack the native M5 QxA8 unit — set a8_prefill_enabled=false (use native A16 GPU or calibrated Dual-ANE prefill).
sudo sysctl iogpu.wired_limit_mb=243200 iogpu.wired_lwm_mb=232960 Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 115.9 tok/s Decode · ≈ 2,112 tok/s Prefill (@32K)
Roofline-sized · awaiting lab PR Note: M2/M3/M4 chips lack the native M5 QxA8 unit — set a8_prefill_enabled=false (use native A16 GPU or calibrated Dual-ANE prefill).
sudo sysctl iogpu.wired_limit_mb=182400 iogpu.wired_lwm_mb=174720 Mac Studio / MBP (M5 Max) (128 GB · 614 GB/s) · ≈ 94.2 tok/s Decode · ≈ 4,401 tok/s Prefill (@32K)
Roofline-sized · awaiting lab PR This Mac has the native M5/M6 Neural GPU matrix path — keep the M5 QxA8 (min_tokens=64) recipe enabled.
sudo sysctl iogpu.wired_limit_mb=121600 iogpu.wired_lwm_mb=116480 Mac mini / MBP (M5 Pro) (64 GB · 307 GB/s) · ≈ 48.9 tok/s Decode · ≈ 2,200 tok/s Prefill (@32K)
Roofline-sized · awaiting lab PR This Mac has the native M5/M6 Neural GPU matrix path — keep the M5 QxA8 (min_tokens=64) recipe enabled.
sudo sysctl iogpu.wired_limit_mb=60800 iogpu.wired_lwm_mb=58240 Mac mini / MBP 14″ / iMac (M6) (32 GB · 170 GB/s) · ≈ 28.1 tok/s Decode · ≈ 1,364 tok/s Prefill (@32K)
Roofline-sized · awaiting lab PR This Mac has the native M5/M6 Neural GPU matrix path — keep the M5 QxA8 (min_tokens=64) recipe enabled.
sudo sysctl iogpu.wired_limit_mb=28160 iogpu.wired_lwm_mb=26560