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 M5 Ultra · 256GPomavia Lab
pure-ram
≥ 24 GB
3,381.0
@32K
102.8
tok/s
▲ 23.6%
Kernel Bound
46.5 GB
2.21×
Optimization history — Peak Decode Throughput (oQ4e-MTP)
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
oQ4e-MTP (4-bit) — mlx-community/Inkling-2-Mini-oQ4e-mtp ↗
omlx-recipe:1:eNqNU9tuwjAM_Zc-o4myghA_Y5nGoVnTJOTCRdP-fS4qrIW249U-PvY5tr8z3ILzJJXW0CgD0dZkQrbLV9tFhmVUJ4zKGpAu3wAZ3GsS2U6iDrTIBJELRDWcipyTB48NhCDASqkt9nBSY6heyqX1JUHAxmllDo9wdS3myBpLQBdHPt5TL8QjEE9BCTIRpG9VWZPtlh-rNWOjAxToWClBgxcQ5GKV7brUgzr6xMzHM5nPNaChh2ulSyDs2QyYl5PQ51knYH2y_HM9iTuIdxuHCj3djLCJff9HUaw8oeBD2I5CRELdBmZY3hAqU-CJWvPmUCxxps2zAetJVLtcjVfyrKoYl9WHbIpRSKBjIsN3q_lG20NZLSfIOsP_hssnthNRaXAoBH_B4Ak7eHEbX1BpBcGZz5gr7dfAsgKcptF3CY7KqZVEavhJMCZP3XSxUqZux9gncaD4WpH83h4T8iPVJ9ir2Hp5Kxwk5stCWVHDHXvhbIAJtXK8hxDvez_pBgbfeOP9-QUoYr-7
⚡ 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 oQ4e-MTP (4-bit) (oMLX 0.8.3)
▲ 23.6% · Kernel Bound 102.8 tok/s × 6.22 GB/tok ÷ (1228 GB/s × 2.21× MTP) = 289.3 / 1228 GB/s · Loop Transformer (layers 6–17 execute 3 passes -> 6.22 GB effective read/tok; MTP5=2.21x)
Kernel Bottleneck: 3-pass recurrent loop executes 48 serial MoE dispatches on compact 129 MB/pass slices (289.3 GB/s, 23.6%). Next target: multi-pass Metal command buffer fusion.
📋 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-02 Baseline | oMLX 0.8.3 · oQ4e-mtp (16.9 GB) | Single-token Loop Transformer decode without MTP | 55.5 tok/s TG 1,680 PP@4K | 44.8 GB Wired · Pure RAM | 3/3 Deterministic Pass ✅ |
2026-12-05 Optimal ★ | oMLX 0.8.3 · oQ4e-mtp | Pure RAM + Adaptive MTP depth=5 + Lossless BF16 KV | 102.8 tok/s TG (+85%) 3,714 PP@4K (+121%) · 2,788 PP@64K | 46.5 GB Wired · Pure RAM | 3/3 Math/Code/Logic Pass ✅ |
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 102.8 tok/s Decode · ≈ 3,381 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) · ≈ 69.9 tok/s Decode · ≈ 1,116 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) · ≈ 65.8 tok/s Decode · ≈ 811 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) · ≈ 53.5 tok/s Decode · ≈ 1,690 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) · ≈ 27.8 tok/s Decode · ≈ 845 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) · ≈ 15.9 tok/s Decode · ≈ 524 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) · ≈ 11.3 tok/s Decode · ≈ 220 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 M5 Ultra · 256GPomavia Lab
pure-ram
≥ 24 GB
2,417.0
@32K
52.1
tok/s
● 61.2%
Near-Peak
43.8 GB
1.68×
Optimization history — 32K Prefill Throughput (27B Dense 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.8-27B-4bit ↗
omlx-recipe:1:eNqNU9lygzAM_BeeO50khUyan9EoWAYXYzs-ckyn_16R5oACmbwx1u6iXUnfGW7AeZJKayCDO00i20af6K1faZWBaBsyIduucy6VUR0wKmtAuuX6wZSoA1MFkQtEDRzyJRcrjy2EIMBKqS32cFJjqEd0aX1JELB1Wpnq_lyf82dirSWgkyMfb6WR8ATEU1CCTATpO1fWZNvF-6pgbHQj_v5I5qMANHSPpnQJhD2aAX8xC31RsS-2_ChmcZV49cehRk8XuzZxurchz6Bj7QkFT3szCREJdffwROUFozIF7qgL7xmKLT75zf8AillUiyfQeCbPrvJpW31It-YTkED7RIa3U_MmxjrbrhYzYtfAH80tZ6YTUWlwKATv-uDSrvD80r6g0gqCIy8rM-3XILIcnKbJowiOyrmRRGr5FDAmT9fuYq1M07WxS6KiOGZYB03n-e_TdYl_cuQssbP7hHxGzQF2KnabcxEcFEZyg2ooa2q5k95zNsCERjmeT4i3fTjoFsZn-vMLYxPGHg
⚡ 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)
● 61.2% · Near-Peak 52.1 tok/s × 14.42 GB/tok ÷ (1228 GB/s × 1.00× MTP) = 751.3 / 1228 GB/s · 14.42 GB dense 4-bit text weights (gs=64, excl. 0.92 GB ViT)
Sustains 751.3 GB/s (61.2% Near-Roofline) on pure M=1 dense GEMV across 64 layers; reaches >85% DRAM Roofline at batch=4 (156.5 tok/s) or with speculative drafter.
📋 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-01 Baseline | oMLX 0.8.3 · MLX 4-bit | Default A16 prefill vs 10-round tuned Dual-ANE (MLP 15%, GDN 37.5%) | 50.8 tok/s TG 1,627 PP@2K (A16) · 1,762.5 PP@2K (Dual-ANE) | 43.5 GB Wired · Pure RAM | 3/3 Deterministic Pass ✅ |
2026-12-05 Optimal ★ | oMLX 0.8.3 · MLX 4-bit | Disabled ANE + M5 Native Q4A8(m64) + Lossless BF16 KV | 52.1 tok/s TG (156.5 Batch-4) 2,768.6 PP@2K (+57.1% vs ANE) · 2,630 PP@16K | 43.8 GB Wired · Pure RAM | 3/3 Math/Code/Logic Pass ✅ |
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 52.1 tok/s Decode · ≈ 2,417 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) · ≈ 35.4 tok/s Decode · ≈ 798 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) · ≈ 33.3 tok/s Decode · ≈ 580 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) · ≈ 27.1 tok/s Decode · ≈ 1,208 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) · ≈ 14.1 tok/s Decode · ≈ 604 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) · ≈ 8.1 tok/s Decode · ≈ 375 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) · ≈ 5.7 tok/s Decode · ≈ 157 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 Quantization & Engine
Output Spec
Weights & Recipe
1024x1024Pomavia Lab
4 steps · M5 Ultra
≥ 16 GB
2.04s
● 74.5%
Near-Peak
25.0 GB
1.18×
Optimization history — 1024×1024 4-Step Generation Time (Lower = Better)
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 8-bit — black-forest-labs/FLUX.2-klein-4B ↗
python models/image/flux2-klein-4b/run.py --model-path /path/to/FLUX.2-klein-4B --base-model flux2-klein-4b -q 8 --warmup --steps 4 --width 1024 --height 1024
⚡ Hardware roofline · compute efficiency (DiT TFLOPS)
η_FLOPs = sustained TFLOPS / chip peak BF16 tensor TFLOPS · ≥75% = compute roofline MLX 8-bit (mflux 0.24.0 Resident Warm (MLX 0.32.5))
● 74.5% · Near-Peak Sustained 102.8 TFLOPS / 138 TFLOPS peak (mflux 0.24.0 Resident Warm (MLX 0.32.5))
4B DiT @ 1024x1024 (4 steps in 2.04s) sustains 102.8 TFLOPS (74.5% Compute Roofline) via warm MLX 8-bit.
📋 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-06 Baseline | mflux 0.24.0 · MLX BF16 | 1st-run cold JIT vs Warm Resident BF16 (1024×1024, 4 steps) | 2.41s Cold -> 2.06s Warm 0.30s mmap load · 4 steps | 14.47 GB MLX · 25.9 GB Wired | Zero NaN · Crisp EN Signage ✅ |
2026-12-06 Optimal ★ | mflux 0.24.0 · Resident MLX 8-bit | Resident Python pipeline with warmup + 8-bit quantized DiT (1K & 2K) | 2.04s Warm 1K · 10.12s Warm 2K 0.33s load · 2.40s cold 1st-run | 11.76 GB MLX (14.11 GB @ 2K) -> Fits 16 GB Mac! | Pixel-faithful to BF16 (std=53.9) ✅ |
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 2.0s (1024x1024)
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) · ≈ 6.2s (1024x1024)
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) · ≈ 8.5s (1024x1024)
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) · ≈ 4.1s (1024x1024)
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) · ≈ 8.2s (1024x1024)
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) · ≈ 13.2s (1024x1024)
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) · ≈ 31.4s (1024x1024)
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 1024x1024Pomavia Lab
4 steps · M5 Ultra
≥ 24 GB
3.66s
● 72.0%
Near-Peak
30.0 GB
1.56×
BF16
diffusers 0.43.0 + torch 2.15.0 (MPS) · @hiddendevj
1024x1024Pomavia Lab
4 steps · M5 Ultra
≥ 64 GB
3.45s
● 83.0%
Compute Peak
50.0 GB
—
Optimization history — 1024×1024 4-Step Generation Time (Lower = Better)
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 8-bit — black-forest-labs/FLUX.2-klein-9B ↗
python models/image/flux2-klein-4b/run.py --model-path /path/to/FLUX.2-klein-9B --base-model flux2-klein-9b -q 8 --warmup --steps 4 --width 1024 --height 1024
python -c "import torch; from diffusers import DiffusionPipeline; p=DiffusionPipeline.from_pretrained('/path/to/FLUX.2-klein-9B', torch_dtype=torch.bfloat16).to('mps'); p('...', num_inference_steps=4, guidance_scale=1.0).images[0].save('out.png')"
⚡ Hardware roofline · compute efficiency (DiT TFLOPS)
η_FLOPs = sustained TFLOPS / chip peak BF16 tensor TFLOPS · ≥75% = compute roofline MLX 8-bit (mflux 0.24.0 Resident Warm (MLX 0.32.5))
● 72.0% · Near-Peak Sustained 99.4 TFLOPS / 138 TFLOPS peak (mflux 0.24.0 Resident Warm (MLX 0.32.5))
Compute-bound DiT evaluated against Metal BF16 tensor core ceiling.
BF16 (diffusers 0.43.0 + torch 2.15.0 (MPS))
● 83.0% · Compute Peak Sustained 114.5 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + torch 2.15.0 (MPS))
9B DiT warm PyTorch MPS BF16 sustains 114.5 TFLOPS (83.0% Compute Roofline) at 50 GB Wired.
📋 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-03 Baseline | mflux 0.24.0 CLI · BF16 / 8-bit | Single-shot CLI invocation (includes model load + Metal JIT every image) | 9.0s BF16 Cold · 5.70s 8-bit Cold 20.3s @ 2048×2048 | 20.03 GB MLX · 30.0 GB Wired | 4-bit tested (5.6s, garbles text ❌) |
2026-12-05 Warm MPS | diffusers 0.43.0 + torch 2.15.0 (MPS) | Resident PyTorch MPS BF16 pipeline (1024² & 2048², 4 steps) | 3.45s Warm 1K · 17.46s Warm 2K 8.9s initial load · 0.862s/step | 50.0 GB Wired @ 1K · 117.7 GB @ 2K | Crisp English typography ✅ |
2026-12-06 Optimal ★ | mflux 0.24.0 · Resident MLX 8-bit | In-process warm MLX 8-bit (eliminates per-image CLI load & Metal JIT) | 3.66s Warm 1K · 17.90s Warm 2K 0.32s load · -35.8% vs Cold CLI | 20.0–27.3 GB MLX (4.3x less RAM than MPS @ 2K!) | Zero NaN · Matches BF16 (std=63.5) ✅ |
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 3.7s (1024x1024)
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) · ≈ 11.1s (1024x1024)
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) · ≈ 15.3s (1024x1024)
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) · ≈ 7.3s (1024x1024)
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) · ≈ 14.6s (1024x1024)
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) · ≈ 23.6s (1024x1024)
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) · ≈ 56.3s (1024x1024)
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