Verba/Rapida

Esperimenti #149v

Per-kernel GPU time of the best's decode step by label, not position: the probe names each command buffer...

done

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

Cosa è stato provato

Per-kernel time of the best's step by label, not position: the names each command buffer after the kernels it encodes (`MTLCommandBuffer` label), so the Metal trace carries the name; one primitive per buffer as row 149, plus an empty-kernel calibration of the per-buffer start cost; 1k and 8k

Modello e configurazione

the best

Guadagno atteso

ranks every kernel for the next engine rows; settles row 149's SUSPICIOUS attribution

Da dove viene l'idea

row 149

Esito

done 2026-11-12: by label, half the step is the 121 dense matvecs (5.2 ms), all of 8k's extra 0.83 ms is the 5 global layers' (235 us at 1k, 1,018 us at 8k, about 157 GB/s); rows 149g and 149q (`2026-11-12-mac-decode-profile-r147`)

Lezione

labelled command buffers attribute the best's decode step without guesswork: half of it is the 121 dense quantized matvecs (5.2 ms), a third the kernels, and all of 8k's extra 0.83 ms is the 5 global layers' attention (235 us at 1k, 1,018 us at 8k), which reads its KV at about 157 GB/s, well under the bandwidth ceiling.

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