Experiments #90e
Where an 8-bit KV decode step loses 30% against dense on the sessions (61.5 against 88.0 tok/s, row 90d)...
done
What was tested
Where an 8-bit KV The writing phase: the model produces the reply one token at a time. Read more step loses 30% against dense on the sessions (61.5 against 88.0 How many tokens the model writes each second once it has started., row 90d): one step of `lesto_r90d_kv8` and one of the dense best at about 6k The unit of text a model reads and writes: roughly a short word or a piece of a longer one. of context, per kernel on the A graphics card, used here as the chip that does the heavy arithmetic for a model. timeline (Metal trace), timing-free diagnostic before any further 8-bit kernel
Model and setup
the best with `--kv-quant 8`
Expected gain
2.5 GB of peak memory at the sessions (19.05 against 21.52 GB), about 30% decode to recover
Where the idea came from
row 90d
Outcome
done 2026-11-12: the dense view dequantizes the whole cache every step, 2.2 ms (1k) to 3.4 ms (8k) of the 8-bit step's extra 3.5 to 5.1 ms; the write is 0.6 ms; row 90c's split was the wrong way round; rows 90f and 90g (`2026-11-07-mac-reopened-rows`)
Lesson
on Lesto an 8-bit The memory where the model keeps what it has already read, so it does not recompute it for every new token. Read more costs 3.5 ms (1k) to 5.1 ms (8k) a decode step because the dense view dequantizes the whole cache every step (2.2 to 3.4 ms by label) and SDPA then reads the A 16-bit number format for model weights; the full-quality baseline here. copy; the write is 0.6 ms. A Storing the model's numbers with fewer bits to make it smaller and faster, at some risk to quality. Read more cache only pays where The step where each token looks back at the earlier tokens to decide what matters. Read more reads it packed in one pass.
Adopted
no (a diagnostic)