Verba/Rapida

Experiments #105b

Why the raised byte limit adds 0.05 s to warm first tokens (row 105a), and a fix: for example the raised...

done

What was tested

Why the raised byte limit adds 0.05 s to first (row 105a), and a fix: for example the raised limit only during (one-token steps) and the default during and the first step of a reused prefix, or an earlier first commit; then the pair again on

Model and setup

the best

Expected gain

reply time -1 to -2% (inferred: keep +2.3% decode without the loss)

Where the idea came from

row 105a

Outcome

done 2026-11-02: mechanism found by the command-buffer (LESTO `probe/105b` `5a44971`, 3 runs): the prefill eval cadence (a blocking eval every 4 layers for forwards of 32+ tokens, `src/transformer.zig:27665`) drains the 8 times per warm turn, and at 100000 MB each restart waits for a 51-op buffer; reproduced only when warm turns follow 200-token decodes (+0.027 s , row 105a +0.043 s). Fix: row 105c

Lesson

a warm turn's short prefill pays for the engine's memory-bounding eval cadence (a blocking eval every 4 layers, built for wide chunks), and a larger command buffer makes each drain's restart slower; the probe reproduced row 105a's loss only once warm turns followed real decodes, so a timing probe must copy the workload's turn shape, not just its sizes.

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