Verba/Rapida

Esperimenti #155c

Split the warm prefill chunk forward's fixed 93.9 ms (row 155: the KV eval at `src/generate.zig:2011` on...

done

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

Cosa è stato provato

Split the chunk forward's fixed 93.9 ms (row 155: the KV eval at `src/generate.zig:2011` on /155 0abd5601 is the whole chunk forward, intercept 93.9 ms plus 1.31 ms a new over 100 warm turns): a Metal counter trace of one warm chunk at about 64, 300 and 1,000 new tokens on the best, weight bytes read and kernel time per layer kind ( experts, dense, ), to tell a weight-read floor (a ~300-token chunk routing to most experts) from per-dispatch overhead; a fix row is designed only from that split

Modello e configurazione

the warm prefill forward

Guadagno atteso

sizes up to about -2% per-turn reply if half the fixed part goes (inferred)

Da dove viene l'idea

row 155

Esito

done 2026-11-23 (read-rows): line not read as pre-registered (the plain chunk eval wall fit 213.0 ms, outside 60 to 130): chunks of 1,024 new tokens or more keep the MoE prefill's every-4-layer blocking eval inside the build (`src/transformer.zig:8566-8570` on ad92eae5), so their eval wall held only the forward's tail; read after the numbers, the 12 warm chunks under 1,024 fit about 70 ms of time, 4 ms host-exposed, MoE expert matmuls about 43 ms; row 155d tests that (`2026-11-21-mac-r155c-prefill-forward-split/README.md` § Result)

Lezione

a stamp pair that brackets a blocking eval measures the forward only when nothing inside the forward blocks; on Lesto's MoE prefill a chunk of 1,024 tokens or more evals every 4 layers inside the build, so a fit over chunk lengths must use the chunk's start to its eval (the span), or keep every point under 1,024. On warm chunks under 1,024 the fixed part read after the fact is about 70 ms of GPU time with 4 ms host-exposed, MoE expert matmuls the largest part (row 155d tests it).

Adottato

no (a diagnostic; its pre-registered line was not read; row 155d queued)

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