Verba/Rapida

Esperimenti #167p

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

done

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

Cosa è stato provato

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)

Modello e configurazione

row 167

Guadagno atteso

diagnostic

Da dove viene l'idea

rows 165, 167

Esito

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)

Lezione

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.

Adottato

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

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