Verba/Rapida

Esperimenti #105b

Why the raised byte limit adds 0.05 s to warm first tokens (row 105a), and a fix: for example the raised...

done

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

Cosa è stato provato

Why the raised byte limit adds 0.05 s to first (row 105a), and a fix: for example the raised limit only during (one-token steps) and the default during and the first step of a reused prefix, or an earlier first commit; then the pair again on

Modello e configurazione

the best

Guadagno atteso

reply time -1 to -2% (inferred: keep +2.3% decode without the loss)

Da dove viene l'idea

row 105a

Esito

done 2026-11-02: mechanism found by the command-buffer (LESTO `probe/105b` `5a44971`, 3 runs): the prefill eval cadence (a blocking eval every 4 layers for forwards of 32+ tokens, `src/transformer.zig:27665`) drains the 8 times per warm turn, and at 100000 MB each restart waits for a 51-op buffer; reproduced only when warm turns follow 200-token decodes (+0.027 s , row 105a +0.043 s). Fix: row 105c

Lezione

a warm turn's short prefill pays for the engine's memory-bounding eval cadence (a blocking eval every 4 layers, built for wide chunks), and a larger command buffer makes each drain's restart slower; the probe reproduced row 105a's loss only once warm turns followed real decodes, so a timing probe must copy the workload's turn shape, not just its sizes.

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