Experiments #153w
A verify-shaped k-row path in Lesto: a forward of 2 to 7 rows after the prompt runs the decode step widened...
done
What was tested
A verify-shaped k-row path in Lesto: a forward of 2 to 7 rows after the The text you send to the model before it starts answering. runs the The writing phase: the model produces the reply one token at a time. Read more step widened to k rows (no Prefill: the model reading the whole prompt before it can write the first token. Read more mask, the decode SDPA per row or a k-query vector kernel, the decode Mixture of experts: a model made of many specialist sub-networks where only a few run per token. Read more kernels over the rows' union, the decode layer tail) instead of the prompt path that `is_prefill = seq_len > 1` selects (row 153v: 23.84 ms at k = 2 against 11.98 at k = 1, bytes 1.17x). First step, timing-free of any The small guessing model used in speculative decoding. Read more: split the k = 2 forward on the prompt path by phase (mask build, The step where each token looks back at the earlier tokens to decide what matters. Read more, MoE, tail) with the row 13 profiler or labelled command buffers, and time one widened layer per phase, to size what a widened path could reach against row 153's byte ratios
Model and setup
the best
Expected gain
+19% decode at k = 4 (**estimate**, inferred: row 153's byte ratios for the widened verify plus the measured 4-bit MTP draft, 3.66 ms; with a 1 ms Lesto draft +71%); the phase split decides whether the widened path can reach the byte ratios
Where the idea came from
row 153v
Outcome
done 2026-11-19 00:36: A valid experiment that did not beat the best score by more than the noise., the drafter family parked by row 153h's pre-registered rule (the drafter with the verify shortlist 10.885 ms a The unit of text a model reads and writes: roughly a short word or a piece of a longer one. against the best's 10.596, unpaired; the shortlist costs more than the full head from 3 rows); reopens with a round 3% below the best (`2026-11-13-mac-lesto-drafter/README.md` § Result, row 153h). Earlier: step 6 done 2026-11-14 09:11 by row 153s (the fixed drafter is level with the best, 10.685 against 10.596 ms a token unpaired, rounding class 15 of 150 identical; next cut row 153h). Earlier: step 6c done 2026-11-14 08:44: the A frozen copy of files or a model state at a moment, used so a result can be reproduced. is the cause; with it the round after a rollback copies all 30 layers' K buffers (43.7 ms, 2.54 ms per 1k positions), with no snapshot when the rollback can Keeping a model loaded on a machine so it can answer requests over the network. the round (`MLX_SERVE_R153S`, LESTO f4684548) nothing moves (25.9 ms), replies identical to the rollback's 30 of 30, and the drafter reads 10.45 ms a token against 13.15 (10 sessions, The numbered revision of the quality-check procedure; results are only comparable within one version. on, unpaired; `2026-11-13-mac-lesto-drafter/README.md` § Row 153w step 6c result); the race is row 153s. Earlier: step 6b done 2026-11-14 06:58: the rollback keeps the state and removes the re-forward, but the next round pays about 2 ms per 1k positions more (the first K/V write after any rewind); diagnostic arms best 10.60, rollback 13.16, restore 13.94 ms a token, no pair; step 6c (K buffer moves per round and a no-snapshot arm, LESTO f2b7f164, `diag153u_job.sh`) next (`2026-11-13-mac-lesto-drafter/README.md` § Row 153w step 6b result). Earlier: runnable 2026-11-14: row 153d step 5 (02:52): the coaching sessions accept 0.75 to 0.81 a draft (t(3) 2.50 to 2.62, bound 1.12 to 1.17 at k = 3), but the served drafter decodes 13.97 ms a token against the best's 10.69 (unpaired), because a partial round (31%) restores the cache and re-runs the target (`src/generate.zig` 3527-3541, 15 to 26 ms extra); without it about 10.41, so about 1% left against `lesto_r67c` (inferred); step 6a (04:29): the round after a restore is not slower; the re-forward (the first write after the restore) costs a plain forward plus 2.1 to 2.5 ms per 1k positions; next step 6b, the rejected-round fix (keep the verify's K/V and hidden on a partial accept: truncate, all-position capture, as `nextDflash` does), measured on the same 50-session replay (engine-rows session); the verify head is row 153h