Verba/Rapida

Esperimenti #106

First-token time on the best (Federico 2026-10-31: attack total completion time): on the 50 sessions a...

done

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

Cosa è stato provato

First-token time on the best (Federico 2026-10-31: attack total completion time): on the 50 sessions a first turn waits about 7.5 s for its first (6 to 10k-token at about 830 ) against about 1.8 s of ; account for time by section (expert gather matmuls, , chunking at 2048, host work between chunks) with probes and a trace as rows 82 and 88p did for decode, then the fixes

Modello e configurazione

the best

Guadagno atteso

first-turn (diagnostic)

Da dove viene l'idea

row 104

Esito

done 2026-10-31 (`2026-10-31-mac-engine-audit/README.md` § , row 106, PATCHED): 8k first token 10.35 s = 4.70 s (45%), attention projections 2.60 s (25%), dense MLP 1.22 s (12%), full hd-512 SDPA 1.11 s (11%, all of the 842 to 702 tok/s fall across the prompt), sliding SDPA 0.82 s (8%), rest 0.18 s; MoE runs at about 4.8 TFLOP/s against 7.0 for the dense matmuls; prices rows 109 to 111

Lezione

an 8k first token of the best (10.35 s) is 45% MoE experts, 25% attention projections, 12% dense MLP, 11% full hd-512 SDPA and 8% sliding SDPA, with 2% left for everything else; the MoE path is the only large part running well below the M4's sustained dense matmul rate (4.8 against 7.0 TFLOP/s), so row 109 (up to 1.45 s) is worth about seven times rows 110 or 111 (about 0.2 s each).

Adottato

no (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