Experiments #149v
Per-kernel GPU time of the best's decode step by label, not position: the probe names each command buffer...
done
What was tested
Per-kernel A graphics card, used here as the chip that does the heavy arithmetic for a model. time of the best's The writing phase: the model produces the reply one token at a time. Read more step by label, not position: the The numbered revision of the quality-check procedure; results are only comparable within one version. 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
Model and setup
the best
Expected gain
ranks every kernel for the next engine rows; settles row 149's SUSPICIOUS attribution
Where the idea came from
row 149
Outcome
done 2026-11-12: by label, half the step is the 121 dense Storing the model's numbers with fewer bits to make it smaller and faster, at some risk to quality. Read more matvecs (5.2 ms), all of 8k's extra 0.83 ms is the 5 global layers' The step where each token looks back at the earlier tokens to decide what matters. Read more (235 us at 1k, 1,018 us at 8k, about 157 GB/s); rows 149g and 149q (`2026-11-12-mac-decode-profile-r147`)
Lesson
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 Mixture of experts: a model made of many specialist sub-networks where only a few run per token. Read more 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.
Adopted
no (a diagnostic)