Verba/Rapida

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 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 , 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 that is the verify length (7 here), not 1.

Adottato

no ()

Vuoi vedere cosa hanno prodotto questi esperimenti? Lesto, il motore di inferenza per Gemma 4 sui Mac con Apple silicon, è su lestoengine.com

Creato da Federico Andrioli, @fedeandri su X Le misure di un laboratorio di ricerca, ricavate direttamente dai suoi file. Dati aggiornati al