Verba/Rapida

Esperimenti #lrx2c

Compiler-sharing check before [mac lrx2]'s build: the M4's Metal compiler compiles six probe kernels (MLX's...

queued

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

Cosa è stato provato

Compiler-sharing check before [mac lrx2]'s build: the M4's Metal compiler compiles six kernels (MLX's 3- and 2-activation-row multi-row qmv on the plain and fast paths at 2 outputs a simdgroup, and one-row qmv) to AIR with MLX's kernel flags from LESTO row/lrx1 0c2ccac2; the verdict is a read of the 3-row plain kernel's K loop cited by AIR line (`shared` when each packed halfword is loaded, masked and converted once for all 3 rows, `per-row` when each row has its own, `partial`, `undetermined`), pointed by `lrx2c_air.py`'s traced counts and checked by ; lean (7 M4 minutes), no run; cost sheet 2026-12-02-lrx2-load-once (A1, A2)

Modello e configurazione

C14

Guadagno atteso

none (a compile-time check; adopts nothing)

Da dove viene l'idea

`2026-11-30-mac-lrx1-row-exact-rows/README.md` § Pre-registration: row [mac lrx2c]

Esito

queued 2026-12-02 (lanes-fix helper for config-board); launched by lanes-fix 01:24:35 (lock 01:25:26), LRX2C_DONE ok 01:25:58 M4 clock; done 2026-12-02 01:25: line met, per-row on both paths: the AIR's activation-row loop keeps each packed halfword's load, 4 masks and 4 converts inside it (3 copies for 3 rows); next the [mac lrx2] build (README § Result, row [mac lrx2c])

Lezione

in the AIR the M4's Metal compiler emits for MLX's multi-row qmv, the loop over activation rows keeps each packed halfword's load, masks and converts inside it, three copies for three rows, on both the plain and fast paths. So [mac lrx2]'s load-once kernel removes source-level work; whether the GPU backend already it is what that row's microbench measures.

Adottato

no (a compile-time check; nothing changes).

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