Verba/Rapida

Esperimenti #lrx1

Fix row for [mac lanes9f]'s cause (C9's flips are the decode lanes' rounding): decode lanes off, so one-row...

queued

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

Cosa è stato provato

Fix row for [mac lanes9f]'s cause (C9's flips are the lanes' rounding): decode lanes off, so one-row decode keeps MLX's qmv (C0's bits), and the row-exact verify's 3-row projections on MLX's row-exact multi-row qmv at 1, 2 or 4 results per simdgroup (LESTO row/lrx1 0c2ccac2, `MLX_LESTO_QMV_ROWS_RPS`); identity gate in the build test (Bf16Tally, a million outputs per shape and rps), then a dependent-chain microbench against C9's split-K verify in one clock state, joined and as parts; `keep` at 0.20 ms a verify or less, `fits` at 0.48 (C14 at C0 + 1 point), `thin` at 0.75 (C14 at C0), `over` above; full lane (the job compiles the test binary), about 15 M4 minutes; cost sheet 2026-11-30-lanes-row-exact (measure-first)

Modello e configurazione

C14

Guadagno atteso

none (a microbench; a pass queues C14's identity and speed row)

Da dove viene l'idea

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

Esito

queued 2026-11-30 (lanes-fix helper for config-board); launched by config-board 16:27:55, RLRX1_DONE ok 16:30:14 M4 clock; done 2026-11-30 16:30: over, the best row-exact candidate (rps 2, joined) +1.424 ms a verify over C9's lanes, so C14 as built lands about 2.4% below C0; 90.7% on the plain-qmv shapes; next [mac lrx2] (README § Result, row [mac lrx1])

Lezione

MLX's row-exact multi-row qmv does not reach the split-K lanes' 3-row speed: at its best (rps 2) it costs +1.42 ms a verify over C9's lanes, 90.7% of it on the plain-qmv shapes (K 2816 and 2112), and fewer outputs a simdgroup makes it slower (rps 1 +2.70 ms), so C14 needs a kernel that shares each lane's weight load and unpack across the 3 rows while keeping one-row qmv's operation sequence, not more threadgroups.

Adottato

no (C14's verify on this kernel lands below C0; nothing served 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