Open mlx-lm PR boosts M3 Ultra 128K prefill 4x to 1,042 tok/s

AIFlow_ML · x · 2026-11-27

An unmerged mlx-lm PR (#2112) adds GQA support to sparse QSA attention (used by Qwen-3.8 Flash Next), cutting attention compute from O(L×N) to O(L×topk). Per shared benchmarks, 128K prefill on an M3 Ultra jumps from 259.5 to 1,041.9 tok/s (4x), with author tables showing an M5 Ultra reaching 2,274.0 tok/s from 825.6. Decode at 128K only improved 20-25%. Caveats: not merged, not bit-exact (KLD 0.0104), and unverified by the poster.

Related event: mlx-lm QSA PR Quadruples 128K Prefill Speed on M3 Ultra(2 posts)→

Original post →

More from Infra

Infra channel →