Verba/Rapida

Esperimenti #149m

Pass 1 against pass 2 of the global layers' head-dim-512 `sdpa_vector_2pass` at 8k: the kernel runs at 156...

done

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

Cosa è stato provato

Pass 1 against pass 2 of the global layers' head-dim-512 `sdpa_vector_2pass` at 8k: the kernel runs at 156 GB/s of unique K and V bytes whether they come from DRAM or the cache and whatever the GQA re-read (row 149k stage 1b), so the shortfall is in its own loop or its reduction; time each pass at 32, 64 and 128 blocks inside Lesto (the `/149k` harness with one primitive per buffer), then read the slower pass's code at its `file:line`

Modello e configurazione

the best

Guadagno atteso

if pass 1 reached 250 GB/s, about 70 us a global layer, 0.35 ms a step at 8k (+3% at 8k, about +1.5% over the sessions); sized from row 149k stage 1b

Da dove viene l'idea

row 149k

Esito

done 2026-11-13: pass 1 is 91% to 94% of the head-dim-512 call at 8k and reads at 129, 149, 171 GB/s at 32, 64, 128 blocks, so the shortfall is pass 1's parallelism; row 156's screen should add 256 blocks at 8k (`2026-11-12-mac-decode-profile-r147/README.md`)

Lezione

the head-dim-512 2-pass kernel's time at 8k is its first pass (91% to 94%), which runs faster at each doubling of blocks (129, 149, 171 GB/s at 32, 64, 128), so the global layers' shortfall is pass 1's parallelism, the lever row 156's block screen measures.

Adottato

no (a diagnostic; row 156 carries the lever)

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