Verba/Rapida

Esperimenti #56

mlx-serve's forward meter and decode graph dump at 8k

done

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

Cosa è stato provato

mlx-serve's forward meter and graph dump at 8k

Modello e configurazione

the best

Guadagno atteso

op count per step (**measured**)

Da dove viene l'idea

row 55

Esito

done 2026-10-30: 15.84 ms per forward, 2,126 ops, about 590 kernels (205 custom, 173 matmuls, 60 KV writes, 46 norms); dispatch count is the lever

Lezione

on the M4 Pro a dependent tiny kernel costs 4 to 7 us whatever its size, and the patched best launches about 590 per decode step with the 97% busy: per-step overhead is dispatch count, so fusing ops (the KV writes, norms, gathers) is the remaining Mac lever below the weight bytes.

Adottato

no (diagnostics)

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