Experiments #149m
Pass 1 against pass 2 of the global layers' head-dim-512 `sdpa_vector_2pass` at 8k: the kernel runs at 156...
done
What was tested
Pass 1 against pass 2 of the global layers' head-dim-512 `sdpa_vector_2pass` at 8k: the kernel runs at 156 GB/s of unique K and V bytes whether they come from DRAM or the cache and whatever the GQA re-read (row 149k stage 1b), so the shortfall is in its own loop or its reduction; time each pass at 32, 64 and 128 blocks inside Lesto (the `The numbered revision of the quality-check procedure; results are only comparable within one version./149k` harness with one primitive per buffer), then read the slower pass's code at its `file:line`
Model and setup
the best
Expected gain
if pass 1 reached 250 GB/s, about 70 us a global layer, 0.35 ms a step at 8k (+3% at 8k, about +1.5% over the sessions); sized from row 149k stage 1b
Where the idea came from
row 149k
Outcome
done 2026-11-13: pass 1 is 91% to 94% of the head-dim-512 call at 8k and reads at 129, 149, 171 GB/s at 32, 64, 128 blocks, so the shortfall is pass 1's parallelism; row 156's screen should add 256 blocks at 8k (`2026-11-12-mac-decode-profile-r147/README.md`)
Lesson
the head-dim-512 2-pass kernel's time at 8k is its first pass (91% to 94%), which runs faster at each doubling of blocks (129, 149, 171 GB/s at 32, 64, 128), so the global layers' shortfall is pass 1's parallelism, the lever row 156's block screen measures.
Adopted
no (a diagnostic; row 156 carries the lever)