Verba/Rapida

Experiments #130d

Keep a P core busy while turns are served, the lever row 130c's screen left (row 130's spinning process...

done

What was tested

Keep a P core busy while turns are , the lever row 130c's screen left (row 130's spinning process removed the first-token loss): a Lesto thread that spins while a request is active and for a short window after it, so the thread's core keeps its clock; screen with macmon and the step trace, then the pair

Model and setup

best-with-row-130

Expected gain

first up to 15 ms warm; decode +0 to +0.5% if the build returns to 0.72 ms (guess)

Where the idea came from

none

Outcome

done 2026-11-12: , reply -1.54% [-1.92, -1.25], decode +1.57%, 150 of 150 identical (`mac/130d/1`); replicated -1.41% [-1.68, -0.71] (`mac/130d/2`); adopted, provisional (cold first token +0.4% to +0.8%), row 130e

Lesson

on the M4 Pro the P cores clock down when Lesto's decode thread waits on the most of each step, and one Lesto thread spinning during turns and 500 ms after keeps them up: graph build drops from 1.59 to 0.66 ms a step, decode gains 1.6% and reply 1.5% with identical replies; a QoS class does not do it (row 130c).

Adopted

yes (provisional on the cold first token, row 130e): the new best `lesto_r130d`, 88.0 decode, reply 2.21 s (ledger, `--base-moved` since its is the best's tag under the name `lesto_r130ref`); Lesto `main` merges `row/130d` as v0.20.0, tag `best-2026-11-12-r130d` (`5fec022`), on lesto-dev only.

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