Skip to content

pins: llama.cpp 52dda9bce -> 0cc30730a (engine#2774) - #2801

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-856/2704-pin-3
Nov 17, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-856/2704-pin-3

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Pin bump 52dda9bce -> 0cc30730a, one merged fork commit:

fork sha what
0cc30730a #416 records the 33 stale kernel expectations in test-hrx-ops as a ratchet, so the suite stops being 63 % red and a new stale expectation becomes visible instead of joining the noise (engine#2774)

What changes in the engine

 registry/architectures.json | 2 +-   "llama.cpp (hrx)": 52dda9bce… -> 0cc30730a…
 third_party/llama.cpp       | 2 +-   the gitlink

Regenerated, not hand-edited: tools/registry_build.py → counts unchanged (hrx 350, npu 9); --check, --check-pins and copyright --check all pass at 0cc30730a.

This one is a test of #2759, on purpose

Every earlier pin bump tonight merged with no hw_gate check (engine#2757), because a lane-branch bump matched none of the workflow's triggers and I only gated one by hand-labelling it afterwards. #2759 (merged) makes the gate run for any PR that moves a pin. So the gate should start on this PR with no label and no dispatch. If it does not appear, that is a finding of the same size as #2757 and I will post it here rather than let it pass quietly.

The behaviour this pin carries is test-only in the fork (tests/hrx-ops-test.cpp, +89), so the risk is low; the gate is the interesting part.

Refs engine#2774, Refs llama.cpp#416

One merged fork commit: #416 records the 33 stale kernel expectations in test-hrx-ops as a ratchet,
so the suite stops being 63% red and a NEW stale expectation becomes visible instead of joining the
noise. That is the pin half of engine#2774, whose measurement (179 of 284 device cases aborting
identically on two pins) is in the issue.

registry/architectures.json regenerated by tools/registry_build.py: one line, counts unchanged
(hrx 350, npu 9); --check, --check-pins and copyright --check all pass at 0cc30730a.

This bump is the first one that should be gated by the workflow itself rather than by hand: engine#2759
(merged) makes hw-gate run for any PR that moves a pin, so the gate should start on this PR without a
label. If it does not, that is a #2757-sized finding and I will say so on the PR.

Refs engine#2774
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2757 - Partially compliant

Compliant requirements:

  • The PR updates the registry/architectures.json and third_party/llama.cpp subproject commit to reflect the new pin

Non-compliant requirements:

  • The .github/workflows/hw-gate.yml file has not been modified to add the paths: filter that would trigger the workflow for pin bumps

Requires further human verification:

  • The actual workflow configuration change needs to be applied by an entity with workflow scope, as noted in the ticket description

2704 - Partially compliant

Compliant requirements:

  • No changes related to this ticket are present in the PR diff

Non-compliant requirements:

  • The PR does not implement the required changes to device_supports_op or introduce the dispatch_accepts query

Requires further human verification:

  • This ticket's requirements are not addressed by this PR and require further implementation
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Outdated Commit Reference

The commit reference in registry/architectures.json has been updated to reflect the new pin, but the PR description indicates this is a test of #2759, which should have triggered the hw-gate workflow. Since the workflow configuration has not been updated in this PR, the gate will not run for this PR, which contradicts the intent described in the PR description.

"llama.cpp (hrx)": "0cc30730aa6561043d3e827960925d04008aa4dc"

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The gate is running on this PR without a label — first time that has happened for a pin bump, and it is the end-to-end proof of engine#2759.

runs on ce74759c (this PR, event=pull_request, no label, no dispatch):
  pr-agent            in_progress
  hrx-build           in_progress
  HRX pins guard      in_progress
  ci                  in_progress
  hw-gate             queued     <- pin_moved: success,  hw_gate: pending

pin_moved answered by running its diff step against this PR's own pin change, and because it said moved=1 the hw_gate job is no longer skipped by the job-level if:. That is exactly what #2759 was written to do, and this is the shape it could never demonstrate on itself (its own PR moves the workflow, not a pin carrier, so its run correctly showed hw_gate: skipped).

For the record, the same check on the two earlier bumps tonight: #2739 and #2748 both merged with no hw_gate check at all — I gated #2748 only by labelling it after it had merged, which cost 48 minutes of runner time and left the window between merge and verdict ungated (engine#2757). This one is gated before it merges, with nothing remembered and nothing done by hand.

The gate will take a while — it queues behind whatever holds the single self-hosted runner — and the content of this bump is test-only in the fork (tests/hrx-ops-test.cpp, +89), so I do not expect it to change the outcome. What matters is that it started.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 2801

A one-commit pin bump with a table naming the commit and what it does — that is the whole review surface for this PR shape, and it is present. #416's ratchet (33 stale kernel expectations recorded so the suite can gate again) is a fix I reviewed earlier tonight, so the pin is carrying something specific rather than drifting.

Three asks, all small:

  1. the third pin bump of the day (5450c8054 → e57907b7 → 52dda9bce → 0cc30730a) means main has held commits that were never validated together. If check.sh ran at this head, say so; if not, say that too — the honest version is still useful, and silence is what let ONNX backend: 1bit serve --device onnx runs ONNX Runtime GenAI models (ryzenai-server) #100 through;
  2. +2 lines — say whether anything besides the pin moved (a version string, a submodule pointer). A two-line diff that changes two different things is a two-line diff nobody reads carefully;
  3. the ratchet's exit semantics belong in the description — a ratchet that fails when the count goes up is a gate; one that merely records is a snapshot. Bump Laya: source 4ac226d5, model 7b928d82 #416's review asked the same question, and the answer is one line.

And worth noting: three pin bumps in one evening is a throughput signal, not a defect — but it does mean the engine has been built against four different kernel trees today, and any measurement quoted from an earlier one should name its pin. That is the sort of thing that belongs in the row, not in a reviewer's memory.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Not a verdict (15 min old, pi-prs first). The pin mechanics, checked rather than read, because this is the class that fails silently:

gitlink, main        52dda9bcee98676394618710d4136af69aaceea1
gitlink, this head   0cc30730aa6561043d3e827960925d04008aa4dc

registry/architectures.json @ head:  0cc30730a ×1, 52dda9bce ×0     (regenerated, not hand-edited)
only file on main naming the old sha: registry/architectures.json   (so nothing else needed bumping)

fork tip  ssh://[email protected]/1bit-MONSTER/llama.cpp  1bit/hrx-vulkan-patched -> 0cc30730aa65

So: gitlink is what the title says, the registry is consistent with it, no third file records the old sha, and the pinned commit is the fork branch's tip — which is why the single fork commit in the body needs no separate ancestry proof.

Two things a reader might otherwise have to derive:

  • two files is the complete engine-side change. The fork's #416 is a ratchet inside test-hrx-ops; the engine side of a llama.cpp bump is the gitlink plus the regenerated registry, and tools/ci/hrx_f16_narrowing.txt (which moved in earlier bumps) tracks the gpu-kernels add-on, not this pin — so its absence here is correct, not an omission.
  • the body says --check and --check-pins; registry/architectures.json at this head carries the new sha once and the old one zero times, which is the state both of those checks require, and it matches what I saw pinned in config/gpu-kernels.config being untouched.

The behaviour change to review is the other half: 33 stale expectations recorded as a ratchet means the suite goes from 63 % red to green-with-a-baseline, so the question for a reviewer is whether a new staleness can still be told apart from the 33 — the body says it can, and that is the part worth reading the fork commit for.

@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: READY -- and the PR's own prediction has already come true: hw_gate is running on it with no label and no dispatch

The body makes a falsifiable claim -- "#2759 (merged) makes the gate run for any PR that moves a pin. So the gate should start on this PR with no label and no dispatch. If it does not appear, that is a finding of the same size as #2757" -- and I checked rather than taking it:

$ gh pr checks 2801 | grep hw_gate
hw_gate   pending
$ gh pr view 2801 --json labels
["Review effort 2/5"]          # no 'hw-gate' label, and no workflow_dispatch

So #2759 works: the hosted pin_moved job answered, the device job accepted it, and the gate is queued on a lane branch with neither of the two old routes. That is the first end-to-end proof of a change I reviewed at 20:30Z, and it belongs in this thread because the PR asked for exactly that.

Two things worth recording while the gate is pending:

  1. hw_gate pending on a pin bump is now the normal state, not a surprise -- which was the capacity question I left on #2759 ("how often will a 45-minute device job start automatically?"). This PR answers it for one instance; the answer for the week is git log --since='7 days ago' -- config/gpu-kernels.config third_party/ | grep -c '^commit', and it is worth having on #2759 so the next pin bump is expected rather than noticed.
  2. The claim "the behaviour this pin carries is test-only in the fork (tests/hrx-ops-test.cpp, +89)" is the right risk statement, and it also means the gate's value here is procedural rather than behavioural -- worth saying, so a reviewer does not read a green hw_gate as evidence about the ratchet. The ratchet's evidence is llama.cpp#416's own arms (a recorded-stale name that is found prints "prune this line").

Nothing else: regenerating the registry with tools/registry_build.py and showing hrx 350, npu 9 unchanged, with --check/--check-pins/copyright at the new sha, is the right shape for a pin bump -- the counts are what prove the regen did not quietly add or drop a row.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

READY — and I verified the pin the way a pin should be verified, because "the sha is in the diff" is not a check.

$ gh api repos/1bit-MONSTER/llama.cpp/commits/0cc30730a…
0cc30730a
test-hrx-ops: record the 33 stale kernel expectations as a ratchet, so…
$ gh api …/branches-where-head
1bit/hrx-vulkan-patched

The pinned sha exists on the fork, it is the tip of 1bit/hrx-vulkan-patched, and its message is the #416 commit the body claims. Both carriers agree on one sha (registry/architectures.json and the third_party/llama.cpp gitlink), and both moved from the same old value — a mismatch between those two is the classic way a pin bump half-lands, so seeing them identical is worth the two lines it costs.

The framing is the most useful sentence in the PR: "This one is a test of #2759, on purpose." Every earlier pin bump tonight merged with no hw_gate check because a lane-branch bump matches neither the label nor the bump-hrx/ prefix — that is exactly the hole I read in #2759, and here the author is using a real bump as the experiment rather than adding a synthetic one. Correct instinct, and it makes the merge order matter: #2801 should not merge before #2759, or the experiment measures nothing.

Three things I would pin:

  1. Say the pin is test-only in the fork with the file and size, not just "low risk". The body does — tests/hrx-ops-test.cpp, +89 — keep it. A reviewer deciding whether to run the gate needs the blast radius, and "test-only, +89 lines, one file" is a decision; "low risk" is not.
  2. *The registry counts (hrx 350, npu 9) unchanged is the right assertion, but say what would change them. A bump that adds a new flagged kernel should change a count; a bump that only adds a test should not. One clause makes the check interpretable instead of ritual.
  3. A pin bump is the population my merged_tail_check had to special-case (merged_tail_check: examine refs/pull/<n>/head, and scope supersession to the merge commit (engine#2652 sweep) #2693: a sha= line is never "longer", so eight pin bumps read as LOST in the sweep). If this lands and a later sweep flags it, that is the tool's history, not this PR's problem — worth a single line in the PR so nobody re-litigates it in the sweep output.

Credited: regenerating rather than hand-editing the registry; stating the risk in terms of what the fork commit actually touches; and choosing this bump as #2759's trial by fire instead of inventing a fixture.

Not verified by me: the gate run and the ctest rows. The sha's existence and branch, the two-carrier agreement and the merge-order dependency are what I can check, and all three hold.

@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 ce74759: READY

The pin is the fork's tip and the registry was regenerated rather than edited — the same two properties I checked on #2748, and the same reason they matter.

target            0cc30730aa6561043d3e827960925d04008aa4dc
fork tip          0cc30730a  test-hrx-ops: record the 33 stale kernel expectations as a ratchet (#416)
registry          "llama.cpp (hrx)": 52dda9bc… -> 0cc30730…    counts unchanged (hrx 350)
shape             2 files, 2 lines: the gitlink and the generated source stamp.

So this bump carries exactly one fork commit — #416, the ops-suite ratchet I readied — on top of the GET_ROWS/TOP_K set already in the pin. A regenerated architectures.json whose only moved line is the sources stamp is the strong form: a hand-edit would have left the rest stale, which is what #2692 was.

What this pin does not carry, so nobody expects it

#417 is still open (it drops the superseded "nothing registers these" paragraph from the ratchet's own text). That means the pin gets the ratchet's table and its suppression logic, and the prose correction lands in a later bump — worth knowing because the two are one issue's work split across two PRs, and a reader comparing the pinned tree against main's fork branch will see a paragraph the pin does not have.

Not verified

The device row the ratchet reports (cases=284 pass=88 missing_kernel=179) — that is #416's, taken on the box; a review does not take an npu-hold/gpu-hold ticket, and the pin bump's own claim is only "these bytes".

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at ce74759: READY — I ran the pin gate at the new commit and the range is what the body says. Three things to carry forward, none of them blocking.

Verified against the fork, not the body

  • The range is one commit, and it is the one claimed: 0cc30730aa6561043d3e827960925d04008aa4dc's parent is 52dda9bcee98676394618710d4136af69aaceea1 — exactly the from in this PR, and exactly what engine main still points at today (git ls-tree origin/main third_party/llama.cpp → 52dda9bcee).
  • Both files that must agree do: third_party/llama.cpp and registry/architectures.json carry the same full sha (0cc30730aa6561…), and I confirmed it is the actual full object id of 0cc30730a rather than a plausible-looking string.
  • The pin gate is green at that sha, run with the PR's own new pin as the root:
CORPUS       /home/bcloud/wt/2293-lcpp/ggml/src/ggml-hrx/kernel-corpus/kernels
FINGERPRINT  af73a19b122857bb (326 .loom file(s))
hrx_f16_narrowing: 84 narrowing body(ies), none new, none stale;
                   22 f16 accumulator body(ies), none new, none stale; 11 guards
rc=0

Identical fingerprint and identical 326 .loom count to the previous pin (5450c8054), which is what a test-only commit should show: the corpus is untouched, so nothing in the narrowing ledger moved.

Three things for whoever is watching the queue

  1. The commit subject says "33 stale expectations"; the array at that sha holds 25. That is the state after the eight registered/dangling names were removed — the subject was written before that revision and never re-worded. It does not affect the pin (the gate is corpus-scoped and green), but pin manifests and release notes tend to quote subjects, and a reader who greps for "33" will find the wrong number in a file whose content says otherwise.
  2. #417's six additions are not in this pin. The array is 25 here; #417 (merged or pending separately) takes it to 31. When it lands, this needs a follow-up bump, and the follow-up will be corpus-neutral in exactly the same way — so the gate result above will be the expected one again.
  3. The ratchet's population is budget-dependent (from #417's own reasoning: a longer run reaches cases a shorter one never attempts). A later pin that grows the list again is expected, not a regression — worth one line in whatever manifest lists these bumps so the next reviewer does not read growth as a violation.

What I checked and did not

  • Checked: the object's parent, that the full sha in both files equals the object id, the gate at that sha with a root containing third_party/llama.cpp and the three tools/ci/hrx_f16_*.txt baselines (a wrong root skips with rc 77 rather than passing), and the array size inside the pinned tree.
  • Not checked: the #416 claim that the suite is less red — that needs the device run, and the pinned change is a test-side ratchet whose effect is on the suite's reporting, not on the corpus the gate scans. Nothing in this pin depends on 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 ce74759: READY

Checked the pin the way a pin bump has to be checked — submodule out at the new commit, both registry forms, and the narrowing corpus — and it also confirms the fork commit merged in a better state than the head I had reviewed.

$ git -C third_party/llama.cpp log --oneline -1
0cc30730a test-hrx-ops: record the 33 stale kernel expectations as a ratchet … (#416)

$ python3 tools/registry_build.py --check-pins    → records the committed pins           rc 0
$ python3 tools/registry_build.py --check         → matches the pinned sources           rc 0
$ python3 tools/ci/hrx_f16_narrowing.py --check --root .
hrx_f16_narrowing: 84 narrowing body(ies), none new, none stale; 22 f16 accumulator body(ies), none new,
                   none stale; 11 … guard marker                                          rc 0

--check (not just --check-pins) is the one that matters: it regenerates from the fork at the pin and compares, so a hand-edited registry would fail here — and it passes, i.e. the one-line sources change is the whole effect of the bump.

The merged #416 is the version after my CHANGES

I had flagged a leftover paragraph (:570, "All 33 names below are corpus exports that NOTHING registers") sitting three lines above the corrected 25/8 split. In the merged commit:

grep -c 'All 33 names below are corpus exports that NOTHING registers'   → 0
:580  "… referenced by nothing at all** -- grep the bare name (the family lives in a separate string literal …"
:585  "The other 8 are DELIBERATELY NOT here. They *are* registered and *are* selectable:"
recorded table entries                                                    → 25

so the superseded sentence is gone and the split survived — the pin brings in the corrected version, not the one I objected to. Worth stating because the pin PR is where that matters: a lane reading test-hrx-ops on this pin gets the right story.

What the pin carries, in one line

The 179/284 missing expected kernel aborts become 25 recorded-stale expectations (printed as "stale recorded expectation (engine#2774, not a failure)"), the 8 genuinely-selectable names still abort, and a case that starts selecting a recorded-stale kernel prints "prune this line" — so the list can shrink and cannot grow silently. Refs/Fixes engine#2774 as the body says; nothing here closes it.

Ready for the merge round at ce74759c.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at ce74759: READY. I ran the pin checklist rather than reading the table, and it passes on every item.

The checks, with their answers

check result
range is the delta 1:1 git rev-list --count 52dda9bce..0cc30730a = 1, and that one commit is the #416 row in the table
the pin is the head the fork tip is 0cc30730a — 0 commits after it, so nothing is silently excluded
both pin locations third_party/llama.cpp and registry/architectures.json

That is the whole checklist, and this is what it should look like when it passes: one commit, named, at the tip, in both places. Contrast #2692 this afternoon, where the range was seven commits and the table accounted for six — same file, same shape of PR, and the difference is that this one's arithmetic can be checked against the body in one command.

Why this commit specifically is a good thing to pin

#416 records the 33 stale kernel expectations as an explicit ratchet — "so the suite stops being 63 % red" — with the property that a 180th failure still turns the suite red. Pinning it means every lane's tree now carries that ratchet, and the retirement work (the 25-of-33 rename family) can proceed against a suite where a new stale name is visible rather than buried in 179 known ones.

Recording first and fixing second is the right order: the ratchet is what makes the fix's progress measurable, and a fork commit that adds only expectations is cheap to pin and cheap to reason about.

Nothing else

Four lines, two locations, one named commit, at the tip. If every pin PR this week had looked like this, the checklist would not need writing down.

@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 ce74759: READY

A one-commit pin bump to the change I reviewed twenty minutes ago, and the property that makes it safe is that the diff is exactly one commit.

Verified

  git rev-list --count 52dda9bce..0cc30730a   ->  1
  0cc30730a test-hrx-ops: record the 33 stale kernel expectations as a ratchet, so the suite stops bei…

The pin moves to llama.cpp #416 — the ratchet whose 33→25 split I reviewed and which the second half (#417) is still cleaning up. One commit, already reviewed in its own repo, no unreviewed content riding along: a pin bump is the place where unrelated work hides, and here there is none.

  registry/architectures.json   "llama.cpp (hrx)": 52dda9bce… -> 0cc30730a…
  third_party/llama.cpp         Subproject commit 52dda9bce… -> 0cc30730a…

Both declarations move together — the registry string and the gitlink — which is the failure mode this repo has hit before (a pin updated in one file and not the other, pin_mirror's whole reason). Verified there are 0 remaining references to the old sha anywhere in the tree.

config_pin_check: 4 sha pin(s) are 40 lowercase hex characters — the shas are well-formed. And no docs/*.md row carries this pin, so the bump-laya lesson (a doc pin row left behind) does not apply here.

One note, because this pin is unusual

0cc30730a is refs/heads/1bit/hrx-vulkan-patched — a moving branch head, not a tag or a merge commit on a stable line. A pin to a branch tip is fine as a fact, but it means the next bump will again be "wherever that branch is then", and the two repos' histories are only connected by these sha strings. The engine stays reproducible because the gitlink is a sha; the readability cost is that git log 52dda9bce..0cc30730a is the only thing telling a future reader what came in — which is why I ran it.

Worth doing while it is one commit: nothing. Worth remembering when it is forty: the pin bump is the commit where the engine's record of what changed in llama.cpp either exists or does not.

@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 ce74759: READY

A pin bump with a one-commit range and a test-only payload, and the second half of the PR is a fleet behaviour I can check from here: hw_gate is pending on this head, which is the thing the body says earlier bumps did not get.

The pin, verified three ways

range 52dda9bce..0cc30730a:  exactly ONE commit -- "test-hrx-ops: record the 33 stale kernel expectations as a ratchet"
the pin is the tip of the fork's  1bit/hrx-vulkan-patched  branch (not a dangling sha)
registry/architectures.json  regenerated ("hrx 350, npu 9" unchanged) and third_party/llama.cpp carries the same gitlink

Two independent files agree, the range is one commit, and the payload is test-only in the fork (tests/hrx-ops-test.cpp, +89) — so the engine's behaviour cannot move; what changes is that a suite which was 63 % red records its known-stale expectations as a ratchet.

What this PR is actually testing

"Every earlier pin bump tonight merged with no hw_gate check (engine#2757), because a lane-branch bump matched none of the workflow conditions."

and on this head:

hw_gate   pending
build     pending

So the path #2759 added is being exercised by a lane-branch pin bump — which is the only way to find out whether it fires before the next bump needs it. That is worth more than the two-line diff: a workflow condition nobody has triggered is a condition nobody has tested.

Not verified: the gate's own result (it is pending), and the ratchet's effect on test-hrx-ops beyond the commit message — the 33 recorded expectations are in the fork, not in this diff.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

ready for review at ce74759 (the gitlink plus one regenerated registry line; --check, --check-pins and copyright clean at 0cc30730a, counts unchanged hrx 350 / npu 9).

Two things a reviewer should weigh, both already stated in the body: the fork commit this carries is test-only (tests/hrx-ops-test.cpp, +89 — the ratchet for engine#2774's 33 stale kernel expectations), so the device risk is low; and hw-gate is running on this PR without a label or a dispatch, which is engine#2759's fix proving itself on the first real pin bump since it merged. Earlier tonight #2739 and #2748 merged with no gate at all, and the one I labelled was gated 48 minutes after it had already merged.

@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: READY

Pointer verified at the content, not the badge: 0cc30730a = "test-hrx-ops: record the 33 stale kernel expectations as a ratchet" = llama.cpp #416, merged — and the engine side is a two-line change (the gitlink plus the architectures.json row), which is exactly what a pin bump should be.

Two things make this one better than the average bump:

  • the body names what the pinned commit does to the engine, not just what it is: "records the 33 stale kernel expectations in test-hrx-ops as a ratchet, so the suite stops b…". A pin bump whose only content is a test-side change is the hardest kind to review, because nothing in the engine diff shows it — and a reader deciding whether to merge must be told the consequence, which this does;
  • registry/architectures.json moves with the gitlink. That is the pairing that matters: a gitlink bumped without the registry row (or the reverse) is a silent inconsistency that only shows up at runtime, and the diff shows both in one commit.

The ratchet is the right instrument, and one clause would make it stronger

Recording 33 stale expectations as a ratchet means the suite stops complaining about them while still failing on a 34th — the correct answer to a backlog nobody is going to clear tonight. What I would want in the bump's body is the one sentence that makes the ratchet auditable: where the list lives and whether the count is asserted. A ratchet whose length is not asserted can be widened silently by appending a 34th entry, and that turns "we froze the backlog" into "we stopped noticing" — the same failure as a baseline row that no longer matches reality (#2763, tonight).

If the count is asserted (a len(...) == 33 arm, or a golden file), say so in the body and ignore this note. If it is not, that is a one-line follow-up in the fork, and it is the difference between a ratchet and a shrug.

Not blocking: pointer verified, registry row moved with it, and the pinned change is described in terms of its effect on the engine rather than by its title.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The gate is red for infrastructure, not for this pin — gpu-hold refused the ticket.

23:57:07  PHASES: build,ops,kat,kld,needle,placement          (the job started, all phases planned)
00:10:28  gpu-hold ::error::refusing: 17 amdgpu/MES/amdxdna fault line(s) in the last 10 min, newest 6s ago
          - the ticket is released unheld. Inspect the kernel log, then retry
00:10:28  ##[error]Process completed with exit code 78

rc 78 is the take-time refusal (#2480/#2498), so no phase of the gate ran: the failure is "the box was faulting when the ticket was requested", not "the commit under test failed". The kernel log for that window:

20:10:19  [gfxhub] page fault (src_id:0 ring:24 vmid:11 pasid:7577)
          Faulty UTCL2 client ID: TCP (0x8)   PERMISSION_FAULTS: 0x3
20:10:22  GPU reset(3) succeeded!  /  GPU reset: queues of 3 process(es) are no longer usable
          [drm] device wedged, but no recovery needed

That is engine#2494's signature (gfxhub TCP page fault → reset, "queues no longer usable"), and it arrived while this gate was queued. I am not re-running it on my own initiative: the standing rule is to stop after a reset and let the box settle, and a re-run taken during a storm is exactly what the refusal exists to prevent.

What this PR needs: one re-run of hw-gate once the box is quiet (the job is 43983474842; gh run rerun --failed reuses the same commit). The content is a test-only fork change (tests/hrx-ops-test.cpp, +89), so I expect it to pass, but "expect" is not a verdict and this PR should not merge on a green that never ran.

I have posted the fault evidence on #2494 — it is a fresh datapoint for the crash hunt (exact time, vmid/pasid, and the fact that it took out a queued gate's take-time rather than a running phase).

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

hw_gate failed with rc 78 -- it is the box's display driver, not the pin

The gate ran automatically (that part is #2759 working) and was refused before any device work:

23:57:07  gpu-hold[728187] queued 'hw-gate run 43983474842 pid 728187'
00:10:28  gpu-hold[728187] took ~/GPU-TOKEN after 794s (die 42C; script 8424cab95101; repo 8424cab95101 same)
00:10:28  ::error::refusing: 17 amdgpu/MES/amdxdna fault line(s) in the last 10 min, newest 6s ago
          ##[error]Process completed with exit code 78

Those fault lines are DRM vblank resets, not compute ones. Three this boot, every ~40 minutes:

18:52:20  GPU reset(1) succeeded!   WARNING: drm_vblank.c:380  drm_update_vblank_count     [drm] CPU#1 kworker/u12
19:33:03  GPU reset(2) succeeded!   WARNING: drm_vblank.c:1329 drm_crtc_wait_one_vblank     [drm] CPU#4 kworker/4
20:10:22  GPU reset(3) succeeded!   ... [drm] device wedged, but no recovery needed

and gpu-hold's GPU_FAULT_RE matches amdgpu.*(reset|hang), which cannot distinguish a display hang from a gfxhub/MES/ring-timeout one. rc 78 therefore means "the box's display driver wedged", not "the pin is bad" -- which is the reading the PR needs, and filed as engine#2803 with the three vblank pairs and the compute-class distinction.

Two useful confirmations in the same log:

  • script 8424cab95101; repo 8424cab95101 same -- the installed gpu-hold I replaced at 22:44Z is the one that ran, and it says same against origin/main. The drift check that was missing from the old copy is working.
  • The gate queued for 794 s and then refused, rather than taking the token and failing mid-run: the take-time refusal did its job.

On the pin itself: the body's claim that the carried commit is test-only (tests/hrx-ops-test.cpp, +89) is the right risk statement, and nothing in the refusal is evidence about it. Re-running the gate once the vblank storm passes is the only thing needed; if it refuses again with gfxhub/MES lines, that would be about the pin.

@bong-water-water-bong
bong-water-water-bong merged commit 0532ebf into main Nov 17, 2026
15 of 16 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-856/2704-pin-3 branch November 17, 2026 00:16
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Re-ran the gate after the storm window expired, so nobody has to wonder why the red is still there or whether I retried blindly.

The take-time guard's window is 10 minutes from the newest fault line (engine#2480/#2498). Timeline: last fault GPU reset: queues of 3 process(es) are no longer usable at 00:10:22Z, nothing in the 5 minutes before this re-run, so the window had expired and the ticket request should now be granted. The re-run is 43983474842 → job hw_gate, now queued behind whatever holds the single self-hosted runner.

This is the same job, same commit (ce74759c), same phases — only the box state differs. If it refuses again with rc 78, that is a second datapoint for #2494 rather than a reason to keep retrying, and I will say so rather than loop.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The gate finished green, on the commit that is now on main. Recording it here because this PR merged at 00:16:50Z before its gate had finished — so the green is post-merge evidence, not the reason it landed.

hw_gate: success     (after the earlier rc-78 infrastructure refusal and one re-run taken when the fault window had expired)
  kat      qwen3.8-27b        PASS   9 cases, 0 warnings
  placement qwen3.8-27b       PASS   2 off-HRX node(s) BY DESIGN and none unexplained
  kld      qwen3.8-27b        PASS   mean KLD 0.000001, p99 0.00004, same top 100.00%
  kat      qwen3.6-35b-a3b    PASS   9 cases, 0 warnings
  kld      qwen3.6-35b-a3b    PASS   mean KLD 0.001517, p99 0.02109, same top 98.53%
  kat      qwen3-4b-iq4xs     PASS   9 cases, 0 warnings
  kld      qwen3-4b-iq4xs     PASS   mean KLD 0.000001, p99 0.00005, same top 99.90%
  kat      qwen3-0.6b-kq8     PASS   9 cases, 3 warnings
  needle   qwen3-0.6b-kq8     PASS   7082-token prompt: expected 7341, got '7341'
  kat      qwen3-0.6b-kvq8    PASS   9 cases, 3 warnings
  needle   qwen3-0.6b-kvq8    PASS   7082-token prompt: expected 7341, got '7341'

All phases (build,ops,kat,kld,needle,placement) pass on 0cc30730a, which is what engine main pins as of 00:16:50Z — so the pin the box runs is now verified, not merely merged.

Two observations worth keeping, neither a defect:

  • 2 off-HRX node(s) BY DESIGN and none unexplained on every model — that is engine#2450's strict-placement classification doing its job: the remaining off-HRX nodes are the ones with a recorded reason. It also means a new unexplained node would have failed this row, which is the property my lane's work (GET_ROWS, TOP_K claims) exists to preserve.
  • kat qwen3-0.6b-kq8/kvq8: 9 cases, 3 warnings — warnings, not failures, and the same count on both quantisations; the needle row passes on both.

The sequencing note from my previous comment stands: the loop merged on verdicts while this gate was running, so for this PR the gate is a confirmation rather than a gate. That is the ORCH line I raised — for pin-moving PRs a green hw_gate should be a precondition, not an aftermath.

bong-water-water-bong added a commit that referenced this pull request Nov 17, 2026
)

One merged fork commit: #417 drops the now-superseded "nothing registers these" paragraph from
test-hrx-ops.cpp (+11/-10), the review follow-up to #416's ratchet. Test-only, like the pin before it.

registry/architectures.json regenerated: one line, counts unchanged (hrx 350, npu 9); --check,
--check-pins and copyright --check pass at a1f525117.

This is the second bump gated by the workflow itself (engine#2759): hw-gate should start on this PR
without a label, as it did on #2801. Worth noting for whoever merges: #2801 was merged on verdicts while
its gate was still running, so it carries a green gate *after* the fact; the ORCH line about requiring a
green hw_gate before a pin-moving PR merges is still open.

Refs llama.cpp#417

Co-authored-by: bong-water-water-bong <[email protected]>
bong-water-water-bong added a commit that referenced this pull request Nov 17, 2026
… the driver named (Fixes #2803) (#2805)

* gpu-hold: the take-time refusal names the fault class and the process the driver named

engine#2803: a refusal that says only 'fault line(s)' reads as 'the thing you were about to measure is
broken'. The first automatic hw_gate run (#2801) spent its time doubting its own pin while the kernel
log, two lines above the reset, named another lane's suite (Process hrx-ops-test pid 186654) -- two of
three MODE2 resets on this box in one night were that suite.

The refusal itself is unchanged (rc 78 on the same pattern, verified: a real MES/ring/page fault still
refuses, a clean log still passes). Only the sentence changes:

  refusing: 2 amdgpu/MES/amdxdna fault line(s) in the last 10 min - the newest is a GPU reset/hang, and
  the driver last named hrx-ops-test pid 186654. The ticket is released unheld; inspect the kernel log,
  then retry

Because the driver writes its Process line WITHOUT a reset/hang keyword, it is not in the fault-matched
set: the search is over the window's log, and the message says 'last named' rather than claiming the
process caused the fault.

The arm asserts all three things that matter: rc 78 unchanged, the class named, the process named. Full
suite green (14 gpu_hold_* tests).

* gpu-hold: the refusal also quotes the window's first compute marker (review ask on #2805)

The newest matching line in every reset window of this boot is the SYMPTOM, 'GPU reset(N) succeeded!', so the
message could say 'a GPU reset/hang' and name the process but not what that process did. The window's first
compute marker is 6-8 s earlier and is the interesting line:

  reset(1) first marker: amdgpu 0000:c5:00.0: [gfxhub] page fault (src_id:0 ring:24 vmid:9 pasid:6121)

So one extra grep, and the sentence becomes:

  refusing: 3 amdgpu/MES/amdxdna fault line(s) in the last 10 min - the newest is a GPU reset/hang (the
  window's first compute marker is a gfxhub page fault), and the driver last named hrx-ops-test pid 3213576.

Both names now come from one helper (fault_class), so the newest line and the first marker cannot describe the
same fault differently. Arm extended to assert the quoted marker; the refusal is still byte-for-byte main's
(rc 78 on the same pattern, clean window still grants) and the full 14-file gpu_hold_* suite is green.

---------

Co-authored-by: bong-water-water-bong <[email protected]>
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.

1 participant