M2M Model2Metal

Qwen3.8-Flash-Next — Apple Silicon Quantizations & Speeds

Near-lossless 8-bit (`oQ8e`, gs=64) unlocks M5 Q8A8 + WideProj to hit 5,700 tok/s PP@32K, 5,390 tok/s PP@128K, and 138.5 tok/s TG.

Open on Hugging Face (mlx-community/Qwen3.8-Flash-Next-oQ8e-mtp) ← All Models
Quantization & Engine
Hardware & Mode
Weights & Recipe
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 ↗