Verba/Rapida

Experiments #153h

The 2-bit head shortlist (row 67c) for the k-row verify: row 67c serves one decode row only, so a k = 3...

done

What was tested

The 2-bit head shortlist (row 67c) for the k-row verify: row 67c serves one row only, so a k = 3 verify pays the full 4-bit head on all 3 rows; extend the shortlist and its top-64 rescore to 2 to 8 rows

Model and setup

the best

Expected gain

about +3% decode on a (**estimate**, inferred: 67c's 0.30 ms a row x 3 rows = 0.9 ms of a 25.5 ms k = 3 round, 2.51 a round); 0 without the drafter

Where the idea came from

row 153d step 5, row 67c

Outcome

done 2026-11-19 00:36: , line 10.28 not met: the drafter with the verify shortlist reads 10.885 ms a token against 10.685 without it and the best's 10.596 (unpaired, 149 of 150 replies unchanged); from 3 rows MLX's 2-bit product costs what the 4-bit one does (1.401 against 1.413 ms) and the argpartition is added (0.52 ms), so the shortlist costs 0.38 ms more a round; the drafter family is parked, reopening with a round 3% below the best (a Lesto-native draft, or a k-row 2-bit kernel that scales with bytes) (`2026-11-13-mac-lesto-drafter/README.md` ยง Result, row 153h). Earlier: runnable 2026-11-14 (row 153s: the fixed drafter is level with the best, 10.685 against 10.596 ms a token unpaired, so a cheaper verify head is the next cut that could put it ahead); blocked: by row 153w step 6 (worth it only once a served drafter beats the best); first step a timing-free size: time the full head and the shortlist on 3 rows in the forward microbench and count verify argmax with `MLX_SERVE_R67C_CHECK` on the replay

Lesson

row 67c's 2-bit shortlist only pays at one row: from 3 rows on MLX's 2-bit product costs what the 4-bit one does (1.40 against 1.41 ms on the Latin head) and the per-row argpartition is added, so the verify shortlist made the drafter 1.9% slower (10.885 against 10.685 ms a token, unpaired); a one-row saving is not a per-row saving.

Adopted

no (line not met; the drafter family is parked)

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