Experiments #68
What read rate the fused affine-4 expert kernels reach against the 259 GB/s ceiling at the best's shapes...
done
What was tested
What read rate the fused affine-4 expert kernels reach against the 259 GB/s ceiling at the best's shapes (Lily reports 90% of peak for its Mixture of experts: a model made of many specialist sub-networks where only a few run per token. Read more GEMV); patch only if well below
Model and setup
the best
Expected gain
sizes a kernel lever (diagnostic)
Where the idea came from
rows 49, 59, sweep 2026-10-30
Outcome
done 2026-10-30: kernels at 92% of 259 GB/s (experts 86%, dense MLP 80%); at most about 0.6 ms from kernel rewrites, not queued; lossless ceiling about 90 How many tokens the model writes each second once it has started. at 8k
Lesson
the best's weight kernels read at 92% of the M4 Pro's 259 GB/s when independent (experts 86%, dense MLP 80%), so kernel rewrites can An experiment that beat the best score by more than the measured noise. at most about 0.6 ms per step; benchmark kernels with every layer's own tensors in one eval, since one layer's tensors repeated read from cache at up to 19 times the ceiling.
Adopted
no (a diagnostic)