Verba/Rapida

Esperimenti #148

Grammar mask on the tuned decode step: a constrained request leaves `asyncEvalDecodeStep` (ops-only commit...

done

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

Cosa è stato provato

Grammar mask on the tuned step: a request leaves `asyncEvalDecodeStep` (ops-only commit, `generate.zig:5868` against `:6031`), the head tail, and builds a 262,144-token mask on the CPU each step (`:5833`); first split the 10.7% (step trace of the constrained path, mask-only `row/146` against the best, the mask build timed), then move the mask onto the pipelined step (`2026-11-11-mac-format-fixes/README.md`, row 146 result)

Modello e configurazione

the best

Guadagno atteso

recovers most of 10.7% on constrained requests (inferred, unsplit)

Da dove viene l'idea

none

Esito

done 2026-11-12: the constrained step costs 10.1% decode with the same , 9 points of it its full-row draw (no mask: -9.1%; no mask drawn from the head tail: +0.9%), the mask itself about 1 point; the Latin switch was a no-op (the head was already Latin); hands the fix to row 148f

Lezione

a JSON-constrained decode step in Lesto costs 10% because it builds and reduces the full 262,144-wide logits row while the greedy best reduces only the kept head rows on the ; drawn from the head tail, the same step decodes like the best, and the mask itself is about 1 point, so the fix is the grammar mask on the kept rows, not a faster mask build.

Adottato

no (a diagnostic; the pre-registered subject `lesto_p148ol` costs 10.1%, and the path it found is row 148f)

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