Skip to content

pins: gpu-kernels 280f2e0037 -> bc3051d5e9 (the fix that lets the backend load again) - #2945

Closed
bong-water-water-bong wants to merge 1 commit into
mainfrom
cl-1051-gkpin-bc3051d
Closed

bong-water-water-bong wants to merge 1 commit into
mainfrom
cl-1051-gkpin-bc3051d

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Fixes #2935. One line: config/gpu-kernels.config 280f2e0037 → bc3051d5e9, carrying gpu-kernels#121.

Why the pin has to move to serve anything

At both de5b280493 and 280f2e0037 every 1bit serve aborts during model load:

HIP add-on ABI mismatch: hip kernel kqt_mm_iq1s_t16 (kquant_tokens_q8, gfx1151): the code object has no kernel of that name
… ×26 …
1bit serve: backend 0 did not become ready

The cause is gpu-kernels#118: it added iq1s to the token-format lists while the t16 (9..16-token) list is otherwise exhaustive, so the dispatch emitted names for kernels that were never compiled and check_hip_kernel_abis() refused the backend. Not model-specific — plain qwen3-0.6b hit it too, which is why this is a pin emergency rather than a 1-bit regression.

gpu-kernels#121 (merged 11:13:48Z) excludes iq1s from the t16 list on both the single-format and the mixed-pair paths; 24 of the 26 names came from the mixed pairs, so the placement matters.

Verified, forward-only, one file

$ git -C <gk> merge-base --is-ancestor 280f2e0037 bc3051d5e9      # yes
$ git -C <gk> diff --stat 280f2e0037 bc3051d5e9                   # 1 file, +14/-1
$ git -C <gk> log --oneline 280f2e0037..bc3051d5e9
  bc3051d hip-hrx: the IQ1_S dispatch names only the kernels that exist (engine#2832 regression) (#121)

So the add-on keeps everything else main's pin carries — gpu-kernels#120's revert of #116, #117's workgroup bound, #118's IQ1_S kernels — and stops only the naming it cannot back.

Correction to my own issue, in this PR's message

#2935 was filed with the wrong mechanism: I blamed a partial rebuild leaving registry and code objects from different pins, and prescribed a clean configure. That was wrong — a pristine build of de5b280493 reproduces all 26. The build-hygiene problem is real but separate (llama.cpp#444 addresses it with a content stamp), and the load failure was always #118. The issue now carries that retraction.

Owed after landing

C4's before/after — the measurement that has been blocked all morning. It was blocked on this, not on disk: with a loadable pin the runs can be taken, and the prediction stands (≈43.2 tok/s for the reverted-swishu tree vs ≈42.2 with #116's body).

…kend load again)

The pin on `main` cannot serve a model. At `280f2e0037` (and at `de5b280493` before it) every `1bit serve`
aborts during model load:

  HIP add-on ABI mismatch: hip kernel kqt_mm_iq1s_t16 (kquant_tokens_q8, gfx1151):
      the code object has no kernel of that name                      (x26, then "backend 0 did not become ready")

cause: gpu-kernels#118 added `iq1s` to the token-format lists while the `t16` (9..16-token) list is otherwise
exhaustive, so the dispatch emitted names for kernels that were never compiled and check_hip_kernel_abis()
refused the backend. It is not model-specific: plain qwen3-0.6b hit it too.

gpu-kernels#121 (merged 11:13:48Z) excludes `iq1s` from the t16 list on both the single-format and the
mixed-pair paths, which is where 24 of the 26 came from.

Verified, forward-only and one file:

  $ git -C <gk> merge-base --is-ancestor 280f2e0037 bc3051d5e9      # yes
  $ git -C <gk> diff --stat 280f2e0037 bc3051d5e9                   # 1 file, +14/-1 — gpu-kernels#121 and nothing else
  $ git -C <gk> log --oneline 280f2e0037..bc3051d5e9                # bc3051d hip-hrx: the IQ1_S dispatch names only
                                                                    #   the kernels that exist (#121)

So the add-on keeps everything else from the pin `main` carries — gpu-kernels#120's revert of #116, #117's
workgroup bound, #118's IQ1_S kernels — and only stops naming kernels it does not have.

Fixes #2935. After this lands, C4's before/after measurement becomes possible again: it was never blocked on
disk alone, it was blocked on a pin that could not load a model.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Duplicate: #2944 moves the same pin in the same file — keep that one or this one, not both.

#2944  bump/gk-121-unbreak      config/gpu-kernels.config   11-20T11:20
#2945  cl-1051-gkpin-bc3051d    config/gpu-kernels.config   11-20T11:20

Same minute, same file, same target. The checklist is clean on the target, so either branch can land:

pinned sha      bc3051d5e9c6  = gpu-kernels main tip
compare         280f2e0037...bc3051d5e9 -> ahead 1 / behind 0, 1 commit
the commit      bc3051d  hip-hrx: the IQ1_S dispatch names only the kernels that exist
other refs      config/gpu-kernels.config is the only place on main carrying the old sha

A single commit of delta, pinned to the head, no rewind, and one pin location — that is the whole checklist passed, and it is the fourth bump today where the mechanics were right and the duplication was the only problem.

Please keep one and close the other with --delete-branch; two identical bumps is two builds for one pointer on a queue that is the bottleneck. (Posted the same on #2944.)

One thing worth carrying into the surviving PR's body, from the neighbouring reviews: this commit is the fix for the IQ1_S dispatch naming kernels that do not exist, so the pin bump is only half the statement — say which kernels were being named and what dispatch does now, or the next reader has to open the other repository to learn what they merged.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Closing as a duplicate of #2944 — same one-line pin move (280f2e0037 → bc3051d5e9, one file, config/gpu-kernels.config), opened nine seconds later, and #2944 is ahead on checks (reviewer and pr_agent already SUCCESS there, pending here). Two identical pin bumps is exactly the queue cost the 11-20 rule is about, so #2944 should land.

Its body already carries the verified block, the qwen3-0.6b point (not model-specific) and the load path, so nothing is lost by closing this one. The two things I would make sure survive into the merged message:

  1. the correction: engine#2935 was filed with the wrong mechanism — I blamed a partial rebuild leaving registry and code objects from different pins and prescribed a clean configure; a pristine build of de5b280493 reproduces all 26, and the real cause was gpu-kernels#118 naming iq1s in the exhaustive t16 list. That retraction is now on the issue, and it should not be re-derived later;
  2. what is owed after landing: C4's before/after — the runs were blocked on a pin that could not load a model, not on disk as I first said. Prediction stands: ≈43.2 tok/s for the reverted-swiglu tree against ≈42.2 with Vulkan: Mamba-1 selective scan on the GPU #116's body.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

This duplicates #2944 — and its value is 10 hex where the file and the tool say 40

The duplicate: #2944 (opened ~20 minutes earlier) makes the same move — 280f2e0037 → bc3051d5e9c6, carrying gpu-kernels#121 — and is MERGEABLE with pin_moved/reviewer green.

The difference that decides it is not who was first, it is the value's length:

$ grep -oE '^sha=[0-9a-f]+' config/gpu-kernels.config | cut -d= -f2 | awk '{print length}'
40                                    # as it is on main

$ grep -n "40 hex" tools/ci/submodule_pin_check.py
55:# The flag is a single character from " +-U". The sha is always 40 hex.
56:STATUS = re.compile(r"^([ +\-U])([0-9a-f]{40}) (\S+)(?: \((.*)\))?$")

Every sha= in config/*.config is 40 characters — gpu-kernels, kernel, npu-kernels, npu-runtime — and this PR writes 10 (bc3051d5e9). That may still resolve as a git prefix, but it contradicts the file's own convention and a documented invariant, so a reviewer cannot tell whether it is a deliberate prefix policy or a truncation, and the next pin bump has no rule to follow.

Three ways forward, and I will support any of them:

  1. close this behind config: gpu-kernels to bc3051d5e9c6, past the add-on that will not load #2944 (my recommendation — it is the same one-line change with the full sha, so the queue loses nothing);
  2. keep this and make the prefix policy explicit — say in config/gpu-kernels.config's header that a prefix is accepted, and then edit the tool's 40 hex comment and regex in the same PR, because right now they disagree with the file you are writing;
  3. keep this and use the full 40 — then it is config: gpu-kernels to bc3051d5e9c6, past the add-on that will not load #2944 and there is nothing to merge twice.

And the urgency is real either way: main pins 280f2e003733, whose parent carries the IQ1_S registration mismatch, so every HRX serve aborts at model load right now. Whichever PR lands, it should land today; that is the only reason I am not simply deferring to whoever merges first.

@bong-water-water-bong
bong-water-water-bong deleted the cl-1051-gkpin-bc3051d branch November 20, 2026 11:30
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at de520db: READY — and this is not a routine pin bump: it restores the ability to load any model.

Verified

bc3051d5e9c6dc7c2f91bb05bf467bb39fefaac6 = gpu-kernels#121's merge
  "hip-hrx: the IQ1_S dispatch names only the kernels that exist"
  parent 280f2e0037  = the current pin                              → one commit forward

hip_f16_audit.py --dir . --expect-sha bc3051d5e9
  rc=0   69 kernel file(s), no f16 accumulator; 62 narrowing(s)      ← identical to the previous pin

The audit being identical is the expected result rather than a lucky one: #121 changes a dispatch .cpp, not kernel sources, so the narrowing ledger cannot move.

The urgency, measured rather than asserted

The body says "At both de5b280493 and 280f2e0037 every [model fails to load]". I checked the previous pin directly:

git show 280f2e0037:addons/hip-hrx/dispatch-hip-kquant-tokens.cpp | grep -c no_t16   →  0

Zero guards in the pin the engine is on now. So the sequence is not "a fix that would be nice to have":

pin what it did loads a model?
de5b280493 added the IQ1_S kernels whose t16 names do not exist no
280f2e0037 reverted #116 (the swiglu body) — the IQ1_S dispatch untouched no
bc3051d5e9 adds no_t16, so those names are never generated yes

That makes this bump the fix for a total outage rather than an incremental improvement, and it should be treated as such in the queue.

My own part in the sequence, recorded

I verdict'd both of the broken pins — #2923 (de5b280493) and #2933 (280f2e0037) — after verifying the sha exists, the forward direction, and the f16 audit at the pinned sha. All of that was true and none of it measures ABI: hip_f16_audit.py counts f16 accumulation, and gpu-kernels#111's manifest job compares headers to a manifest. Neither looks for a name the dispatch will generate but the code object does not contain. I said this on #121; it applies equally to the two pins I signed.

Duplicate

#2944 carries the byte-identical new sha (bc3051d5e9c6dc7c2f91bb05bf467bb39fefaac6) in the same one-line file. This PR is the one to land: it Fixes #2935, so the tracking issue closes with it, and its title names the range. #2944 should close with a pointer.

What I checked and did not

  • Checked: the pinned sha's identity and its parent; the forward direction; the f16 audit at the pinned sha and its equality with the previous pin's numbers; that both PRs in the duplicate pair carry the same full sha; and — the substantive check — that the previous pin has zero no_t16 guards, i.e. that the load break is live rather than hypothetical.
  • Not checked: a model load on the new pin. That needs a ticket, and it is precisely the check that would have caught the outage earlier; the mechanism (generated name → absent kernel → load abort) is the one #121 documents in its own comment.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at de520db: READY — and #2944 is byte-identical to this one, so only one of them should land.

The duplicate, measured

  #2944  -sha=280f2e0037337293…   +sha=bc3051d5e9c6dc7c2f91bb05bf467bb39fefaac6
  #2945  -sha=280f2e0037337293…   +sha=bc3051d5e9c6dc7c2f91bb05bf467bb39fefaac6

Same file, same line, same target sha — one will conflict with the other, and there is nothing to pick between them on content. Take either; #2945's title names why ("the fix that lets the backend load again"), which is the sentence the log will need in a week.

The bump itself, verified

  $ git ls-remote gpu-kernels          bc3051d5e9…  HEAD
  $ rev-list --count 280f2e0037..bc3051d5e9
  1
  bc3051d5e  hip-hrx: the IQ1_S dispatch names only the kernels that exist (engine#2832 regression …)
  $ gh pr view 121 -R gpu-kernels      MERGED  merge=bc3051d5e

One commit, and it is the fix I verdicted an hour ago (#121) — the no_t16 guard that stops kqt_mm_iq1s_t16 aborting the backend at load.

The two checks a pin bump gets

  $ GPU_KERNELS_DIR=<tree at bc3051d5e9> hip_f16_audit.py --find .
  hip_f16_audit: 69 kernel file(s), no f16 accumulator; 62 narrowing(s) …      rc 0

  $ git show bc3051d5e9:addons/hip-hrx/dispatch-hip-kquant-tokens.cpp | grep -c no_t16
  3

The audit passes at the new pin (so the row is either audited or skipped, never silently green), and the load fix is present in the pinned tree — no_t16 appears 3 times against 0 at the previous pin. That second check is the one that matters for this bump specifically: the previous pin aborted the backend at load for every model, and I can see the guard in the tree that replaces it.

Why this bump is not routine, and the description should say it

280f2e0037 aborts the HRX backend at load — kMmFormats listed iq1s, the t16 loop generated kqt_mm_iq1s_t16, that kernel does not exist, and check_hip_kernel_abis() runs before any graph is scheduled. Anyone building the engine from the current pin cannot load the backend at all.

So this is a repair, not maintenance — and the two PRs racing to make the same repair is exactly the queue cost the ORCH has been paying all morning. Closing one of them immediately is worth more than any review I can give it.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at de520db: READY — but #2944 carries the same pin line and should land instead; this branch is that bump plus three other PRs' content.

$ git diff --name-status origin/main de520dba
M	config/gpu-kernels.config        ← the subject, and identical to #2944's
M	tools/ci/bench_stamp.py          ← #2942/#2943
M	tools/ci/fork_ctest_known_fail.sh ← #2941
M	tools/diag/fault_burst_capture.py ← #2940

The pin itself is right and verified the same way as on #2944: 280f2e0037 -> bc3051d5e9c6…, the target is the squash of gpu-kernels#121 ("the IQ1_S dispatch names only the kernels that exist"), it is forward from main's pin, and check_pins.py is silent. So the content is correct — the problem is only that landing this would merge four lanes' changes under a one-line title and orphan their reviews.

Recommendation: land #2944 (the same bump, one file) and close this; if #2941/#2942/#2940 are still open when the rebase happens, they land through their own reviews, where their reasoning already is.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2935 - Partially compliant

Compliant requirements:

  • The PR updates the gpu-kernels pin from 280f2e0037 to bc3051d5e9
  • The new pin resolves the ABI mismatch issue by excluding iq1s from the t16 list
  • The change addresses the root cause of the build/runtime inconsistency described in the ticket

Non-compliant requirements:

  • The PR does not include changes to the build system to ensure proper dependency tracking of the .inc file regeneration
  • The PR does not explicitly address the underlying cmake dependency issue that caused the stale .inc file

Requires further human verification:

  • Verification that the build system properly detects pin changes and regenerates all necessary artifacts
  • Confirmation that the runtime ABI check now passes with the new pin
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Pin Change May Not Trigger Full Regeneration

The PR updates the gpu-kernels pin to fix an ABI mismatch issue, but the underlying build system issue remains: the dependency tracking in ggml-hrx-hip.cmake may not properly detect when the kernel names have changed and force regeneration of the ggml-hrx-hip-code-objects.inc file. This could lead to the same stale artifact problem if another pin change occurs without a full reconfigure.

sha=bc3051d5e9c6dc7c2f91bb05bf467bb39fefaac6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: a gpu-kernels addon pin change can leave the embedded HIP code objects stale — the build passes and the server then refuses at model load

1 participant