Verba/Rapida

Esperimenti #170c

Row 170's lever with a kernel that reads each stored-once row once (coordinator, 2026-11-19, tier 1...

done

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

Cosa è stato provato

Row 170's lever with a kernel that reads each stored-once row once (coordinator, 2026-11-19, tier 1, big-bet slot): row 170b measured the two-view layout through MLX's kernel at 1.116 times the stock shape at 8k (K's 640 and V's 512 columns read through separate pointers, 1,152 values a key); a pass 1 in which each lane loads its 20 of a key's 640 values once, scores all 640 and accumulates V from the same registers reads 640, 0.625 of the stock shape's 1,024. Step 1a: microbench against the port at (512, 512) on separate buffers, row 170b's variant check on the new arm, a fidelity guard against Lesto's call (201.8 us at 8k, the stk1b profile), kill above 0.85 (`2026-11-19-mac-r170-global-kv-once/README.md` § Row 170c)

Modello e configurazione

the best

Guadagno atteso

about +2% to +3.7% (up to 0.38 ms of the 1.01 ms global time at 8k; **estimate** from bytes)

Da dove viene l'idea

row 170b

Esito

done 2026-11-19: KILL, single / port 0.949 at 8k (fidelity 1.032 of Lesto's served call); diag170k: pass 1 is about three quarters fixed cost (149 us of 198.5 by a two-point fit), more blocks and register prefetch are slower (`2026-11-19-mac-r170-global-kv-once/README.md` § Result, row 170c)

Lezione

a kernel that reads 0.625 of the global call's KV bytes ran 0.949 of the port's time at 8k, because its loads ran at a lower rate (row 170d: 146 against 189 GB/s), not because the call has a large fixed cost; register prefetch made both kernels slower. Two kernels with different load rates cannot share one bytes-to-time fit.

Adottato

no (KILL on the pre-registered line; row 170's family closes on bytes)

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