MLX vs llama.cpp decode and prefill by model size and context

Parent: Mac local LLMs: Benchmarking and comparisons · Published reference · snapshot 2026-10-05

↓ Facts as markdownall context files

Decode is bandwidth-bound, so the engine gap is mostly "fraction of the memory bus the kernels reach" plus per-token dequant cost. M3 Ultra (about 800 GB/s), Qwen3.5-9B: llama.cpp Q4_K_M 5.28 GiB at 77.8 tok/s is about 440 GB/s (about 55% of the bus); mlx-lm 4-bit 6.0 GB at 107.5 tok/s is about 6...

These notes link each claim to its source. A source may be a research report hosted on this site rather than the primary document. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Facts

Corrections and disagreements

Children

← the whole tree · 3D view· how to read this page