Uncompressed FP16 SDPA
Technique · Text & code
A baseline way of computing attention in which the cached keys and values stay in full half-precision, with no compression, used as the reference for quality and speed.
Alternatives
mlx-m5-kernels4-bit fused KV-cache kernel ran 1.055x faster than uncompressed FP16 SDPA at 32K context while using 71.9% less KV memory