Verba/Rapida

Esperimenti #103t

Why the GELU-table prefetch of MoE down rows costs 0.4 ms per step in the engine and nothing in the...

done

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

Cosa è stato provato

Why the GELU-table prefetch of down rows costs 0.4 ms per step in the engine and nothing in the harness: a Metal System Trace of the table kernel in the engine, and a harness variant that maps the expert banks from the safetensors as the engine does

Modello e configurazione

the best

Guadagno atteso

explains a 3.5% harness-to-engine gap (diagnostic)

Da dove viene l'idea

row 103

Esito

done 2026-10-31: MLX's 50 MB command-buffer billing; the harness bound the whole bank; raising MLX_MAX_MB_PER_BUFFER gave r102 about +5% at 1k (row 105)

Lezione

MLX commits a command buffer whenever the bytes first bound in it pass 50 MB on the M4 Pro, so a kernel that binds a large array moves the commits: a harness must bind exactly the engine's views, and the commit limit itself is a lever on the best (about +5% at 1k in one screen).

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