Verba/Rapida

Esperimenti #111

MLX main's blocked head-dim-512 prefill attention back-ported (the 5 full layers run unfused on the M4...

not

Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.

Cosa è stato provato

MLX main's blocked head-dim-512 back-ported (the 5 full layers run unfused on the M4, `scaled_dot_product_attention.cpp:745-763`, `:874-884`)

Modello e configurazione

the best

Guadagno atteso

at most about -0.22 s per 8k first (-2.1%; the masked half of each diagonal block of the full layers' 1.11 s, row 106)

Da dove viene l'idea

row 107

Esito

not started; closed 2026-11-02 before any build: the upstream change is MLX PR 4518 ( 2026-09-30, `39a182fb`, not in the vendored 0.32.3), a blocked form of the same composed attention made for memory; its own M4 Pro table shows speed unchanged (246.5 against 246.8 ), and Lesto's head-dim-512 prefill runs MLX's composed fallback (`src/transformer.zig:2935`, `:2033`); a speed lever needs a Lesto head-dim-512 flash prefill kernel: row 117

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