M2M Model2Metal

GLM-5.3-Flash — Apple Silicon Quantizations & Speeds

320B MoE long-context monster: 168.1 tok/s peak decode and an astonishing 155.9 tok/s at 128K context on 256 GB M5 Ultra.

Open on Hugging Face (mlx-community/GLM-5.3-Flash-MLX-4bit-MTP) ← All Models
Quantization & Engine
Hardware & Mode
Weights & Recipe
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 ↗