Verba/Rapida

Esperimenti #174f

The forward's own error exits leak MLX locals (a defect in our own engine, error path only, found by row...

done

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

Cosa è stato provato

The forward's own error exits leak MLX locals (a defect in our own engine, error path only, found by row 174's rounds): `rawEmbedding`'s reshape and scale outputs, the RMS norm result, the mask, `forwardStandardWith`'s hidden state `h` and `final_normed` are not freed when a later check fails (`src/transformer.zig` at tag best-2026-11-19-stk2: 7943, 7953, 7884, 12040, 9061, 9595); free them with errdefers and extend row 174's fault sweep over the ops inside `lazyForward` (the skip window `init_forward_from`/`init_forward_to` removed); lossless by construction, no pair; rides with the next stack

Modello e configurazione

the best

Guadagno atteso

none on speed: leaks removed on a failed request (**measured** by the test only)

Da dove viene l'idea

row 174 Codex round 2, 2026-11-19

Esito

done 2026-11-20: adopted via row 173es (ledger lesto_r173e, LESTO row/173es 79ae5615 carries stk3); test r174 passed in diag174fb, stk3's identity count proved the success path; earlier: built 2026-11-19: LESTO `row/174f` a030caad (about 130 error exits in the forward and its kernel wrappers free their arrays, 19 kernel config caches fixed; Codex 4 rounds, the last clean); test r174 passed in diag174fb (175 regular-path faults, 161 inside lazyForward, every one returned its error with active bytes unchanged; the dense trunk only, no fixture exists, `docs/experiments/2026-11-19-mac-r174-init-leaks/`); rides in stk3

Lezione

the forward's own error exits leaked their array locals the same way, and the init sweep reached them only because the regular path's lazyForward runs inside it (161 of its 175 faults); the MoE layers got the same fixes with no sweep, since Lesto has no small MoE fixture, so Codex is their only check.

Adottato

yes (via row 173es: ledger row lesto_r173e, LESTO row/173es 79ae5615 carries stk3, whose identity count proved the success path; coordinator 2026-11-20)

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