Verba/Rapida

Experiments #146

Grammar mask for top-6's format: Lesto's JSON-schema token mask with the coach schema the production...

done

What was tested

Grammar mask for top-6's format: Lesto's JSON-schema mask with the coach schema the production request sends, by mask only (`MLX_SERVE_SCHEMA_PROMPT_OFF`, LESTO `row/146`); mask cost on the best first, then identity on the best, then top-6 with the mask at 36 of 36 roleplay JSON, the pair against the best and the anchored read (`2026-11-11-mac-format-fixes/README.md`), lossy

Model and setup

the best

Expected gain

about +6% (inferred: +7.7% less an unmeasured mask cost)

Where the idea came from

none

Outcome

done 2026-11-12: stopped at stage 1, the mask costs 10.7% decode on the best [-11.02, -10.60] (more than top-6 gains); row 148

Lesson

Lesto's JSON-schema mask costs 10.7% decode on the best, more than top-6 gains, because a request leaves the tuned decode step; a format fix by masking needs that step first (row 148), and a Gemma thinking-off request logs `deferring` even though its mask runs from token 0.

Adopted

no (the stage 1 line stopped the row; the mask's cost is larger than the gain it was meant to keep).

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