M2M Model2Metal

Mac Studio (M3 Ultra) (256 GB) — Compatible AI Models & Quantizations

Apple M3 Ultra (32c CPU / 80c GPU) · 819 GB/s · ~170W · 17 of 17 tracked models fit in 256 GB

sysctl iogpu.wired_limit_mb=249036

Large Language Models (LLM)

10 models
Quantization & Engine
Hardware & Mode
Weights & Recipe
llm DeepSeek-V4.1-Flash AA 32 · Int. v5 Hugging Face DeepSeek · 2 configs · min 256 GB 1.97× vs 11-28
Details →
RECoQ2.5e-MTP (~2.5-bit)
oMLX 0.8.3 · @hiddendevj
M5 Ultra · 256GPomavia Lab
table-offload
≥ 256 GB
3,252.0
@32K
108.2
tok/s
● 75.4%
Roofline
223.0 GB
1.98×
HF
Official Unquantized FP8 (510.3 GB)
oMLX 0.8.3 · @hiddendevj
M5 Ultra · 256GPomavia Lab
double-hybrid
≥ 256 GB
1,023.8
@32K
31.2
tok/s
● 96.2%
NVMe Wall
220.8 GB
3.95×
HF
Optimization history — Peak Decode Throughput (552B MoE oQ2.5e)
54.9 tok/s2026-11-28Baseline MLX72.4 tok/s2026-12-01+Engram SSD Offload89.6 tok/s2026-12-03+M5 Q4A8 & Lossless MLA KV108.2 tok/s2026-12-05+Adaptive MTP5
Compatible Apple Silicon Macs
Weights & verified launch recipes
omlx-recipe:1:eNqNU9lywjAM_Jc8dzqEBqaTn9GIWCZuHNv44JhO_70yDYVAQvtoa3XsSvtZ4Ds4T1JpDWRwo0kUdfSJXm4jvTIQbUcmFPW64lAT1R6jsgakK9fXTIk6cKogcoGog31VQkNirsUIR2brsYcQBFgptcUrTGoM7UOXnzfEVplOme0FLa1vCAL2Tp9_B3R7qiZbDOEej9BYE-kY4aCMsIeiXq6XZcV0e0tAR0c-XtIeZpmAeApKkIkgfdbLmqJevC5XjI0OUKBjDQlyX0EutkU9hO402h3IvK0ADf2q2LgEPKAZVV7MQu9nnYHdFivfVrO4rfhv49Cip7MQNvFO_mAUW08o-MLeJyEioc4fT6r8g6hMgSfK4j1DMcUnbe4FWM2i8nI1nsgzq2qa1i0kW2sCEmiXyPBNa77ffCjLxUyxQfDrcOXMdiIqDQ6FYIeM3D3Aq_P4ghoriO0gcqb9GElWgWPzTVkpOGrmVnIxK2yS2FJ8jCe_sbuEbJtuDxsV8z1kEuPA87TQtNTzodx8FyNM6JRj1UO8bHmvexh571z36xuD--PM
⚡ 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
Official Unquantized FP8 (510.3 GB) (oMLX 0.8.3)
● 96.2% · NVMe Wall
NVMe Streaming: 8.56 GB/s / 8.90 GB/s ceiling (DRAM η_BW 52.3%) · Official FP8 MLA/dense + 6/384 FP8 experts streamed via os.preadv
Saturates 8.56 GB/s NVMe sequential read (96.2% of Apple SSD physical ceiling) in 220.8 GB Wired.
oQ2.5e-MTP (~2.5-bit) (oMLX 0.8.3)
● 75.4% · Roofline
108.2 tok/s × 16.95 GB/tok ÷ (1228 GB/s × 1.98× MTP) = 926.3 / 1228 GB/s · 11.17 GB MLA/dense + 3.11 GB routed (6/384) + 2.67 GB MTP3 head
Sustains 926.3 GB/s (75.4% DRAM Roofline) with affine oQ2.5e Metal kernels while offloading cold Engram tables.
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-11-28
Baseline
oMLX 0.8.3 · oQ2.5e-mtp
Out-of-box load (no A8 prefill, no CED, no MTP, default KV) 55.0 tok/s TG@32K
652 PP@1K · 1,642 PP@32K
224.7 GB Wired · Engram NVMe
3/3 Deterministic Pass ✅
2026-12-01
Ablation
oMLX 0.8.3 · oQ2.5e-mtp
+M5 Q4A8(min_tokens=64) + TQ8 KV + MTP depth=5 (without CED) 84.5 tok/s TG@32K (107.4 @ 16K)
754 PP@1K · 1,889 PP@32K
224.2 GB Wired · KB/s Engram
3/3 Deterministic Pass ✅
2026-12-03
Ablation
oMLX 0.8.3 · oQ2.5e-mtp
+CED Context-Elastic Prefill + TQ8 KV + MTP5 (without A8) 101.3 tok/s TG@32K
1,428 PP@4K · 2,861 PP@32K (+74%)
223.2 GB Wired · KB/s Engram
3/3 Deterministic Pass ✅
2026-12-05
Optimal ★
oMLX 0.8.3 · oQ2.5e-mtp
+Engram SSD + M5 Q4A8(m64) + CED + Lossless BF16 MLA KV + Adaptive MTP5 108.2 tok/s Peak TG (99.3 B4)
3,252 PP@32K (+98.1%) · 2,153 PP@64K
223.0 GB Wired · Zero Expert Swap
3/3 Math(34196)/Code/Logic ✅
2026-12-05
FP8 Hybrid
oMLX 0.8.3 · Official 510 GB FP8
Double-Hybrid: Engram SSD (-213 GB) + MoE resident_fraction=0.70 + A8(m64) + CED + MTP5 31.2 tok/s TG@16K (26.3 @ 32K)
602.8 PP@4K · 1,031.1 PP@32K
220.8 GB Wired · 4.58/8.56 GB/s NVMe
3/3 Lossless FP8 Pass (12.8s/17.3s/6.0s) ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 108.2 tok/s Decode · ≈ 3,252 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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 73.6 tok/s Decode · ≈ 1,073 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
Submit lab PR ↗
llm Gemma-4-26B-A4B AA 4 · Int. v5 Hugging Face Gemma · 2 configs · min 24 GB 1.87× vs 12-02
Details →
RECMLX 4-bit + DFlash Drafter (0.86 GB)
oMLX 0.8.3 (DFlash Speculative + TQ4) · @hiddendevj
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×
HF
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×
HF
Optimization history — Peak Decode Throughput (26B MoE 4-bit + Speculative)
147.0 tok/s2026-12-02Single-Token 4-bit156.1 tok/s2026-12-05+TurboQuant 4-bit KV196.0 tok/s2026-12-06+Google Assistant VLM-MTP275.0 tok/s2026-12-06+DFlash Adaptive + TQ4
Compatible Apple Silicon Macs
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
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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & 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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
llm GLM-5.3 (753B MoE) AA 32 · Int. v5 Hugging Face GLM · 2 configs · min 256 GB 28.80× vs 12-02
Details →
RECGGUF UD-IQ2_M (222.2 GiB + built-in NextN)
llama.cpp b12991 (Metal 4 fa_tensor + NextN MTP) · @hiddendevj
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 256 GB
189.9
@16K
43.2
tok/s
▲ 36.5%
Kernel Bound
252.8 GB
28.8×
HF
MLX 4-bit (418.3 GB)
oMLX 0.8.3 · @hiddendevj
M5 Ultra · 256GPomavia Lab
moe-offload
≥ 256 GB
89.0
@16K
2.3
tok/s
● 97.5%
NVMe Wall
232.8 GB
1.53×
HF
Optimization history — 753B MoE Peak Decode Throughput on 256 GB M5 Ultra
1.5 tok/s2026-12-02OS Swap Thrash2.3 tok/s2026-12-05Managed 4-bit Offload27.7 tok/s2026-12-06Pure-RAM UD-IQ2_M (222 GiB)43.2 tok/s2026-12-06+Built-in NextN MTP (n=4)
Compatible Apple Silicon Macs
Weights & verified launch recipes
GGUF UD-IQ2_M (222.2 GiB + built-in NextN) — unsloth/GLM-5.3-GGUF ↗
llama-server -m GLM-5.3-UD-IQ2_M-00001-of-00006.gguf --host 127.0.0.1 --port 18080 -ngl 999 -fa on -lm mmap -b 8192 -ub 8192 -ctk f16 -ctv f16 -c 32768 --jinja --spec-type draft-mtp --spec-draft-n-max 4
MLX 4-bit (418.3 GB) — mlx-community/GLM-5.3-4bit ↗
omlx-recipe:1:eNqNk9tuwjAMht-l12iirDDGy1imcdqsaRJy4KBp7z4XcWihRdzGn__Yv-3fDNfgPEmlNbTKQLQNmZBt8sV6lmEZ1R6jsgaky1dABreaRLaRqAPNMkHkAlED-yLnYOWxhRAEWCm1xR4nNYb6KV1aXxIEbJ1Wpro916filVhrCejoyMdr6C4cfRonPAUlyESQvmvKmmwz_yi-mI3uqa7dgcznEtDQzZrSJRD2YAb580n0TcW-WP65nOQq8e7HoUZP53ZtYnOvjkzQsfaEgqe9HkVEQt09vFB5o1GZAlfUmfeK4hZffPNowHKSavEIGk_kuativK0-sipGkUC7RIaXU_MixjrbLOYTYhfD78XlE9OJqDQ4FIJXfXBpF7w4ly-otILgwMvKmfZnYFkBTtPoTQRH5dRIIrV8ChiTp0t1sVam6crYJlFRfM6wDlxn8zf7zHlbu0vIt9PsYatiZ-xZZRB4OMFhMJQ1tfx77zkbMKFRjmcS4jV_r1t4Ps2_f2A5uRY
⚡ 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 (418.3 GB) (oMLX 0.8.3)
● 97.5% · NVMe Wall
NVMe Streaming: 8.68 GB/s / 8.90 GB/s ceiling (DRAM η_BW 4.4%) · 40B active @ MLX 4-bit (418.3 GB total, 53% streamed from NVMe)
Saturates 8.68 GB/s NVMe sequential read (97.5% of physical SSD ceiling); use pure-RAM UD-IQ2_M (43.2 tok/s) to bypass SSD wall.
GGUF UD-IQ2_M (222.2 GiB + built-in NextN) (llama.cpp b12991 (Metal 4 fa_tensor + NextN MTP))
▲ 36.5% · Kernel Bound
43.2 tok/s × 16.20 GB/tok ÷ (1228 GB/s × 1.56× MTP) = 448.6 / 1228 GB/s · 9.66 GB MLA/DSA/shared + 6.54 GB routed (8/256 @ UD-IQ2_M) + NextN n=4
Kernel Bottleneck: IQ2_M codebook LUT dequantization caps Metal ALU unpack at ~449 GB/s (36.5%). Next target: affine oQ2.5e MLX port / SIMD LUT unpack -> 75+ 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-02
Baseline
oMLX 0.8.3 · 4-bit (418.3 GB)
Default MoE offload resident_fraction=0.25, BF16 KV 1.5 tok/s TG (1.3 @ 16K)
22.4 PP@1K · 89.0 PP@16K
234.1 GB Peak · 6.31/8.54 GB/s NVMe
3/3 Pass (NVMe bound) ✅
2026-12-05
4-bit Offload
oMLX 0.8.3 · 4-bit (418.3 GB)
Tuned resident_fraction=0.47 (0.48 hits HTTP 507 guard) + TQ4 KV + os.preadv 20MiB blocks 2.3 tok/s TG (+53% vs 0.25)
84.2 PP@4K · 89.0 PP@16K
232.8 GB Wired · 8.68 GB/s NVMe (>95% ceiling)
3/3 Math(56.6s)/Code(114.1s)/Logic ✅
2026-12-06
KV Ablation
llama.cpp b12991 · UD-IQ2_M (222.2 GiB)
Pure-RAM Metal 4 fa_tensor: -ctk f16 (-ub 8192) vs q8_0 (-ub 4096) vs q4_0 @ 32K 27.74 tok/s TG (24.25 @ 16K · 22.91 @ 32K)
387.2 PP@1K · 226.0 PP@4K · 189.9 PP@16K
248.2 GB (231.2 GiB) Wired · 0.15 MB/s NVMe
MLA f16 KV beats q8_0 (+19.6% PP, +10.5% TG) & q4_0 (+15.0% @ 32K) ✅
2026-12-06
Optimal ★
llama.cpp b12991 · UD-IQ2_M + NextN MTP
-b 8192 -ub 8192 -ctk f16 -ctv f16 -lm mmap --spec-type draft-mtp --spec-draft-n-max 4 (swept n=1/2/3/4 + ngram-mod) 43.21 tok/s TG (18.8x vs 4-bit offload; 33.7 sustained)
387.2 PP@1K · 226.0 PP@4K · 80–83% MTP acc
252.8 GB (235.4 GiB) Wired · 0.13 MB/s NVMe (0 Swap)
6/6 Pass: Math 34196 (3.07s vs 56.6s), fib (5.21s vs 114.1s), Logic/LRU/RBTree ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 43.2 tok/s Decode · ≈ 190 tok/s Prefill (@16K)
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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 29.4 tok/s Decode · ≈ 63 tok/s Prefill (@16K)
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
Submit lab PR ↗
llm GLM-5.3-Flash AA 28 · Int. v5 Hugging Face GLM · 1 config · min 256 GB 2.36× vs 12-01
Details →
RECMLX 4-bit + MTP
oMLX 0.8.3 · @hiddendevj
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 256 GB
2,364.0
@32K
168.1
tok/s
● 75.6%
Roofline
195.9 GB
2.36×
HF
Optimization history — Peak Decode Throughput (320B MoE 4-bit)
71.2 tok/s2026-12-01Baseline 4-bit119.5 tok/s2026-12-03+Wired 249GB & TQ8168.1 tok/s2026-12-05+MTP Depth 5
Compatible Apple Silicon Macs
Weights & verified launch recipes
omlx-recipe:1:eNqNU1tywjAMvEu-mQ6BhKG5jEbEMnHj2MYPHtPp3aswQAkklF9rtdautN8ZrsF5kkpr6JSBaFsyIavyxXqWYR3VHqOyBqTLV0AGN5pEVknUgWaZIHKBqIV9kXNx67GDEARYKbXFO5zUGJqndml9TRCwc1qZ7e25ORWvyDpLQEdHPl5LT8QjEE9BCTIRpO9VWZNV849FydjoAAU6VkrQ4REEudhk1aV0o44-MfPuQGZZAhq6uVa7BMIezIB5Pgl9nHUCdk-WL8tJ3Fa8-3Fo0NPZCJvY938UxcYTCj6E9ShEJNT9wwuWN4TKFHii3rxXKJb44ptHA8pJVL9cjSfyrKoYl3UPWRWjkEC7RIbvVvON9oeymE-QXQz_Gy6f2E5EpcGhEJyCQQgv8OI8vqDaCoIDnzF32q-BZQU4TaNxCY7qqZVE6jgkGJOny3SxUabtx9gksaX43GEduN7mT_aZ-zZ2l5BT1e5ho2J_LmeWQeEhQsNiqBvq-Pe752yACa1yvJMQr_173cEgmefRfn4BizHDDA
⚡ 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 + MTP (oMLX 0.8.3)
● 75.6% · Roofline
168.1 tok/s × 9.77 GB/tok ÷ (1228 GB/s × 1.77× MTP) = 927.9 / 1228 GB/s · 4.90 GB KDA/dense + 4.87 GB routed (8/288 of 175.3 GB 4-bit)
Hits 75.6% of M5 Ultra DRAM ceiling (927.9 GB/s) via native M5 Q4A8(gs=64) gather_qmm + MTP5.
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-01
Baseline
oMLX 0.8.3 · 4bit-MTP (182 GB)
Standard 4-bit single-token decode without MTP or wired sysctl tuning 71.2 tok/s TG
1,006 PP@4K
192.4 GB Wired · Pure RAM
3/3 Deterministic Pass ✅
2026-12-03
Ablation
oMLX 0.8.3 · 4bit-MTP
+Unlocked iogpu.wired_limit_mb=249036 + TurboQuant 8-bit KV + MTP depth=3 119.5 tok/s TG
2,310 PP@4K
195.2 GB Wired · Pure RAM
3/3 Deterministic Pass ✅
2026-12-05
Optimal ★
oMLX 0.8.3 · 4bit-MTP
100% Pure RAM + Adaptive MTP depth=5 + TurboQuant 8-bit KV 168.1 tok/s Peak TG (155.9 @ 128K!)
2,374 PP@4K (+136%) · 2,287 PP@128K
195.9 GB Wired · 0 MB/s Swap
3/3 Math(34196)/Code/Logic ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 168.1 tok/s Decode · ≈ 2,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=486400 iogpu.wired_lwm_mb=465920
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 114.3 tok/s Decode · ≈ 780 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
Submit lab PR ↗
llm Hy4-Flash (224B MoE + Engram) AA 24 · Int. v5 Hugging Face Hy4 · 1 config · min 192 GB 1.67× vs 12-02
Details →
RECoQ4h-MTP (4-bit)
oMLX 0.8.3 · @hiddendevj
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 192 GB
2,554.0
@32K
77.2
tok/s
▲ 39.7%
Kernel Bound
149.8 GB
1.67×
HF
Optimization history — Peak Decode Throughput (224B MoE + Engram)
46.2 tok/s2026-12-02Baseline oQ4h77.2 tok/s2026-12-05+CED + Q4A8 + MTP5
Compatible Apple Silicon Macs
Weights & verified launch recipes
omlx-recipe:1:eNqNU-1uwjAMfJf-RhOFghgvY5nGoVnTJOQDNk179zkIGKUt419lX653Z_u7wA04T1JpDZ0yEG1LJhTbcrGZFVhHdcSorAHpyjWQwZ0mUWwl6kCzQhC5QNTCsSq5uffYQQgCrJTa4h1OagzN4Lm0viYI2DmtzP5Wbr6qZ2SdJaBPRz5eWwPiEYinoASZCNJnV9YU2_nbYsXY6AAFOnZK0OEnCHKxKbaX1o06-sTMhxOZ5QrQ0C212iUQ9mR6zPNJ6KPWCdg9WblcTeL24tUfhwY9nYOwiXP_x1FsPKHgRdiMQkRCnQtPWF4wKlNgRTm8Zyi2-OQ3jwGsJlF5uBq_yLOratzWPWRdjUICHRIZ3lvNO5oXZTGfILsE_ieunJhORKXBoRB8Bb0jvMCrs3xBtRUEJ15jfmk_epFV4DSNnktwVE-NJFLHR4IxecrRvXOlUabNMnZJ7CkOX1gH7VlY_nIXT0yws4eEfF7tEXYq5r0ZNgZkvW6oG-pYx1256GFCqxxPJ8TrNhx1B70bPfP-_ALbXMYZ
⚡ 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
oQ4h-MTP (4-bit) (oMLX 0.8.3)
▲ 39.7% · Kernel Bound
77.2 tok/s × 10.55 GB/tok ÷ (1228 GB/s × 1.67× MTP) = 487.7 / 1228 GB/s · 7.91 GB dense/attn + 2.61 GB routed (16/512 of 83.5 GB) + 39.7 GB Engram lookup
Kernel Bottleneck: 16-of-512 scattered expert gather + 4-layer Engram random lookup limits effective BW to 487.7 GB/s (39.7%). Next target: sorted expert coalescing + fused Engram projection.
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-02
Baseline
oMLX 0.8.3 · oQ4h-mtp (132 GB)
Default hybrid MoE load without MTP 46.2 tok/s TG
1,498 PP@4K
148.2 GB Wired · Pure RAM
3/3 Deterministic Pass ✅
2026-12-05
Optimal ★
oMLX 0.8.3 · oQ4h-mtp
Pure RAM (no Engram SSD needed at 149.8 GB) + Adaptive MTP depth=5 + Lossless BF16 KV 77.2 tok/s Peak TG (66.3 @ 128K)
2,558 PP@16K (+67%) · 2,484 PP@128K
149.8 GB Wired · Pure RAM
3/3 Math/Code/Logic Pass ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 77.2 tok/s Decode · ≈ 2,554 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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 52.5 tok/s Decode · ≈ 843 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
Submit lab PR ↗
Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 49.4 tok/s Decode · ≈ 613 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
Submit lab PR ↗
llm Inkling-2-Mini AA 13 · Int. v5 Hugging Face Inkling · 1 config · min 24 GB 2.21× vs 12-02
Details →
RECoQ4e-MTP (4-bit)
oMLX 0.8.3 · @hiddendevj
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×
HF
Optimization history — Peak Decode Throughput (oQ4e-MTP)
46.5 tok/s2026-12-02Standard 4-bit102.8 tok/s2026-12-05+MTP5 & Q4A8
Compatible Apple Silicon Macs
Weights & verified launch recipes
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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & 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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
llm Muse-Spark-Open-816B-A42B AA 25 · Int. v5 Hugging Face Muse · 1 config · min 256 GB 1.33× vs 12-01
Details →
RECGGUF UD-IQ2_XXS (2.06 bpw)
llama.cpp b12991 (Metal 4 fa_tensor) · @hiddendevj
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 256 GB
662.5
@16K
30.5
tok/s
▲ 36.8%
Kernel Bound
226.0 GB
1.33×
HF
Optimization history — Zero-Swap 816B MoE Decode (llama.cpp Metal 4)
22.9 tok/s2026-12-01Default llama.cpp30.5 tok/s2026-12-05Metal 4 fa_tensor + b8192
Compatible Apple Silicon Macs
Weights & verified launch recipes
GGUF UD-IQ2_XXS (2.06 bpw) — unsloth/Muse-Spark-Open-816B-A42B-GGUF ↗
llama-server -m Muse-Spark-Open-816B-A42B-UD-IQ2_XXS-00001-of-00006.gguf --host 127.0.0.1 --port 18080 -ngl 999 -fa on -lm mmap -b 8192 -ub 8192 -ctk f16 -ctv f16 -c 32768 --jinja
⚡ 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
GGUF UD-IQ2_XXS (2.06 bpw) (llama.cpp b12991 (Metal 4 fa_tensor))
▲ 36.8% · Kernel Bound
30.5 tok/s × 14.80 GB/tok ÷ (1228 GB/s × 1.00× MTP) = 451.8 / 1228 GB/s · 42B active @ UD-IQ2_XXS (mixed Q4/IQ2 attention/shared + 2.06 bpw experts)
Kernel Bottleneck: IQ2_XXS grid codebook LUT unpack caps Metal mul_mat_id at ~452 GB/s (36.8%), plus no MTP head. Next target: Metal 4 SIMD grid unpack + external draft head.
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-01
Baseline
llama.cpp b12991 · UD-IQ2_XXS (210 GiB)
Default -b 2048 -ub 512 -ctk f16 -lm mmap 30.53 tok/s TG
536.7 PP@4K (small ubatch starves 80c GPU)
225.4 GB Wired · 1.0 MB/s NVMe
Zero-swap verified ✅
2026-12-03
Ablation
llama.cpp b12991 · UD-IQ2_XXS
Tested -lm none / -lm dio & -ctk q8_0 at -b 8192 -ub 8192 29.54 tok/s TG
682.6 PP@4K (q8_0 slower than native fa_tensor f16!)
dio re-reads 8.1 GB/s NVMe unnecessarily
Confirmed -lm mmap mandatory ✅
2026-12-05
Optimal ★
llama.cpp b12991 Metal 4 fa_tensor
100% Pure RAM -b 8192 -ub 8192 -ctk f16 -ctv f16 -lm mmap (-ctk q4_0 for 80K) 30.5 tok/s TG (24.1 tok/s @ 80K!)
711.9 PP@4K (+32.6%) · 662.5 PP@16K · 392.5 PP@80K
226.0 GB Wired · 0.5 MB/s NVMe (Zero Swap)
6/6 Hard Puzzles (12-ball & LRU) Pass ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 30.5 tok/s Decode · ≈ 662 tok/s Prefill (@16K)
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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 20.8 tok/s Decode · ≈ 219 tok/s Prefill (@16K)
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
Submit lab PR ↗
llm Qwen3.6-35B-A3B AA 19 · Int. v5 Hugging Face Qwen · 1 config · min 32 GB 1.61× vs 11-30
Details →
RECMLX 4-bit (gs=64)
oMLX 0.8.3 · @hiddendevj
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×
HF
Optimization history — Peak Decode Throughput (35B MoE 4-bit)
112.4 tok/s2026-11-30Legacy Dual-ANE131.3 tok/s2026-12-03Pure GPU + TQ4 KV181.1 tok/s2026-12-05M5 Q4A8 + BF16 KV
Compatible Apple Silicon Macs
Weights & verified launch recipes
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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & 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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
llm Qwen3.8-27B AA 20 · Int. v5 Hugging Face Qwen · 1 config · min 24 GB 1.57× vs 12-01
Details →
RECMLX 4-bit (gs=64)
oMLX 0.8.3 · @hiddendevj
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×
HF
Optimization history — 32K Prefill Throughput (27B Dense 4-bit)
1538.0 tok/s2026-12-01Dual-ANE Hybrid2417.0 tok/s2026-12-05M5 Q4A8 Pure GPU
Compatible Apple Silicon Macs
Weights & verified launch recipes
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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & 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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
llm Qwen3.8-Flash-Next AA 28 · Int. v5 Hugging Face Qwen · 1 config · min 128 GB 3.31× vs 11-29
Details →
RECoQ8e-MTP (8-bit gs=64)
oMLX 0.8.3 · @hiddendevj
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 256 GB
5,693.0
@32K
138.5
tok/s
▲ 44.7%
Kernel Bound
212.9 GB
3.31×
HF
Optimization history — Peak Decode Throughput (180B 8-bit Near-Lossless)
41.8 tok/s2026-11-29Naive oQ8e68.4 tok/s2026-12-02+M5 Q8A8(m64)104.2 tok/s2026-12-04+GDN WideProj & TQ8138.5 tok/s2026-12-05+MTP5Pure-RAM
Compatible Apple Silicon Macs
Weights & verified launch recipes
omlx-recipe:1:eNqNU9lywjAM_Jc8dzpAA0P5GY2IZeLGsY0Pjun03ytTjgQSylvGWim7K-13gUtwnqTSGsjgWpMoVtEneutWWmUg2oZMKFaLkktVVDuMyhqQbrq4dUrUgVsFkQtEDezKKRc3HlsIQYCVUlvs4KTGUD-0S-srgoCt08psrs_1sXw2rLUEdHDk46X0MHgA4ikoQSaC9FmVNcVq8j6bMzY6QIGOlRK0eABBLtbF6ly6M2u7J_MxBzR0Na1yCYTdm97kySj0nusIrDts-jEfxW3Eqz8ONXo6GWET-_6Polh7QsF3sByEiIQ6PzyZ8oJQmQIzyuY9Q7HEJ7-5N2A-isrL1Xgkz6rKYVldSA7AACTQNpHhu9V8o_lQZpORYWfDb-SmI9uJqDQ4FIJT0MvgGV6e6AuqrCDY8xlzp_3qelKC0zSYluCoGttIpJYzgjF5OpOLtTJNZrFOYkPxscM6aLLkv0-XDf9kx3nE2m4Tcr6aHaxVzIdzGtgr3IWpXwxVTS0T6TwXPUxolOPthHjp3-kWehk9sfz5BQ4uzzM
⚡ 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
oQ8e-MTP (8-bit gs=64) (oMLX 0.8.3)
▲ 44.7% · Kernel Bound
138.5 tok/s × 8.00 GB/tok ÷ (1228 GB/s × 2.02× MTP) = 548.5 / 1228 GB/s · 4.57 GB GDN/dense + 2.51 GB routed (10/512 of 128.4 GB oQ8e) + 0.92 GB MTP
Kernel Bottleneck: 10-of-512 fine-grained expert scatter + 57.6 GB PLE row-miss latency caps effective read at 548.5 GB/s (44.7%). Next target: fused router+gather_q8a8 kernel & SLC-pinned PLE hot rows.
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-11-29
Baseline
oMLX 0.8.3 · oQ8e-mtp (195 GB)
Default load without Q8A8, without WideProj, without MTP 86.7 tok/s TG@1K (66.5 @ 32K)
530 PP@1K · 1,534 PP@4K
205.7 GB Wired · Pure RAM
3/3 Deterministic Pass ✅
2026-12-02
Ablation
oMLX 0.8.3 · oQ8e-mtp
+M5 Q8A8(m64, gs=64) + MTP5 (WideProj still off -> GDN bottleneck) 63.8 tok/s TG@32K (104.4 @ 16K)
2,658 PP@1K · 3,362 PP@4K
208.7 GB Wired · Pure RAM
3/3 Deterministic Pass ✅
2026-12-04
Ablation
oMLX 0.8.3 · oQ8e-mtp
+PLE-SSD Table Offload (-53.6 GB RAM; unlocks 128 GB / 192 GB Macs) 120.0 tok/s TG@32K
2,256 PP@4K · 5,410 PP@32K
155.1 GB Wired (-53.6 GB) · KB/s NVMe
3/3 Deterministic Pass ✅
2026-12-05
Optimal ★
oMLX 0.8.3 · oQ8e-mtp
100% Pure RAM + M5 Q8A8(m64) + qwen4_gdn_decode_wide_proj + TQ8 KV + MTP5 138.5 tok/s Peak TG (92.3 @ 128K!)
5,077 PP@4K (+231%) · 5,700 PP@32K · 5,390 PP@128K
212.9 GB Wired · 0 MB/s Swap
3/3 Near-Lossless 8-bit Pass ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 138.5 tok/s Decode · ≈ 5,693 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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 94.2 tok/s Decode · ≈ 1,879 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
Submit lab PR ↗
Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 88.6 tok/s Decode · ≈ 1,366 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
Submit lab PR ↗
Mac Studio / MBP (M5 Max) (128 GB · 614 GB/s) · ≈ 72.0 tok/s Decode · ≈ 2,846 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
Submit lab PR ↗

Image Generation

5 models
Quantization & Engine
Output Spec
Weights & Recipe
image FLUX.2-klein-4B AA 838 Elo Hugging Face FLUX · 1 config · min 16 GB 1.2× faster
Details →
RECMLX 8-bit
mflux 0.24.0 Resident Warm (MLX 0.32.5) · @hiddendevj
1024x1024Pomavia Lab
4 steps · M5 Ultra
≥ 16 GB
2.04s
● 74.5%
Near-Peak
25.0 GB
1.18×
HF
Optimization history — 1024×1024 4-Step Generation Time (Lower = Better)
2.4 s2026-12-06Cold First-Run JIT2.04 s2026-12-06Warm Resident MLX 8-bit
Compatible Apple Silicon Macs
Weights & verified launch recipes
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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & 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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
image FLUX.2-klein-9B AA 931 Elo Hugging Face FLUX · 2 configs · min 24 GB 1.6× faster
Details →
RECMLX 8-bit
mflux 0.24.0 Resident Warm (MLX 0.32.5) · @hiddendevj
1024x1024Pomavia Lab
4 steps · M5 Ultra
≥ 24 GB
3.66s
● 72.0%
Near-Peak
30.0 GB
1.56×
HF
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
—
HF
Optimization history — 1024×1024 4-Step Generation Time (Lower = Better)
5.7 s2026-12-03mflux 8-bit Cold CLI3.45 s2026-12-05Warm MPS BF163.66 s2026-12-06Warm Resident MLX 8-bit
Compatible Apple Silicon Macs
Weights & verified launch recipes
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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & 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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
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
Submit lab PR ↗
image MiniMax H3-Image AA 1065 Elo Hugging Face MiniMax · 1 config · min 192 GB 1.1× faster
Details →
RECBF16
diffusers 0.43.0 + torch 2.15.0 (MPS) · @hiddendevj
2048x2048Pomavia Lab
6 steps · M5 Ultra
≥ 192 GB
14.60s
● 81.4%
Compute Peak
145.6 GB
—
HF
Optimization history — 2048×2048 Native 2K Generation Time (Lower = Better)
15.7 s2026-12-03FP16 MPS14.6 s2026-12-05Native BF16 6-Step
⚡ Hardware roofline · compute efficiency (DiT TFLOPS)
η_FLOPs = sustained TFLOPS / chip peak BF16 tensor TFLOPS · ≥75% = compute roofline
BF16 (diffusers 0.43.0 + torch 2.15.0 (MPS))
● 81.4% · Compute Peak
Sustained 112.3 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + torch 2.15.0 (MPS))
34B DiT @ 2048x2048 (6 steps in 14.6s) sustains 112.3 TFLOPS (81.4% Compute Roofline) on native BF16 MPS.
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-03
Ablation
diffusers 0.43.0 + torch 2.15.0 (MPS)
FP16 precision cast @ 2048×2048 (6 steps, no CFG) 15.7s @ 2K · 3.7s @ 1K
38s load · FP16 cast overhead
144.0 GB Wired
Exact bilingual calligraphy ✅
2026-12-05
Optimal ★
diffusers 0.43.0 + torch 2.15.0 (MPS BF16)
Native BF16 6-step distilled across 1024², 2048², and true 4096² (16MP) 3.6s @ 1K · 14.6s @ 2K · 70.8s @ 4K
2.44s/step @ 2K · 6 steps
145.6 GB Wired (151.6 GB @ 4K)
Zero-typo CJK/EN across 1K–4K ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 14.6s (2048x2048)
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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 44.2s (2048x2048)
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
Submit lab PR ↗
Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 60.8s (2048x2048)
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
Submit lab PR ↗
image Qwen-Image-2.1 & Turbo AA 1047 Elo Hugging Face Qwen · 2 configs · min 48 GB 5.3× faster
Details →
RECMLX 8-bit (Turbo 8-step)
mflux 0.24.0 Resident Warm (MLX 0.32.5) · @hiddendevj
1024x1024Pomavia Lab
8 steps · M5 Ultra
≥ 48 GB
5.00s
● 76.8%
Compute Peak
39.0 GB
5.32×
HF
MLX 8-bit (30-step + StepCache 0.2)
mflux 0.24.0 Resident Warm (MLX 0.32.5) · @hiddendevj
1024x1024Pomavia Lab
30 steps · M5 Ultra
≥ 48 GB
16.21s
● 75.0%
Compute Peak
38.0 GB
1.64×
HF
Optimization history — 1024×1024 Bilingual Text-Rendering Image Time (Lower = Better)
26.6 s2026-12-02Diffusers MPS BF1621.1 s2026-12-04mflux 8-bit Cold CLI16.21 s2026-12-06Warm 30-Step + StepCache5.0 s2026-12-06Warm Turbo 8-Step MLX
Compatible Apple Silicon Macs
Weights & verified launch recipes
MLX 8-bit (Turbo 8-step) — Qwen/Qwen-Image-2.1 ↗
python models/image/qwen-image-2.1/run_warm.py --model-path /path/to/Qwen-Image-2.1-Turbo --base-model qwen-image-2.1-turbo -q 8 --warmup --steps 8 --width 1024 --height 1024
MLX 8-bit (30-step + StepCache 0.2) — Qwen/Qwen-Image-2.1 ↗
python models/image/qwen-image-2.1/run_warm.py --model-path /path/to/Qwen-Image-2.1 --base-model qwen-image-2.1 -q 8 --warmup --steps 30 --guidance 4.0 --step-cache-ratio 0.2 --width 1024 --height 1024
⚡ Hardware roofline · compute efficiency (DiT TFLOPS)
η_FLOPs = sustained TFLOPS / chip peak BF16 tensor TFLOPS · ≥75% = compute roofline
MLX 8-bit (30-step + StepCache 0.2) (mflux 0.24.0 Resident Warm (MLX 0.32.5))
● 75.0% · Compute Peak
Sustained 103.5 TFLOPS / 138 TFLOPS peak (mflux 0.24.0 Resident Warm (MLX 0.32.5))
30-step + StepCache 0.2 (16.21s warm) sustains 103.5 effective TFLOPS (75.0% Compute Roofline).
MLX 8-bit (Turbo 8-step) (mflux 0.24.0 Resident Warm (MLX 0.32.5))
● 76.8% · Compute Peak
Sustained 106.0 TFLOPS / 138 TFLOPS peak (mflux 0.24.0 Resident Warm (MLX 0.32.5))
7B DiT Turbo 8-step (5.00s warm @ 1K) sustains 106.0 TFLOPS (76.8% Compute Roofline) on 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-02
Baseline
diffusers 0.43.0 (MPS BF16)
30-step PyTorch MPS BF16 @ 1024×1024 26.6s Gen Time
0.714s/step · 30 steps
46.2 GB Wired
Exact CJK & EN signage ✅
2026-12-04
MLX 8-bit
mflux 0.24.0 · MLX 8-bit
30-step Native MLX 8-bit (+22% vs MPS; 4-bit rejected due to signage typos) 21.1s Total @ 1K (106.1s @ 2K)
1.71 it/s · 30 steps
38.0 GB Wired
Exact CJK & EN signage at 1K/2K ✅
2026-12-05
Turbo Cold
mflux 0.24.0 · Qwen-Image-2.1-Turbo
Official 8-step CFG=1 Turbo checkpoint in single-shot CLI MLX 8-bit 11.4s Cold @ 1K · 35.2s @ 2K
8 steps · 3x faster 2K
39.0 GB Wired
Crisp CJK signage & composition ✅
2026-12-06
30-Step Warm ★
mflux 0.24.0 · Resident MLX 8-bit
Resident warm 30-step + step_cache_ratio=0.2 (19.36s uncached warm) 16.21s Warm @ 1K (+64% vs MPS)
0.33s load · 30 steps
36.5 GB MLX · 38.0 GB Wired
Zero NaN · Matches uncached (std=33.3) ✅
2026-12-06
Optimal ★
mflux 0.24.0 · Resident Turbo 8-bit
Resident warm Qwen-Image-2.1-Turbo 8-step (eliminates per-image CLI JIT & load) 5.00s Warm @ 1K · 28.26s Warm @ 2K
0.48s load · 5.32x faster vs MPS baseline!
36.0 GB MLX · 39.0 GB Wired
Zero NaN · Exact CJK signage (std=40.1) ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 5.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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 15.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
Submit lab PR ↗
Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 20.8s (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
Submit lab PR ↗
Mac Studio / MBP (M5 Max) (128 GB · 614 GB/s) · ≈ 10.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=121600 iogpu.wired_lwm_mb=116480
Submit lab PR ↗
Mac mini / MBP (M5 Pro) (64 GB · 307 GB/s) · ≈ 20.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=60800 iogpu.wired_lwm_mb=58240
Submit lab PR ↗
image Z-Image-Turbo AA 936 Elo Hugging Face Z-Image · 1 config · min 32 GB 1.1× faster
Details →
RECMLX 8-bit / BF16
mflux 0.24.0 (MLX 0.32.5) · @hiddendevj
1024x1024Pomavia Lab
8 steps · M5 Ultra
≥ 32 GB
7.90s
● 72.1%
Near-Peak
36.8 GB
—
HF
Optimization history — 1024×1024 Photorealistic Generation Time (Lower = Better)
8.9 s2026-12-03mflux BF16 (9-step)7.9 s2026-12-05mflux 8-bit (8-step)
⚡ Hardware roofline · compute efficiency (DiT TFLOPS)
η_FLOPs = sustained TFLOPS / chip peak BF16 tensor TFLOPS · ≥75% = compute roofline
MLX 8-bit / BF16 (mflux 0.24.0 (MLX 0.32.5))
● 72.1% · Near-Peak
Sustained 99.5 TFLOPS / 138 TFLOPS peak (mflux 0.24.0 (MLX 0.32.5))
6B DiT 8-step (7.9s total incl. CLI init) achieves 99.5 TFLOPS (72.1% Near-Roofline; warm loop can save ~1.2s).
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-03
Baseline
mflux 0.24.0 · MLX BF16
Unquantized BF16 @ 1024×1024 (9 steps, guidance=0) 8.9s Total (~6.5s denoise)
1.38 it/s · 9 steps
36.0 GB Wired
Exact CJK + EN signage ✅
2026-12-05
Optimal ★
mflux 0.24.0 · MLX 8-bit
8-bit quantized DiT @ 1024×1024 (8 steps) & 1536×864 (9 steps) 7.9s @ 1K · 10.8s @ 1536×864
1.45 it/s · 8 steps
36.5 GB Wired (fits 36–48 GB Macs)
Matches BF16 photorealism ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 7.9s (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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 23.9s (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
Submit lab PR ↗
Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 32.9s (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
Submit lab PR ↗
Mac Studio / MBP (M5 Max) (128 GB · 614 GB/s) · ≈ 15.8s (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
Submit lab PR ↗
Mac mini / MBP (M5 Pro) (64 GB · 307 GB/s) · ≈ 31.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
Submit lab PR ↗
Mac mini / MBP 14″ / iMac (M6) (32 GB · 170 GB/s) · ≈ 51.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=28160 iogpu.wired_lwm_mb=26560
Submit lab PR ↗

Video Generation

2 models
Quantization & Engine
Output Spec
Weights & Recipe
video MiniMax H3 (+ Lakonik/pi-H3 1.5) AA 1155 Elo Hugging Face MiniMax · 4 configs · min 192 GB 27.0× faster
Details →
RECPATCH ↗BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 4-step DWD
diffusers 0.43.0 + LakonLab + Model2Metal MPS patches · @hiddendevj
1344x768Pomavia Lab
124f (5.17s) · 4 steps
≥ 192 GB
162.20s
● 79.6%
Compute Peak
147.5 GB
13.8×
HF
PATCH ↗BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 2-step DWD
diffusers 0.43.0 + LakonLab + Model2Metal MPS patches · @hiddendevj
1344x768Pomavia Lab
124f (5.17s) · 2 steps
≥ 192 GB
82.80s
● 78.6%
Compute Peak
147.7 GB
27.0×
HF
PATCH ↗BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 4-step Native VAE
diffusers 0.43.0 + LakonLab + Model2Metal MPS patches · @hiddendevj
1344x768Pomavia Lab
124f (5.17s) · 4 steps
≥ 192 GB
197.00s
● 69.7%
Near-Peak
136.8 GB
11.3×
HF
PATCH ↗BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 4-step DWD
diffusers 0.43.0 + LakonLab + Model2Metal MPS patches · @hiddendevj
1344x768Pomavia Lab
243f (10.12s) · 4 steps
≥ 256 GB
583.70s
● 80.9%
Compute Peak
179.7 GB
—
HF
Optimization history — 1344×768 · 5.17s Audio+Video Generation Time (Lower = Better)
2232.0 s2026-12-0150-Step CFG Baseline197.0 s2026-12-04+pi-H3 1.5 & MPS Patches162.2 s2026-12-05+4-Step DWD Decoder82.8 s2026-12-06+2-Step DWD Turbo
Compatible Apple Silicon Macs
Weights & verified launch recipes
BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 4-step DWD — Lakonik/pi-H3 ↗
python models/video/minimax-h3/run.py --model /path/to/MiniMax-H3 --adapter-dir /path/to/pi-H3 --adapter pi_h3_1_5_4step_dwd_adapter --steps 4 --dwd --frames 124
BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 2-step DWD — Lakonik/pi-H3 ↗
python models/video/minimax-h3/run.py --model /path/to/MiniMax-H3 --adapter-dir /path/to/pi-H3 --adapter pi_h3_1_5_2step_dwd_adapter --steps 2 --dwd --frames 124
⚡ Hardware roofline · compute efficiency (DiT TFLOPS)
η_FLOPs = sustained TFLOPS / chip peak BF16 tensor TFLOPS · ≥75% = compute roofline
BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 2-step DWD (diffusers 0.43.0 + LakonLab + Model2Metal MPS patches)
● 78.6% · Compute Peak
Sustained 108.4 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + LakonLab + Model2Metal MPS patches)
2-step pi-H3 DWD (82.8s @ 768p) sustains 108.4 TFLOPS (78.6% Compute Roofline).
BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 4-step DWD (diffusers 0.43.0 + LakonLab + Model2Metal MPS patches)
● 80.9% · Compute Peak
Sustained 111.6 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + LakonLab + Model2Metal MPS patches)
243-frame 10.1s 3D attention sustains 111.6 TFLOPS (80.9% Compute Roofline).
BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 4-step DWD (diffusers 0.43.0 + LakonLab + Model2Metal MPS patches)
● 79.6% · Compute Peak
Sustained 109.8 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + LakonLab + Model2Metal MPS patches)
33B Audio-Video DiT (1344x768x124f, 4-step pi-H3 + DWD) sustains 109.8 TFLOPS (79.6% Compute Roofline).
BF16 + Online Rank-8 AdaLN Fold + pi-H3 1.5 4-step Native VAE (diffusers 0.43.0 + LakonLab + Model2Metal MPS patches)
● 69.7% · Near-Peak
Sustained 96.2 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + LakonLab + Model2Metal MPS patches)
Native 3D VAE decode lowers end-to-end effective TFLOPS to 96.2 (69.7%); prefer 4-step DWD decoder (162.2s).
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-01
Baseline
PyTorch 2.15.0 MPS · 33B Audio-Video DiT
Official 50-step CFG pipeline (1344×768, 124f = 5.17s @ 24fps + 32kHz stereo) 2,232.0s (37.2 min)
39.2s load · 1.0x baseline
166.2 GB Wired
Audio RMS 0.0985 / Cinema f0..f123 ✅
2026-12-04
Kernel/Patch
PyTorch 2.15.0 MPS + Model2Metal Patch
+pi-H3 1.5 4-step + 95KB online AdaLN low-rank fold (-26 GB RAM) + 3D VAE 197.0s (11.3x faster)
36.5s load · 4 steps
136.8 GB Wired (-29.4 GB!)
Cosine 1.0000 AdaLN · Audio RMS 0.1322 ✅
2026-12-05
Optimal Quality ★
PyTorch 2.15.0 MPS + 16K SwiGLU Chunk Patch
+DWD VAE-free pixel refiner + 16,384-token SolH3SwiGLU chunking (fixes MPSGraph INT_MAX crash!) 162.2s @ 5.17s (13.8x) · 583.7s @ 10.12s
30.1s load · Unlocks 243-frame 10s HD!
147.5 GB Wired (179.7 GB @ 10.12s)
f0/fmid/flast + Stereo RMS 0.1368 ✅
2026-12-06
Optimal Speed ★
PyTorch 2.15.0 MPS + DWD + AdaLN Fold
pi-H3 1.5 2-step DWD Turbo (1344×768 @ 24fps + 32kHz stereo) 82.8s (27.0x faster vs 50-step!)
34.0s load · 2 steps
147.7 GB Wired
Sharp CJK signage & Stereo RMS 0.0935 ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 162.2s (1344x768)
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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 491.5s (1344x768)
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
Submit lab PR ↗
Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 675.8s (1344x768)
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
Submit lab PR ↗
video Wan2.2-T2V-A14B AA 1118 Elo Hugging Face Wan · 5 configs · min 32 GB 19.9× faster
Details →
RECPATCH ↗BF16 DiT + BF16 VAE + lightx2v 4-step Dual LoRA
diffusers 0.43.0 + torch 2.15.0 (MPS) · @hiddendevj
832x480Pomavia Lab
81f (5.06s) · 4 steps
≥ 96 GB
82.50s
● 71.8%
Near-Peak
90.0 GB
21.4×
HF
PATCH ↗MLX 8-bit Fused Dual-LoRA DiT + BF16 VAE
Native MLX 0.32.5 (mlx-video + wan22_mlx.py) · @hiddendevj
832x480Pomavia Lab
81f (5.06s) · 4 steps
≥ 32 GB
88.74s
● 67.4%
Near-Peak
31.5 GB
19.9×
HF
PATCH ↗BF16 DiT + BF16 VAE + lightx2v 4-step Dual LoRA
diffusers 0.43.0 + torch 2.15.0 (MPS) · @hiddendevj
1280x720Pomavia Lab
81f (5.06s) · 4 steps
≥ 128 GB
357.30s
● 75.5%
Compute Peak
109.8 GB
—
HF
PATCH ↗BF16 DiT + FP32 VAE (Zero-Training FirstBlockCache)
diffusers 0.43.0 + torch 2.15.0 (MPS) · @hiddendevj
832x480Pomavia Lab
81f (5.06s) · 40 steps
≥ 128 GB
819.40s
● 64.8%
Near-Peak
105.0 GB
2.15×
HF
PATCH ↗BF16 DiT + FP32 VAE (TaylorSeerCache w/ blocks.* fix)
diffusers 0.43.0 + torch 2.15.0 (MPS) · @hiddendevj
832x480Pomavia Lab
81f (5.06s) · 40 steps
≥ 128 GB
843.90s
● 62.9%
Near-Peak
100.9 GB
2.09×
HF
Optimization history — 832×480 · 81-Frame Video Generation Time (Lower = Better)
1765.3 s2026-12-0140-Step CFG Baseline843.9 s2026-12-03+TaylorSeer Regex Fix819.4 s2026-12-04+FirstBlockCache82.5 s2026-12-05+lightx2v 4-Step & BF16 VAE88.7 s2026-12-06+Native MLX 8-bit DiT (31 GB)
Compatible Apple Silicon Macs
Weights & verified launch recipes
BF16 DiT + BF16 VAE + lightx2v 4-step Dual LoRA — lightx2v/Wan2.2-Distill-Loras ↗
python models/video/wan2.2-t2v-a14b/run.py --model /path/to/Wan2.2-T2V-A14B-Diffusers --lora-dir /path/to/Wan2.2-Distill-Loras --mode lightning4 --vae-bf16 --width 832 --height 480
MLX 8-bit Fused Dual-LoRA DiT + BF16 VAE — Wan-AI/Wan2.2-T2V-A14B-Diffusers ↗
python models/video/wan2.2-t2v-a14b/run_mlx.py --model /path/to/Wan2.2-T2V-A14B-Diffusers --lora-dir /path/to/Wan2.2-Distill-Loras --sequential --width 832 --height 480
⚡ Hardware roofline · compute efficiency (DiT TFLOPS)
η_FLOPs = sustained TFLOPS / chip peak BF16 tensor TFLOPS · ≥75% = compute roofline
BF16 DiT + FP32 VAE (Zero-Training FirstBlockCache) (diffusers 0.43.0 + torch 2.15.0 (MPS))
● 64.8% · Near-Peak
Sustained 89.4 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + torch 2.15.0 (MPS))
40-step CFG + FirstBlockCache sustains 89.4 TFLOPS (64.8%); superseded by 4-step lightx2v LoRA (82.5s).
BF16 DiT + BF16 VAE + lightx2v 4-step Dual LoRA (diffusers 0.43.0 + torch 2.15.0 (MPS))
● 71.8% · Near-Peak
Sustained 99.1 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + torch 2.15.0 (MPS))
Dual 14B DiT @ 32,760 tokens (4 steps + BF16 VAE = 82.5s) sustains 99.1 TFLOPS (71.8% Near-Roofline).
BF16 DiT + BF16 VAE + lightx2v 4-step Dual LoRA (diffusers 0.43.0 + torch 2.15.0 (MPS))
● 75.5% · Compute Peak
Sustained 104.2 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + torch 2.15.0 (MPS))
720p 73,710-token 3D full attention sustains 104.2 TFLOPS (75.5% Compute Roofline).
MLX 8-bit Fused Dual-LoRA DiT + BF16 VAE (Native MLX 0.32.5 (mlx-video + wan22_mlx.py))
● 67.4% · Near-Peak
Sustained 93.0 TFLOPS / 138 TFLOPS peak (Native MLX 0.32.5 (mlx-video + wan22_mlx.py))
Native MLX 8-bit pre-fused LoRA DiT sustains 93.0 TFLOPS (67.4% Near-Roofline) while cutting RAM 90 GB -> 21.6 GB MLX.
BF16 DiT + FP32 VAE (TaylorSeerCache w/ blocks.* fix) (diffusers 0.43.0 + torch 2.15.0 (MPS))
● 62.9% · Near-Peak
Sustained 86.8 TFLOPS / 138 TFLOPS peak (diffusers 0.43.0 + torch 2.15.0 (MPS))
40-step TaylorSeerCache sustains 86.8 TFLOPS (62.9%); superseded by 4-step lightx2v LoRA (82.5s).
📋 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 & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-01
Baseline
diffusers 0.43.0 + torch 2.15.0 (MPS)
Official 40-step CFG=4.0/3.0 + FP32 VAE (832×480, 81f = 5.06s) 1,765.3s (29.4 min)
14.1s load · 1.0x baseline
99.5 GB Wired
f0/f40/f80 Cinema Reference ✅
2026-12-03
Kernel/Patch
diffusers 0.43.0 + wan22_mps.py
Training-free TaylorSeerCache (patched skip=blocks.\d+, cache=proj_out regex) 843.9s (2.09x faster)
13.8s load · 40 steps no-LoRA
100.9 GB Wired
f0/f40/f80 Visual Check Pass ✅
2026-12-04
Training-Free ★
diffusers 0.43.0 + wan22_mps.py
Training-free FirstBlockCache(threshold=0.12) across dual 14B MoE transformers 819.4s (2.15x faster, skips 22/40 steps)
14.4s load · Pixel-faithful to 40-step
105.0 GB Wired
Near-identical to uncached 40-step ✅
2026-12-05
MPS Speed ★
diffusers 0.43.0 + wan22_mps.py
Fused lightx2v 4-step Dual-LoRA (asserted weight delta >1e-5, shift=5.0) + BF16 VAE 82.5s @ 480p (21.4x) · 357.3s @ 720p
24.6s load · Saves 10.6–17.9 GB vs FP32 VAE
90.0 GB Wired @ 480p · 109.8 GB @ 720p
Zero NaN/banding · Fits 128 GB Mac! ✅
2026-12-06
MLX 8-bit Low-RAM ★
Native MLX 0.32.5 (mlx-video + wan22_mlx.py)
Pre-quantization BF16 Dual-LoRA fuse + 8-bit DiT (gs=64) sequential swap + precomputed Cross-KV 88.74s @ 480p (6.05s VAE · 92.85s dual)
1.0s load · Unlocks 32 GB / 48 GB / 64 GB Macs!
21.57 GB MLX · 31.49 GB Wired (-65% vs MPS!)
40-layer cos=0.99885 vs BF16 · f0/f40/f80 ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 82.5s (832x480)
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
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 250.0s (832x480)
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
Submit lab PR ↗
Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 343.8s (832x480)
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
Submit lab PR ↗
Mac Studio / MBP (M5 Max) (128 GB · 614 GB/s) · ≈ 165.0s (832x480)
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
Submit lab PR ↗
Mac mini / MBP (M5 Pro) (64 GB · 307 GB/s) · ≈ 330.0s (832x480)
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
Submit lab PR ↗
Mac mini / MBP 14″ / iMac (M6) (32 GB · 170 GB/s) · ≈ 532.3s (832x480)
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
Submit lab PR ↗