Verba/Rapida

Esperimenti #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

Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.

Cosa è stato provato

A verify-shaped k-row path in Lesto: a forward of 2 to 7 rows after the runs the step widened to k rows (no mask, the decode SDPA per row or a k-query vector kernel, the decode 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 : split the k = 2 forward on the prompt path by phase (mask build, , 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

Modello e configurazione

the best

Guadagno atteso

+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

Da dove viene l'idea

row 153v

Esito

done 2026-11-19 00:36: , the drafter family parked by row 153h's pre-registered rule (the drafter with the verify shortlist 10.885 ms a 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 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 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, 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

Vuoi vedere cosa hanno prodotto questi esperimenti? Lesto, il motore di inferenza per Gemma 4 sui Mac con Apple silicon, è su lestoengine.com

Creato da Federico Andrioli, @fedeandri su X Le misure di un laboratorio di ricerca, ricavate direttamente dai suoi file. Dati aggiornati al