Verba/Rapida

Experiments #121e

Per-layer comparison of Lesto and mlx-lm on one prompt (row 121d's pre-registered next step): the best's...

done

What was tested

Per-layer comparison of Lesto and mlx-lm on one (row 121d's pre-registered next step): the best's residual stream after each of the 30 layers for one 8k English prompt and its first reply , Lesto against mlx-lm, with mlx-lm's own batched against token-by-token forward as the floor; Lesto has no dump flag, but its DFlash capture (`CaptureLayers`, lesto `src/transformer.zig:4561`, at a80e75e) already returns the residual after any listed layers for all positions, so a Lesto row branch can write them to a file; diagnostic, timing-free

Model and setup

the best, both engines

Expected gain

none by itself; names the layer where the engines part beyond rounding, or shows they part only by rounding

Where the idea came from

row 121d

Outcome

done 2026-11-12: steps part at rounding level (engine against floor 0.47 to 1.61 per layer, never 3 times); chunks pass 3 times the floor at sliding layer 3 (3.57) on 4 chunk ends, so row 121f (`2026-11-11-mac-dense-and-gate/README.md`)

Lesson

per layer at the last position, Lesto and mlx-lm decode steps differ by 0.5 to 1.6 times mlx-lm's own call-by-call against one-forward floor, so decode is rounding-level; the one place over 3 times the floor is the prefill chunk at sliding layer 3 (3.6 times), measured on only 4 chunk ends, which is where the engines' greedy draws could first part.

Adopted

no (diagnostic)

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