Quantization & Engine
Hardware & Mode
Weights & Recipe
M5 Ultra · 256GPomavia Lab
pure-ram
≥ 256 GB
662.5
@16K
30.5
tok/s
▲ 36.8%
Kernel Bound
226.0 GB
1.33×
Optimization history — Zero-Swap 816B MoE Decode (llama.cpp Metal 4)
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
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 & stage | Engine & quant | Optimization / ablation parameters | Measured speed | Wired RAM & NVMe I/O | Verification & 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 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