MLX dequantize + SDPA
by Apple · Technique · Text & code
A technique that unpacks compressed low-bit attention cache values and computes scaled dot-product attention on Apple silicon, saving memory during long text generation.
Alternatives
mlx-m5-kernels4-bit fused KV-cache kernel ran 2.405x faster than mx.dequantize plus SDPA at 32K context on Llama-3-8B shapes