Verba/Rapida

Esperimenti #47

Where the Mac best's 5 ms of non-byte step time goes (row 46): mlx-serve's own decode profiler...

done

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

Cosa è stato provato

Where the Mac best's 5 ms of non-byte step time goes (row 46): mlx-serve's own profiler (`MLX_SERVE_DECODE_PROFILE=1`, per-sub-block evals: embed, , MLP, router and experts, LM head) on the best at 1k and 8k; the serialized total against the pipelined 15 ms shows dispatch overhead against compute, and the split names the sub-block to optimize (first lines: router 9.2 ms serialized, as much as the experts' 8.5)

Modello e configurazione

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

Guadagno atteso

names the next Mac lever (**measured**, diagnostic)

Da dove viene l'idea

row 46

Esito

done 2026-10-30: serialized 38 ms per (pipelined 15): attention 11.4 to 12.4, MLP 24.7 (router 9.3, experts 8.5), head 1.8; the profiler's syncs dominate, so it ranks sub-blocks but cannot size the 5 ms; a code read of the pipelined loop follows

Lezione

mlx-serve's decode profiler serializes every sub-block (38 ms per token against 15 pipelined), so it can rank sub-blocks but cannot size per-step overhead; find overhead in the pipelined loop's syncs and dispatch.

Adottato

no (a diagnostic)

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