Verba/Rapida

Esperimenti #51

Gemma 4's experts on mlx-serve's fused affine-4 decode kernels (PATCHED: the SiLU-only epilogue gets a...

done

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

Cosa è stato provato

Gemma 4's experts on mlx-serve's fused affine-4 kernels (PATCHED: the SiLU-only epilogue gets a GELU-tanh table flag, `src/moe_affine4.zig`), two dispatches per layer instead of three `gather_qmm` plus the activation and the sum; unit test, then an alternating A/B screen on the best, then a race

Modello e configurazione

gemma-4-26b-a4b mixed 4/8 (the best)

Guadagno atteso

+3% to +6% decode (**code read**, row 49 kernel rates)

Da dove viene l'idea

rows 49, 50

Esito

done 2026-10-30: +3.5% decode [+3.4, +3.6] on the 50 sessions, API +0.0008; replication row 51r2 and the meaning read running

Lezione

mlx-serve's fused 4-bit kernels opened to Gemma 4's GELU-tanh give +3.5% decode on the 50 sessions at an API KL change of +0.0008: an engine's fast path closed to one activation is a cheap patch worth the build.

Adottato

no (meaning read pass; pending the flipped-order replication, row 51r2)

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