Verba/Rapida

Experiments #108a

mlx-serve's prefix cache sized for the workload: `--prefix-cache-mem` raised from 2 GB (one 9.5k-token...

done

What was tested

mlx-serve's sized for the workload: `--prefix-cache-mem` raised from 2 GB (one 9.5k-token session) to hold a block's scenarios, and the SSD tier (`--prefix-cache-disk`) tried; per turn primary ( first), judged on meaning since reuse changes chunking; memory checked on the M4 and against the M3's 36 GB

Model and setup

the best

Expected gain

first-turn reply time -20 to -35% (inferred: reuse 13.9% to about 38.5% of first-turn )

Where the idea came from

row 108

Outcome

done 2026-11-01: at 12 GB, paired reply -0.6% [-2.1, -0.3] under the 2.0% threshold; mean reply -13.6%, first turns -17.8%, first -15.5% (`mac/108a/1`; the paired median cannot see a lever that helps a third of turns); SSD tier not tried

Lesson

a prefix-cache lever helps the turns that repeat a cached and leaves the others untouched, so it shows in the mean reply (-13.6%) and first turns (-17.8%) but not in the paired median per turn (-0.6%); size a row on the statistic the scorer computes (the median of paired per-turn changes), not on the change of the median.

Adopted

no (under the 2.0% threshold on the pre-registered paired median; the real mean gain is filed in `docs/_inbox/2026-11-01-mac-reply-metric-subset-levers.md`)

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