r/Applesilicon • • 2h 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

1 Upvotes

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/s on DeepSeek V4.1 Flash) and llama.cpp b12359 -> b12726 (31.9 -> 32.5 tok/s on GLM 5.3 Flash) barely changed decode speed with speculation OFF.
  • Native MTP delivered the real jump: DeepSeek V4.1 Flash (oQ4e-mtp, 407 GiB on oMLX) jumped +35% overall (49.8 -> 67.3 tok/s, 80.5 tok/s on tool calls, 77.1 tok/s warm at 64K context with 2.0 s TTFT and 100% Nominal thermals at 160 W mean / 339 W max). GLM 5.3 Flash (UD-Q6_K_XL, 278 GiB on llama.cpp) jumped +49% overall (32.5 -> 48.5 tok/s) and +63% on real JSON coding-agent edits (32.4 -> 52.9 tok/s), with 0.58 s warm TTFT at 64K cache.
  • Watch out for llama.cpp --spec-type ngram-mod in coding agents: On raw code rewrites, prompt lookup hit 79% acceptance (+56% speed). Inside real JSON-escaped agent tool payloads (\n, \"), literal matching collapsed to 10.9% acceptance (0% speedup), while Native draft-mtp held 79-82% acceptance.
  • Metal shader & concurrency quirks: Send one short warmup prompt after launching oMLX with MTP (~62.5 s cold Metal verifier shader compile -> 0.3 s warm). DeepSeek MTP peaks at 2 simultaneous clients (92 tok/s) and saturates at 4 clients (361.5 W peak), whereas GLM 5.3 Flash draft-mtp scaled smoothly to 4 clients (77.8 agg tok/s, 170 GiB RAM 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