Verba/Rapida

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 step loses 30% against dense on the sessions (61.5 against 88.0 , row 90d): one step of `lesto_r90d_kv8` and one of the dense best at about 6k of context, per kernel on the 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 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 copy; the write is 0.6 ms. A cache only pays where reads it packed in one pass.

Adopted

no (a diagnostic)

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built