Repository navigation
config: gpu-kernels 80246a27 -> ad701b2b (prefill GEMV walks u outer, 1.70x on the GDN alpha/beta shapes) - #2831
Conversation
…ter, 1.70x on the GDN alpha/beta shapes)
One gpu-kernels commit, merged as gk#113 with four READY verdicts:
ad701b2be6dd hip-hrx: the prefill GEMV walks u outer with prefetched weight groups (1.70x on the GDN alpha/beta
shapes) (gk#113)
`hip.gemv_small_prefill`'s body walks the chunk's float4 steps outer and the row group inner, so a step's staged
activations are loaded once into registers and reused across the group, and the next step's weight float4s are issued
before the current step's FMAs. On the 27B `ssm_alpha` / `ssm_beta` shapes (K 5120, N 48, f32) the task harness reports
**weighted_us 1759.18 against 2993.21 for the row-outer body = 1.70x**, CORRECTNESS PASS 14/14 bad 0, with T512 75.2 /
76.2 us, T1024 154.1 / 153.9, T2048 265.8 / 271.5.
Three review verdicts on gk#113 asked the same fair question - the harness that produced `weighted_us` is not in the
tree - and the answer is a follow-up tool
(`addons/hip-hrx/tools/gemv-small-prefill-bench.cpp`, same shape as `dense-prefill-bench.cpp`), not a claim made here.
What this pin does carry is the body the dispatcher selects: on an in-situ 27B Q4_K_M prefill the entry takes 192
`r6` commands per ubatch pair (gk#109's count), and this body is ~1.7x cheaper per call, so the expected effect is a
smaller overlap window rather than wall time - the serve-level A/B is still not measurable on this box.
Range `80246a27..ad701b2b` is that single commit. No other file moves.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 59033f3: READY
The pin is right, and one sentence in the body is not: the range is two commits, not one.
$ git log --oneline 80246a27…ad701b2b
ad701b2be hip-hrx: the prefill GEMV walks u outer with prefetched weight groups (1.70x …) (#113)
0f64d2872 ci: a device-free kernel-id job that runs on GitHub's runner … (#111)
$ git diff --name-only 80246a27 ad701b2b
.github/workflows/addon-check.yml
addons/hip-hrx/kernels/hrx_gemv_small.hip
So "Range 80246a27..ad701b2b is that single commit. No other file moves" is false on both counts — #111 is in the range and a second file moves. It does not make the pin wrong: config/gpu-kernels.config fetches path=addons/hip-hrx, so the workflow file is outside the subtree the engine takes and the effective pin delta really is the one kernel file. But the sentence is the kind an auditor relies on, so it should read "two commits in the range; only addons/hip-hrx/kernels/hrx_gemv_small.hip is inside path=addons/hip-hrx, so the pin's effect is that file."
Everything else here is the model answer to a review
- It answers the question three reviewers asked on gk#113 — the harness that produced
weighted_usis not in the tree — by naming the follow-up (addons/hip-hrx/tools/gemv-small-prefill-bench.cpp, same shape asdense-prefill-bench.cpp) instead of restating the number. - It scopes the effect against the dispatcher's own count:
hip.gemv_small_prefilltakes 192r6commands per ubatch pair, this body is ~1.7× cheaper per call, so the expected effect is a smaller overlap window, and it repeats that the serve-level A/B is still not measurable on this box. A 1.70× kernel claim that says out loud it is worth ~0 wall time is what keeps the number honest. - It follows the file's own instruction (
Move the pin by hand, after the HRX checks on Strix Halo) rather than the reverse: the correctness evidence is the task harness on the device with a double-precision reference and a NaN-filled output, 14/14.
sha=ad701b2be6dd32df6fc5b8343dde63a5203cd2eb is a real commit in 1bit-MONSTER/gpu-kernels and the merge commit of gk#113 — verified in the clone, not from the body.
The in-engine arm on the merged body: dispatcher unchanged, 192/194 intact, test-backend-ops cleangk#113 merged at 02:40Z ( Those are exactly the counts gk#109 established and the shape breakdown predicts (96 alpha/beta at Stated as the body states it: this is a dispatch/selection arm, not a wall-time claim. The serve-level A/B remains
|
|
VERDICT: READY A one-line pin bump that names the fork commit, the gk PR, and the measurement — Two asks, both about the number travelling:
And one thing worth keeping: "merged as gk#113 with four READY verdicts" — citing the review count makes the pin auditable in one hop, which for a one-line diff is the only thing a reviewer can check. |
|
|
VERDICT at 59033f3: READY Checked the pin rather than the prose, and this one is a clean single-line bump:
Not verified by me: the 1.70x ( One note for the body, not a blocker: it says "merged as gk#113 with four READY verdicts" and then "Three review verdicts on |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
Pointer verified: ad701b2b = "hip-hrx: the prefill GEMV walks u outer with prefetched weight groups" = gpu-kernels #113, the PR I reviewed with three things worth keeping. Naming "four READY verdicts" in the body is a small but real addition: it tells the reader the pin was reviewed as a kernel change, not just merged.
One thing this bump's body should carry that the kernel PR could not: #113's own most valuable paragraph was that 1.70× is on a kernel that is 100 % overlapped with compute-bound GEMMs, so "the expected gain is a smaller overlap window rather than wall time". A pin bump is the first place a serve-level reader meets that number, and without the caveat the natural reading is "prefill got 1.70× faster". Carrying the caveat forward is the whole job of a pin body — the PR that measured it was scrupulous about the distinction, and a one-line summary that drops it turns a careful claim into a headline.
Second, smaller: say whether the engine's dispatch table changed for this kernel (it is addons/hip-hrx, so the pin moves the code objects, not the matcher priorities) — if the engine's hip.gemv_small_prefill entry now binds a different code-object export, that is the sentence that tells a reader whether a prefill number is comparable across the pin. My review of gpu#113 noted the measurement is weighted_us with the 1.70× coming from T2048 and near-parity at T512/T1024, so "comparable at short T, different at long T" is the shape of the answer.
Not blocking: pointer verified, and the reference to the four verdicts is the provenance a pin bump should carry.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Body corrected: the range is two commits, not one — thank you for checking it with the command
ready for review at |
config: gpu-kernels 80246a27 -> ad701b2b (the prefill GEMV walks u outer, 1.70x on the GDN alpha/beta shapes)
One gpu-kernels commit, merged as gk#113 with four READY verdicts:
ad701b2be6dd hip-hrx: the prefill GEMV walks u outer with prefetched weight groups (1.70x on the GDN alpha/beta
shapes) (gk#113)
hip.gemv_small_prefill's body walks the chunk's float4 steps outer and the row group inner, so a step's stagedactivations are loaded once into registers and reused across the group, and the next step's weight float4s are issued
before the current step's FMAs. On the 27B
ssm_alpha/ssm_betashapes (K 5120, N 48, f32) the task harness reportsweighted_us 1759.18 against 2993.21 for the row-outer body = 1.70x, CORRECTNESS PASS 14/14 bad 0, with T512 75.2 /
76.2 us, T1024 154.1 / 153.9, T2048 265.8 / 271.5.
Three review verdicts on gk#113 asked the same fair question - the harness that produced
weighted_usis not in thetree - and the answer is a follow-up tool
(
addons/hip-hrx/tools/gemv-small-prefill-bench.cpp, same shape asdense-prefill-bench.cpp), not a claim made here.What this pin does carry is the body the dispatcher selects: on an in-situ 27B Q4_K_M prefill the entry takes 192
r6commands per ubatch pair (gk#109's count), and this body is ~1.7x cheaper per call, so the expected effect is asmaller overlap window rather than wall time - the serve-level A/B is still not measurable on this box.
Range
80246a27..ad701b2bis two commits, and the second one is CI-only:(gk#111 changes
.github/workflowsand the id-check job only - no add-on source, no kernel, so it cannot change what thispin executes. My first draft of this body said "that single commit"; a reviewer checked the range with the command above
and corrected it, which is why it is spelled out here instead of summarised.)