Verba/Rapida

Experiments #173kd

Move the end-of-turn `mlx_clear_cache` off the socket's wait (`finishSlot`, `src/scheduler.zig:4724`, which...

stacked

What was tested

Move the end-of-turn `mlx_clear_cache` off the socket's wait (`finishSlot`, `src/scheduler.zig:4724`, which `Scheduler.complete()` waits on, `:1391`): clear after `complete()` returns or on the next loop pass, keeping issue #110's per-turn clear (the footprint stays bounded). Measured 3.0 and 3.4 ms a request (row 173kc); lossless; a pair on the 50 sessions and on the general set, each claiming only its own gain; it must also hold on general text (Federico, 2026-11-20)

Model and setup

the request tail

Expected gain

up to about 3 ms a request (measured on the build)

Where the idea came from

row 173kc

Outcome

stacked 2026-11-20 into row 173kstk (coordinator: tiny lossless scored together; its own identity check is step 1 there, `2026-11-20-mac-r173kstk-request-tail-stack/README.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