M2M Model2Metal

Hy4-Flash (224B MoE + Engram) — Apple Silicon Quantizations & Speeds

Pure-RAM 132 GB MoE+Engram flagship: 2,558 tok/s PP@16K, 77.2 tok/s peak decode, 66.3 tok/s at 128K.

Open on Hugging Face (mlx-community/Hy4-flash-oQ4h-mtp) ← All Models
Quantization & Engine
Hardware & Mode
Weights & Recipe
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 ↗