Verba/Rapida

Experiments #167p

Row 167's shortfall split (investigate-suspicious-results.md): row 165's normal and labelled split profile...

done

What was tested

Row 167's shortfall split (investigate-suspicious-results.md): row 165's normal and labelled split profile at 1k and 8k on LESTO row/167 77efa4df with /167 75185dd7 (`diag167p_job.sh`), its top-k part, and 64-wide head-tail kernels' times beside row 165's 131 us sort and 58 us argmax, and the normal-mode time per beside row 165's; says whether the gap is the new kernels' own time (a kernel row) or split mode overstating what a removal saves (a measurement lesson)

Model and setup

row 167

Expected gain

diagnostic

Where the idea came from

rows 165, 167

Outcome

done 2026-11-19: diagnostic; the select's first pass (80 threadgroups bitonic-sorting 2,048 scores each) costs 106 us and the merge 33, against the 131 us sort replaced; the argmax kept its saving (58 to 4.5 us); split and normal mode agree (-53, -54 us), so the gap is the new kernel's own time; fix row 167f (`2026-11-19-mac-r167-topk-select/README.md` ยง Result, row 167p)

Lesson

the fused top-64 select keeps its whole estimated saving on the argmax and loses it on the pick. Its first pass, a full bitonic sort of 2,048 scores per threadgroup for 64 survivors, costs 106 us, almost the merge sort it replaced. A select that does not sort the losers (a per-thread running top-k or a threshold pass) is the remaining lever, about 0.1 ms a step.

Adopted

no (a diagnostic; its fix is row 167f)

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