Verba/Rapida

Esperimenti #113

Cross-turn reuse of the previous reply: Gemma 4's template renders a past model turn without the empty...

closed

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

Cosa è stato provato

Cross-turn reuse of the previous reply: Gemma 4's template renders a past model turn without the empty thought channel its generation ended with (4 ), so every turn re-reads the whole previous reply (M3 chat: 830-token reply, about 3.6 s first token; NOT the M4's 0.50 s first token: race_sessions.py replays the production history, whose assistant turns are the recorded replies, never Gemma's own, so no engine can reuse them there). `tools/local_chat/make_reuse_model.py` renders it with the channel: on the M3, turns 2 and 3 reused 285 of 306 and 606 of 629 tokens, first token 0.13 to 0.14 s. A prompt change (4 tokens per past turn): timing pair on the 50 sessions replayed with self history (each later turn's assistant messages replaced by the engine's own replies of the same run, user messages as recorded) plus the anchored blind meaning read before adoption

Modello e configurazione

the best

Guadagno atteso

later-turn first token lower by about the previous reply's (size inferred)

Da dove viene l'idea

M3 chat test

Esito

closed 2026-10-31: smoke showed only 9 of 150 turns can reuse a previous reply (production history rewrites the system prompt, drops messages) and those overflow the 2 GB cache; kept as a local chat fix

Lezione

a cross-turn reuse fix needs a workload whose history is the model's own replies and unchanged system prompts; the 50 production sessions rewrite the system prompt and drop messages between turns, so only 9 of 150 turns could ever reuse a previous reply, and those overflow the 2 GB .

Adottato

no (not applicable to the 50 sessions; kept in the local chat tools).

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