Quantization & Engine
Hardware & Mode
Weights & Recipe
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 24 GB
5,907.5
@32K
275.0
tok/s
▲ 38.3%
Kernel Bound
23.0 GB
1.87×
MLX 4-bit
oMLX 0.8.3 · @hiddendevj
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 24 GB
5,652.0
@32K
147.0
tok/s
▲ 25.7%
Kernel Bound
39.1 GB
1.56×
Optimization history — Peak Decode Throughput (26B MoE 4-bit + Speculative)
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 + DFlash Drafter (0.86 GB) — mlx-community/gemma-4-26b-a4b-it-4bit ↗
omlx-recipe:1:eNqNVMmO2zAM_Redx5NlnCD1rYOif9AzoVhUrFpbJDlLi_57aU_iiRM7mIMBQ3wkHx-Xv4xvwAeUSmtAy7caBSsk1xFfbk1GWUiuRhtZsVhuyFYmdeBJOQvSL9YPvgLRR8QaDvmCjLvADcQowEmpHb_BSc1jBVvtyhqi-oOs-Na_isBlAuMEalaw2a-IIc4SpbJp9uqMPs06W5zt0Bie5dly_Z59z98zlbIfP9sQrI_VE0yh-cx7wKDkuUtBGbjgnspC8pIulAiRG6-V3fV0q3P-rBrjEPDkMaSr6UGYEUjAqATaBDK0sjrLivnrckXY5B_8qSMRLXHzZNHp3GLnL2x_RPu2Am6x71npGxDuaAdhp6H3iSZgt8EWb6tJ3E58NXGseMBOBdeQ6NcOTaBTFZALGsPNKEQ0XLcPT6J8oVDZRGLUivcMRSU-SXMvwGoSZfgJND_TcLMiHy_rFrLORyER9003GJoGNFWsWM4ngl0E_yS3mOhO4kqD50LQCgxOwAWed_QFlrQ-cKQZJk_3eyBZDl7j6K4E9JhUd0H6Ue6IRI_lVK8SGlodnpqAl6FKlbJ1y2_biB2mRw_noe4Yt3_-koMCbN2-oUMC9QG2KrXSPxrujsbQGMsKTXs2Pp_ZABNr5alrMV39D9pAu9Mfd-325q3vjdejN3LZ9py-HOZZY7s8FEBkPEYV0weFa6ShFP_-AysrKDE
MLX 4-bit — mlx-community/gemma-4-26b-a4b-it-4bit ↗
omlx-recipe:1:eNqNU-1uwjAMfJf8nibKCmJ9Gcs0Ds2aJiEfwDTt3ecCY3RtEf8i-3w5n-0vgRvwgZQ2BjptIbmWbBRVsdy8CKyTPmDSzoLyxRrI4taQFJVCE-lFSCIfiVo4lAUndwE7iFGCU8o4vMMpg7EZlSsXaoKInTfa7m7h5rN8RNY5Ajp5Cuk3NSKegASKWpJNoELflbOiWrwuV4xNflS_P5J9WwFaunlT-wzSHe2gfjELfZLxnqx4W83idvLZj2ODgc7tuszuiiqFPP9_agKh5HFvJiEyo-kDD1ieaFTlyIp68x6huMUH3_w3YDWL6vAEBj8pcFfldFv3kHU5CYm0z2R5Ow1vYmpEtVzMkF0N_xNXzEwnoTbgUUre9cGpXeHlWb6k2kmCIy8rV7qPgWUleEOTRxE91XMjSdTxKWDKga7qUqNt28vYZrmjNK5wHtqLN_3T946_s-VMsXX7jHxG7QG2OvUenwkHiRvdZZzDZKwb6ljIXVgMMLHVnscT02_9wXQwvtLvH0TkvI4
⚡ 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 + DFlash Drafter (0.86 GB) (oMLX 0.8.3 (DFlash Speculative + TQ4))
▲ 38.3% · Kernel Bound 275.0 tok/s × 3.01 GB/tok ÷ (1228 GB/s × 1.76× MTP) = 470.3 / 1228 GB/s · 1.35 GB dense + 0.80 GB routed (8/128) + 0.86 GB DFlash drafter (adaptive b=9)
Kernel Bottleneck: DFlash adaptive b=9 boosts effective BW +49% vs single-step (316 -> 470.3 GB/s, 38.3%), but compact 72 MB/layer 30-layer MoE remains launch-latency bound. Next target: fused drafter+verifier graph.
MLX 4-bit (oMLX 0.8.3)
▲ 25.7% · Kernel Bound 147.0 tok/s × 2.15 GB/tok ÷ (1228 GB/s × 1.00× MTP) = 316.1 / 1228 GB/s · 1.35 GB dense + 0.80 GB routed (8/128 of 12.85 GB 4-bit), single-step
Kernel Bottleneck: Single-token decode reads only 2.15 GB (71.7 MB/layer) at 316.1 GB/s (25.7%). Resolved in recommended DFlash + TQ4 profile (275.0 tok/s).
📋 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-12-04 Baseline | oMLX 0.8.3 · MLX 4-bit | Autoregressive single-token decode, BF16 GQA KV cache | 147.0 tok/s Peak TG (75.9 @ 64K) 2,762 PP@4K · 4,414 PP@64K | 39.1 GB Wired @ 64K · Pure RAM | Code & Zh-Logic Pass ✅ |
2026-12-05 Ablation | oMLX 0.8.3 · MLX 4-bit | +TurboQuant 4-bit KV (cuts GQA 64K bandwidth 4x, still single-token decode) | 156.1 tok/s Coding TG (118.6 @ 64K, +56%) 7,072 PP@4K · 4,454 PP@64K | 22.1 GB Wired @ 64K · Pure RAM | Code & Zh-Logic Pass ✅ |
2026-12-06 Ablation | oMLX 0.8.3 · VLM-MTP Drafter | +Google gemma-4-26B-A4B-it-qat-q4_0-unquantized-assistant (0.87 GB, block=4, BF16 KV) | 196.0 tok/s Coding TG (190.1 E2E) 7,193 PP@4K · 5,958 PP@32K | 21.4–23.1 GB Wired · Pure RAM | 512-tok Red-Black Tree Pass ✅ |
2026-12-06 Ablation | oMLX 0.8.3 · DFlash BF16 KV | +z-lab/gemma-4-26B-A4B-it-DFlash (0.86 GB, adaptive block=9, BF16 KV) | 226.2 tok/s Coding TG (161.2 Synth Bench) 7,330 PP@4K · 4,700 PP@64K | 24.8 GB Wired · Pure RAM | 512-tok Red-Black Tree Pass ✅ |
2026-12-06 Optimal ★ | oMLX 0.8.3 · DFlash + TQ4 KV | +z-lab/gemma-4-26B-A4B-it-DFlash (adaptive block=9) + TurboQuant 4-bit KV | 275.0 tok/s Decode (261.9 E2E · 122.3 @ 64K) 7,245 PP@4K · 5,908 PP@32K · 4,664 PP@64K | 19.3–23.0 GB Wired · Pure RAM | 46.6 tok/chunk Adaptive Verify ✅ |
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 275.0 tok/s Decode · ≈ 5,908 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) · ≈ 187.0 tok/s Decode · ≈ 1,949 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) · ≈ 176.0 tok/s Decode · ≈ 1,418 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) · ≈ 143.0 tok/s Decode · ≈ 2,954 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) · ≈ 74.2 tok/s Decode · ≈ 1,477 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) · ≈ 42.6 tok/s Decode · ≈ 916 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 Mac mini / MacBook Air (M4) (24 GB · 120 GB/s) · ≈ 30.2 tok/s Decode · ≈ 384 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=21120 iogpu.wired_lwm_mb=19920