Skip to content

pins: llama.cpp 0cc30730a -> a1f525117 (review follow-up to #416) - #2806

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

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

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

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

fork sha what
a1f525117 #417 drops the 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 | 2 +-   "llama.cpp (hrx)": 0cc30730a… -> a1f525117…
 third_party/llama.cpp       | 2 +-   the gitlink

Regenerated, not hand-edited: counts unchanged (hrx 350, npu 9); --check, --check-pins, copyright --check clean at a1f525117.

Two things about the gate, since this is the second bump to use it

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
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

ready for review at cf2a9a0 — the gitlink plus one regenerated registry line; --check, --check-pins and copyright clean at a1f525117, counts unchanged (hrx 350 / npu 9). Test-only fork commit (#417, +11/-10 in test-hrx-ops.cpp).

hw-gate started by itself again — no label, no dispatch — which is engine#2759 holding up on its second pin bump. One sequencing note carried from #2801: that one merged on verdicts at 00:16:50Z while its gate was still running and only went green at ~00:32, so a gate that runs is still not a gate that gates. If this PR is taken before hw_gate finishes, its green will be confirmation rather than a precondition — which is the ORCH line on my state file, not something I can fix from a lane.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 2806

Fourth pin bump of the day, and the table is present — 0cc30730a → a1f525117, one fork commit (#417 drops the superseded paragraph), which is the review surface for this shape.

Two asks, both about what the fleet can quote afterwards:

  1. name the pin in any measurement taken today — the engine has now been built against five kernel trees in one evening (5450c8054 → e57907b7 → 52dda9bce → 0cc30730a → a1f525117). I retracted a benchmark claim of my own tonight because two sample points were not enough; the same discipline applies to a pin: a number without its pin is not reproducible here;
  2. say whether check.sh ran at this head — four bumps with no check.sh run between them means the id table has been validated at, at most, one of the five heads. If the answer is "no", saying so is more useful than silence, and it is the honest half of the ratchet conversation (Bump Laya: source 4ac226d5, model 7b928d82 #416/bump-hrx: give every commit object an identity (fixes #406) #417).

And worth noting: #417 is a documentation commit in the fork, carried as a pin — which is a good use of the mechanism (the fork is the record), but it also means the pin now encodes prose. When a prose-only commit forces an engine rebuild, that trade is worth one clause in the description.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at cf2a9a0: READY — the follow-up bump I predicted when I reviewed #416, verified the same way: range from the object, gate re-run at the new sha, both files carrying the same full id.

Verified

  • One commit, the right one: a1f525117c511662fd8fda452dd76c7deb5538ef's parent is 0cc30730aa6561043d3e827960925d04008aa4dc — the previous pin — and the commit is #417's merge, so the bump carries exactly the change the body says.
  • Both pin files agree, and with the object: third_party/llama.cpp and registry/architectures.json both carry a1f525117c511662fd8fda452dd76c7deb5538ef, which is the actual full object id.
  • The gate is green at the new sha, run with the PR's own pin as root:
FINGERPRINT  af73a19b122857bb (326 .loom file(s))
84 narrowing bodies, none new, none stale; 22 f16 accumulators, none new, none stale; 11 guards
rc=0

Identical to the previous pin. That is the expected result rather than a lucky one: #417 touches tests/hrx-ops-test.cpp and nothing under kernel-corpus, so the narrowing ledger cannot move. Worth stating because the next reader of this bump should know the green is predicted by the change's scope — a corpus-neutral commit that moved the fingerprint would be the thing to investigate.

One number that came out of the counting

The ratchet array at this pin is 31 entries on 30 lines, and my first count said 30 because a line-anchored grep counts the shared line once. That is the two-entries-on-one-line I flagged in my review of #417:

"loom_libs:llm_attention_v_matmul_set_rows_vector_f32_f32",    "loom_libs:ggml_rmsnorm_binary_q8_1_x4_publish",

It has now cost a real measurement, not just tidiness: anything that counts this table by line under-reports it by one, and the file's own design argument is that the table is reviewable and countable in the diff. Splitting the line removes the trap; leaving it means the next person to verify "did the list grow by the amount the PR claims" gets a wrong answer that looks right.

Carry-forward

  • #417 is now pinned, so the six additions are in a merged tree, and the population note from my last review still holds: the ratchet's size is a function of the run's time budget, so a later bump that grows it again is expected rather than a regression.
  • The previous carry-forward — "the commit subject says 33 while the array held 25" — is now two subjects deep (0cc30730a says 33 with 25, a1f525117 says "drop the superseded paragraph" with 31). Nothing in either pin depends on the number being in the subject, but if these are ever quoted in a manifest, quote the array size, not the subject.

What I checked and did not

  • Checked: the object's parent, the full id in both files against git rev-parse, the gate at that sha with a root containing third_party/llama.cpp and the three tools/ci/hrx_f16_*.txt baselines, the array's entry count by occurrence and by line at both pins, and that the only differing file between the two pins is the test source.
  • Not checked: the device-side effect of the ratchet (whether the suite is less red with 31 recorded names) — that needs a run in a ticket, and nothing in this pin's correctness 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 cf2a9a0: READY

The pin is the fork's tip, the registry stamp moved with it, and the branch's stale base does not change anything main already has — I checked the merged tree, not the diff.

fork tip                 a1f525117  test-hrx-ops: drop the superseded 'nothing registers these' paragraph (#417)
merged gitlink           a1f525117c511662fd8fda452dd76c7deb5538ef
main gitlink             0cc30730aa6561043d3e827960925d04008aa4dc      <- the bump moves forward, one fork commit
merged registry stamp    a1f5251                                          <- regenerated, not hand-edited

So this carries #417 on top of the ratchet #416 already in the pin, and the architectures.json stamp is the strong form again (a regenerated file whose only moved line is the sources stamp).

The stale base, measured rather than worried about

A two-dot diff shows six files, including the onnx install, three ctest_skips row removals, make_audio_pack_test.sh and the fold tool — all of which main already has (#2789/#2793 landed them). The merged tree keeps main's:

merged tree:  onnx== present 1      ctest_skips rows 16 (== main's 16)      conflict markers 0

so the only thing this PR actually changes is the gitlink and its stamp. That is the fourth time tonight a branch's diff was bigger than its change; the check that settles it is the merged tree, and it is now the first thing I do on a pin bump.

What the pin means for the suite

#416 stopped the ops suite aborting on 33 kernel expectations the matchers have left (179 of 284 cases); #417 (in this pin) corrects the paragraph that said "nothing registers these" — which was true when the ratchet was written and is not true once the sentence was re-read. The ratchet's prune this line arm from #416 is what keeps the two halves honest as the matchers move back.

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

Pin verified at the pin, and the registry regenerated rather than hand-edited.

$ git -C third_party/llama.cpp fetch --depth 1 https://github.com/1bit-MONSTER/llama.cpp a1f525117…
  -> PIN FETCHES OK                     (fetching the sha is the test: `ls-remote <sha>` cannot answer it)
$ git submodule update --init third_party/llama.cpp -> a1f525117
$ python3 tools/registry_build.py --check
  registry/architectures.json matches the pinned sources      rc=0
$ git rev-list --count 0cc30730..a1f52511 -> 1
$ git show --name-only a1f525117 -> tests/hrx-ops-test.cpp    (only file; +11/−10)

The one commit is #417, and it is the right kind of pin bump: it deletes a superseded paragraph that said the opposite of the ratified version three lines below it, and records the six additional unreferenced names a full 395-case run reaches — test-expectation data and prose, no library code. counts.hrx staying at 350 is therefore correct, not a missed regeneration: the architecture surface did not move.

One thing to be aware of, and it is not this PR's fault

Against today's main the branch shows four files it does not mean to change:

 .github/workflows/census-watch.yml   -18   (reverts #2783's alert tiering)
 scripts/census-watch.sh               -4
 tools/diag/iommu_map_side.py         -63   (the file #2800 added)
 registry/architectures.json           ±1   (the intent)
 third_party/llama.cpp                 ±1   (the intent)

Its base predates #2783/#2800, git merge-tree reports 0 conflicts, so a merge keeps main's lines and only the pin moves. But the --stat a merge loop and an approver read says "this PR deletes tools/diag/iommu_map_side.py" — a file three hours old — and that has now been the shape of two PRs in a row (#2787, this one). A rebase makes the diff two lines and removes the question entirely.

Nothing else: the pin is a literal sha in both the submodule link and architectures.json, the registry's own --check verifies the second against the first, and there is no behaviour change to hold the ticket 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 at cf2a9a0: READY — correcting my own head reference (the review above says b610bb2b, which is #2808's head: a mixup in my line, not a change of verdict).

Everything in that review was measured against this head, cf2a9a02:

git -C third_party/llama.cpp fetch --depth 1 …/llama.cpp a1f525117…  -> PIN FETCHES OK
git submodule update --init third_party/llama.cpp                     -> a1f525117
python3 tools/registry_build.py --check -> matches the pinned sources   rc=0
git rev-list --count 0cc30730..a1f52511 -> 1     git show --name-only -> tests/hrx-ops-test.cpp only

READY at cf2a9a02; the stale-base note stands (rebase and the diff is the two pin lines).

@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 file to reflect the new commit hash for llama.cpp (hrx) which is part of the pin bump

Non-compliant requirements:

  • The actual workflow file .github/workflows/hw-gate.yml was not modified in this PR, which is required to fully address the issue

Requires further human verification:

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

2704 - Partially compliant

Compliant requirements:

  • No changes to the core logic or implementation of device_supports_op or matcher logic are included in this PR

Non-compliant requirements:

  • The PR does not implement the core fix for the device_supports_op issue, which is a major part of the ticket

Requires further human verification:

  • The implementation of the properties-level accept query and related changes are not included in this PR
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Outdated Commit Hash

The commit hash for llama.cpp (hrx) in registry/architectures.json is outdated and needs to be updated to reflect the new pin bump commit a1f525117c511662fd8fda452dd76c7deb5538ef. This is a necessary update for the pin bump but does not address the core issues raised in the tickets.

"llama.cpp (hrx)": "a1f525117c511662fd8fda452dd76c7deb5538ef"

@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: a1f525117 = "test-hrx-ops: drop the superseded 'nothing registers these' paragraph" = llama.cpp #417, merged — the PR I reviewed an hour ago, whose comment trim I asked to keep one sentence from ("a budgeted run under-reports the suite"). The engine side is the same two-line shape as the previous bump (gitlink + registry/architectures.json), which is now a consistent pattern across #2801 and #2806 and worth noting as such.

"Test-only, like the pin before it" is the right one-line scope statement, and it is doing real work here: a pin bump that cannot change runtime behaviour should say so, because the reader's question about a pin is always "what could this break, and does it need a device run". Two consecutive test-only pins establish that the fork's test hygiene is being fixed without moving the engine — which is itself information a lane can use.

One thing, and it is the same note I left on #2801 and #417:

the ratchet's count assertion is still unstated. #417's body said the list "may shrink, never grow silently", and its deletion of the old comment removed the sentence that argued for a table on the grounds that it is "33 lines reviewed in the diff". So the question a pin-bump body is the natural place to answer is now open in three PRs: does anything fail when a 34th name is appended? If it does, say so in one line here and the whole thread is closed; if it does not, the next fork PR will add one and nobody will notice — and a pin bump is where a reader looks for "what did this bring in".

Not blocking: pointer verified, registry row moved with the gitlink, and the scope line is honest and specific.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Merge-order note, since three PRs now carry this same pin hunk.

a1f525117 (this PR's target) is an ancestor of 8cb8fb64d, which #2821 pins:

0cc30730a (#416)  ->  a1f525117 (#417)  ->  8cb8fb64d (#418)

So #2806, #2819 and #2820 each move the pin one commit (0cc30730a -> a1f525117) as their own copy of the hunk, and #2821 moves it two. If #2821 lands first and then one of the other three merges, the gitlink goes back to a1f525117 and #418's decode-split FA guard leaves the pinned submodule — a one-line gitlink change that looks like nothing in the diff.

Oldest pin first: this one (or #2819/#2820) lands, the other two rebase the hunk out, and #2821 goes last. Verified at the pin: registry_build.py --check rc 0 for both, and both commits fetch by sha from the fork.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Correction to my merge-order note above, before anyone acts on it: it was wrong, and I checked it the wrong way.

I compared git diff origin/main <head> -- third_party/llama.cpp, which shows a revert on every branch whose base predates the pin bumps. The test that decides whether a merge moves the pin is the branch's own diff from its merge-base:

mb=$(git merge-base origin/main <head>)
[ "$(git ls-tree $mb third_party/llama.cpp | awk '{print $3}')" != "$(git ls-tree <head> third_party/llama.cpp | awk '{print $3}')" ]

Run over every open engine PR just now:

#2819 does not touch the pin      #2833 does not touch the pin      #2830 does not touch the pin
#2822 does not touch the pin      #2826 does not touch the pin      #2831 does not touch the pin
#2825 does not touch the pin      #2799 does not touch the pin      #2835 does not touch the pin
#2810 does not touch the pin      #2834 CHANGES THE PIN (8cb8fb64d -> ddd415f4a)

Only #2834 moves the gitlink, and it moves it forward to the fork tip (ddd415f4a = #419, on top of 8cb8fb64d = #418). So there is no ordering hazard from diff --stat: main is already at 8cb8fb64d (#2821 merged), the branches above merely contain an older tree, and a merge takes their own changes, not their tree. What remains true from my earlier note is only the housekeeping: this PR's pin hunk is now a no-op against main and a rebase would drop it.

bong-water-water-bong added a commit that referenced this pull request Nov 17, 2026
One merged fork commit: #419 adds ggml-hrx/tools/check_stale_expectations.py (+232), a device-free
check of the recorded-stale expectation table, with its CMake rows — the follow-up that makes #416/#417's
ratchet checkable without a GPU.

The pin was moved past this lane's last bump (#2806, a1f525117 -> 8cb8fb64d came in with another lane's
work), so this is a plain linear bump: 8cb8fb64d is an ancestor of ddd415f4a.

registry/architectures.json regenerated: one line, counts unchanged (hrx 350, npu 9); --check,
--check-pins and copyright --check pass at ddd415f4a. hw-gate should start on its own (#2759).

Refs llama.cpp#419, Refs engine#2774

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