Verba/Rapida

Esperimenti #62

Gemma 4's dense MLP in three extra slots of the fused affine-4 expert kernels (PATCHED, bit-exact replay of...

done

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

Cosa è stato provato

Gemma 4's dense MLP in three extra slots of the fused affine-4 expert kernels (PATCHED, bit-exact replay of MLX's one-row qmv): 60 fewer serialized matmul reads

Modello e configurazione

the best (row 61)

Guadagno atteso

+1% to +2% (**inferred** from row 61)

Da dove viene l'idea

row 61

Esito

done 2026-10-30: bit-exact (1,200 layers) but forward +11.5% slower (15.62 to 17.42 ms): the dense branch already overlapped the expert chain; closed without a race (`docs/experiments/2026-10-30-mac-dispatch-fusion/`)

Lezione

fusing an independent branch into a serialized chain loses the overlap MLX already gets: on the Mac, fuse only reads that sit in series, never a branch that runs beside the critical path.

Adottato

no (11.5% slower per forward; closed without a race)

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