Zeraix (@ZeraixAI) — Local reasoning models¶
Original post: https://x.com/ZeraixAI/status/2117430008339636504
Posted: 2026-11-03T01:33:48Z · Collected: 2026-11-03T15:30:00Z
Why it matters¶
Low-level prefill optimization for local inference on Apple Silicon.
Summary¶
@ZeraixAI points to an open MLX-LM pull request that trims prefill work in Gemma 4’s KV-sharing layers when only the last token’s logits are needed. Their takeaway: check which states future tokens actually need before optimizing kernels.
Pull quotes¶
Need only the last token’s logits? Some prefill work may be unnecessary.
Our takeaway: check which states future tokens actually need before optimizing kernels.
Referenced links¶
perf(gemma4): add per_layer_config, KV-shared logits_to_keep prefill trimming, and MTP/MoE sanitization by casualuser · Pull Request #2026 · ml-explore/mlx-lm (from post
2117430008339636504)https://t.co/vGRVNnSFXm (from post
2117430008339636504)