Esperimenti #28
`MLX_SDPA_D512_MIN_KL=1000000000` on mlx-vlm + MTP (row 27's timing-free step found MLX's fused D = 512...
done
Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.
Cosa è stato provato
`MLX_SDPA_D512_MIN_KL=1000000000` on mlx-vlm + MTP (row 27's timing-free step found MLX's fused D = 512 SDPA kernel 5.8x slower than the unfused path at 8k keys, 1.49 against 0.26 ms; 5 full-attention layers): paired The writing phase: the model produces the reply one token at a time. Approfondisci against `vlm_optiq_mtp` on the 50 sessions
Modello e configurazione
gemma-4-26b-a4b OptiQ-4bit + MTP assistant
Guadagno atteso
+15 to +30% decode (**guess**: about 6 ms of a ~21 ms step)
Da dove viene l'idea
row 27
Esito
done 2026-10-29: stopped at 127 of 300 rows, +0.6% (not scored); the variable moves only 1-token queries and MTP verifies 7 The unit of text a model reads and writes: roughly a short word or a piece of a longer one., so row 30 replaces it (`docs/experiments/2026-10-29-mac-d512-attention/`)
Lezione
a kernel fix measured on a 1-token microbench must be re-measured at the query length the engine really sends; with a The small guessing model used in speculative decoding. Approfondisci that is the verify length (7 here), not 1.
Adottato
no (A valid experiment that did not beat the best score by more than the noise.)