Esperimenti #159
The prompt's last token inside the last prefill chunk: every prompt ends with its own decode-shaped forward...
runnable
Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.
Cosa è stato provato
The The text you send to the model before it starts answering.'s last The unit of text a model reads and writes: roughly a short word or a piece of a longer one. inside the last Prefill: the model reading the whole prompt before it can write the first token. Approfondisci chunk: every prompt ends with its own decode-shaped forward (`src/generate.zig:1730`, `:1742-1745`, `:1946-1974`), about 10 ms (one step, row 149), where one more row in the chunk costs about 1.3 ms (the Cold means the server has never seen this prompt start; warm means part of it is already remembered from before. fit, row 155); with row 154's mechanism layer 29's tail runs on the last row only and the head reads that row; rounding-class (the first reply token's logits come from prefill kernels), so the Mac quality The unmodified model or build that every variant is compared against. before a race (`2026-11-13-mac-engine-audit/README.md` F4)
Modello e configurazione
the best
Guadagno atteso
about -8 to -9 ms a turn on all 150 turns, per-turn paired The middle value when results are sorted: half the requests were faster, half slower. reply -0.3% to -0.4% (inferred)
Da dove viene l'idea
engine audit 2026-11-13
Esito
runnable 2026-11-13: first check met the bar (warm first token -9.3 ms, 20 of 20 turns faster; 7 of 30 replies identical, rounding class); read passed (row 159r); pair done 2026-11-13 18:28 (`mac/159/1`): pre-registered reply -1.7% [-2.6, -0.8], line met, scorer `A valid experiment that did not beat the best score by more than the noise.` (rounding pair, 32 of 150 identical); length-adjusted -0.48%, warm first token -8.2 ms at level The writing phase: the model produces the reply one token at a time. Approfondisci; adoption on the coordinator (`2026-11-13-mac-engine-audit/README.md` § Result, row 159)
Lezione
folding the prompt's last token into the last prefill chunk, stacked on row 154, cuts the warm first token by 8.2 ms (95 of 100 turns) and cold by 0.36 s at level decode, -0.48% of How long the whole answer takes, from sending the request to its last word. length-adjusted; the raw per-turn median reads -1.7% only because rounding changes reply lengths, so a rounding-class reply pair is pre-registered on the length-adjusted reply (`score_race.py --metric reply_len`, added 2026-11-13).
Adottato
no (rounding-class reply line met on raw median, which the length change inflates 3x; length-adjusted -0.48% measured post hoc, so it decides nothing; row 159 stays a stack component)