Experiments #31
`MLX_SDPA_D512_MIN_KL=1000000000` on the 1-user baseline mlx-serve (1-token decode, where the variable...
done
What was tested
`MLX_SDPA_D512_MIN_KL=1000000000` on the 1-user The unmodified setup's score, the line every experiment must beat. mlx-serve (1-token The writing phase: the model produces the reply one token at a time. Read more, where the variable moves MLX's head-dim-512 kernel)
Model and setup
gemma-4-26b-a4b OptiQ-4bit
Expected gain
0 to +25% decode (**guess**)
Where the idea came from
rows 28, 30b
Outcome
done 2026-10-29: A valid experiment that did not beat the best score by more than the noise., -1.5% decode (interval -1.7 to -1.4); mlx-serve decodes with its own The step where each token looks back at the earlier tokens to decide what matters. Read more kernels (`docs/experiments/2026-10-29-mac-d512-attention/`)
Lesson
an engine-wide MLX switch is not a lever on mlx-serve, which ships its own decode attention; check an engine's own kernels before porting an MLX-level fix to it.
Adopted
no (slower than the baseline)