Verba/Rapida

Esperimenti #90d

Fused 8-bit KV cache write: one kernel a layer that quantizes the new K and V and writes values, scales and...

done

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

Cosa è stato provato

Fused 8-bit write: one kernel a layer that quantizes the new K and V and writes values, scales and biases into the cache, in place of `affine_quantize` plus six copies each (14 dispatches a layer, 420 a step, row 90c's trace); a Lesto row branch, bit-identical to the current write; then 8-bit against dense on the 50 sessions, lossy (row 90c's read passed)

Modello e configurazione

the best with `--kv-quant 8`

Guadagno atteso

write path 3.9 ms at 1k and 5.3 at 8k a step today; 8-bit KV's bytes about 116 MB at 1k and 186 MB at 8k (arithmetic, row 90c)

Da dove viene l'idea

row 90c

Esito

done 2026-11-12: , -0.40% [-0.44, -0.37] 8-bit against 8-bit, 150 of 150 identical (`mac/90d/1`); the write is not 8-bit's cost on the sessions (61.5 against the dense best's 88.0 ); row 90e profiles it (`2026-11-07-mac-reopened-rows`)

Lezione

a fused 8-bit KV write that removes 13 of 14 write dispatches a layer is bit-identical (150 of 150) and changes decode by -0.4%: on the sessions, 8-bit KV's 30% decode cost against the dense best is not the cache write, so row 90c's split misattributed it.

Adottato

no (no gain on the pre-registered rule; neither arm is the best; row 90e profiles where the 8-bit step's time goes)

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