r/Applesilicon • u/L8W8 • 6h ago
Breaking past the M5 Ultra memory-bandwidth wall for large local AI: Native MTP (+35% to +79%) vs. prompt lookup on Mac Studio M5 Ultra 512 GB
Even with 1.2 TB/s of unified memory bandwidth on the Mac Studio M5 Ultra 512 GB, streaming 250-430 GB of model weights one token at a time caps local LLM generation speed. I tested whether late-November engine updates (oMLX 0.8.3, llama.cpp b12726, MLX-LM, MLX-VLM 0.8.1, vLLM-Metal 0.34.0) and built-in speculative decoding (Native Multi-Token Prediction, or MTP) actually break past that wall across 640 benchmark tasks, 8 JSON coding-agent edit tasks, 64K prefix caching, and 1/2/4-client serving with powermetrics logs.
Key measured takeaways on Apple Silicon:
- Engine updates alone were flat (~0%): Upgrading
oMLX 0.7.3 -> 0.8.3(49.5 -> 49.8 tok/son DeepSeek V4.1 Flash) andllama.cpp b12359 -> b12726(31.9 -> 32.5 tok/son GLM 5.3 Flash) barely changed decode speed with speculation OFF. - Native MTP delivered the real jump: DeepSeek V4.1 Flash (
oQ4e-mtp,407 GiBonoMLX) jumped +35% overall (49.8 -> 67.3 tok/s,80.5 tok/son tool calls,77.1 tok/swarm at 64K context with2.0 sTTFT and 100% Nominal thermals at160 Wmean /339 Wmax). GLM 5.3 Flash (UD-Q6_K_XL,278 GiBonllama.cpp) jumped +49% overall (32.5 -> 48.5 tok/s) and +63% on real JSON coding-agent edits (32.4 -> 52.9 tok/s), with0.58 swarm TTFT at 64K cache. - Watch out for
llama.cpp --spec-type ngram-modin coding agents: On raw code rewrites, prompt lookup hit79%acceptance (+56%speed). Inside real JSON-escaped agent tool payloads (\n,\"), literal matching collapsed to10.9%acceptance (0%speedup), while Nativedraft-mtpheld79-82%acceptance. - Metal shader & concurrency quirks: Send one short warmup prompt after launching
oMLXwith MTP (~62.5 scold Metal verifier shader compile ->0.3 swarm). DeepSeek MTP peaks at 2 simultaneous clients (92 tok/s) and saturates at 4 clients (361.5 Wpeak), whereas GLM 5.3 Flashdraft-mtpscaled smoothly to 4 clients (77.8 agg tok/s,170 GiBRAM spare).
All raw CSVs, pinned engine checksums, and exact launch commands (CC BY 4.0): https://github.com/l8w8/videos/tree/main/2026/002-m5-ultra-mtp-engine-updates
11-minute chart walkthrough on YouTube: https://youtu.be/cEOhoBGDTeM