M5 Max benchmark: Kapitsa hits 36.6 tok/s with KFlash, 28GB at 32K vs mlx-lm's 52GB

DotaMate · reddit · 2026-10-27

A developer (author of open-source Apple Silicon engine Kapitsa, self-declared conflict of interest with repro scripts) benchmarked Nanbeige4.3-33B 4-bit on a MacBook Pro M5 Max 128GB across mlx-lm, llama.cpp, and Kapitsa from 512 to 32K tokens. Key results: mlx-lm leads prefill (546 tok/s at 32K); Kapitsa with KFlash speculative decoding hits 36.6 tok/s writing code vs 27.1/24.9; follow-up-turn TTFT is 140ms vs 500ms; peak memory at 29.5K is 28GB vs 52GB. The model's per-layer full attention makes its KV cache very inefficient (26GB for 128K tokens).

Original post →

More from Infra

Infra channel →