Esperimenti #105c
No mid-loop prefill eval cadence for forwards whose transients are small (a warm turn's few-hundred-token...
done
Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.
Cosa è stato provato
No mid-loop Prefill: the model reading the whole prompt before it can write the first token. Approfondisci eval cadence for forwards whose transients are small (a Cold means the server has never seen this prompt start; warm means part of it is already remembered from before. turn's few-hundred-token prefill), in `forwardMoeWith` (`src/transformer.zig:27665`, `PREFILL_EVAL_MIN_SEQ` and `prefillEvalCadenceFor`); lossless (same graph, fewer eval points: identical replies by hash); then the pair at the default limit, then with `MLX_MAX_MB_PER_BUFFER=100000` (row 105a's +2.3% The writing phase: the model produces the reply one token at a time. Approfondisci without its warm loss)
Modello e configurazione
the best
Guadagno atteso
How long the whole answer takes, from sending the request to its last word. -1 to -3% (inferred: 0.026 to 0.038 s of host waits per warm turn at 50 MB, the 105a warm loss at 100000 MB)
Da dove viene l'idea
row 105b
Esito
done 2026-11-02: reply -1.1% [-1.4, -0.9], decode +0.3% [+0.2, +0.4] (`mac/105c/1`, A valid experiment that did not beat the best score by more than the noise. on decode), 150 of 150 identical, LESTO bd2ebd17; not adopted, kept to stack; the 100000 MB variant needs the Mixture of experts: a model made of many specialist sub-networks where only a few run per token. Approfondisci expansion bill first (+2.2 GB per 1000-token forward, check105c)
Lezione
removing a memory-bounding eval cadence from short forwards is lossless (150 of 150 replies) and costs no memory at MLX's default 50 MB command buffers, but at 100000 MB the same change keeps about 2.2 GB more alive per 1000-token forward, because a command buffer holds its inputs until it completes: an eval point is also a memory point, so a change that removes one is checked at every buffer limit it will run under.
Adottato
no (decode +0.3% under the 0.4% threshold; kept on Lesto `row/105c` to stack with the next lossless fixes)