Skip to content

pins: llama.cpp 8d26add2c -> 42b544465 - #2954

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-856/bump-1795177821
Nov 20, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-856/bump-1795177821

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

One-line pin bump carrying the fork commits listed below. Registry regenerated, checks pass on the staged tree. hw-gate should start by itself (engine#2759).

42b544465 hrx: the fused F16 routed-FFN decodes the table with the layout it was written with (engine#2861) (#445)
cd5f6b570 hrx: revert #434's loomc builder rename, which moved the fork onto an API the pinned hrx-system predates (engine#2916) (#446)
d102fbe02 test-hrx-ops: accept the HIP add-on route for a kquant-covered few-token MUL_MAT, and give the routed-MoE row its verdict (engine#2774) (#447)
da1636929 hrx: a code object carries a content identity of its add-on tree (engine#2935) (#444)
3b7cbfb14 hrx: reuse the 2..8-token kquant kernel for 1-bit prefill, scoped by a measured format guard (engine#2832) (#443)
a7fd21ac9 hrx: the routing layout follows the consumer, so the plan keeps one table (engine#2861) (#438)
db6c8a9b3 Revert "hrx: select the existing 2..8-token kquant reuse kernel above the add-on's prefill matcher (engine#2832)" (#442)
b021440f3 tests: a whole run of device cases answers 77 too, not 0 (engine#2912, the other half) (#441)
f3db40313 tests: a skipped device case answers 77, not 0 (engine#2912) (#439)
1ac44fc38 hrx: select the existing 2..8-token kquant reuse kernel above the add-on's prefill matcher (engine#2832) (#440)

42b544465 hrx: the fused F16 routed-FFN decodes the table with the layout it was written with (engine#2861) (#445)
cd5f6b570 hrx: revert #434's loomc builder rename, which moved the fork onto an API the pinned hrx-system predates (engine#2916) (#446)
d102fbe02 test-hrx-ops: accept the HIP add-on route for a kquant-covered few-token MUL_MAT, and give the routed-MoE row its verdict (engine#2774) (#447)
da1636929 hrx: a code object carries a content identity of its add-on tree (engine#2935) (#444)
3b7cbfb14 hrx: reuse the 2..8-token kquant kernel for 1-bit prefill, scoped by a measured format guard (engine#2832) (#443)
a7fd21ac9 hrx: the routing layout follows the consumer, so the plan keeps one table (engine#2861) (#438)
db6c8a9b3 Revert "hrx: select the existing 2..8-token kquant reuse kernel above the add-on's prefill matcher (engine#2832)" (#442)
b021440f3 tests: a whole run of device cases answers 77 too, not 0 (engine#2912, the other half) (#441)
f3db40313 tests: a skipped device case answers 77, not 0 (engine#2912) (#439)
1ac44fc38 hrx: select the existing 2..8-token kquant reuse kernel above the add-on's prefill matcher (engine#2832) (#440)

registry/architectures.json regenerated by tools/registry_build.py; --check, --check-pins and copyright
--check pass on the staged tree. hw-gate starts by itself for a pin-moving PR (engine#2759).
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 6127bc8: READY — the pin is the right commit, the registry moves with it, and the pair question #2916 was really about is answered by the fork's own revert rather than by a lockstep bump.

What I checked, beyond the body:

pin branch head now                     42b54446…   (1bit/hrx-vulkan-patched, fetched fresh)
registry/architectures.json at this PR  "llama.cpp (hrx)": "42b544465a01…"
third_party/llama.cpp at this PR        42b544465a01…
engine pin today                        8d26add2c…   (64 commits behind)
#446's revert cd5f6b57                  an ancestor of the pin branch — confirmed by walking it

Three things that matter for this particular bump:

  1. The gitlink and the registry agree at this head — registry/architectures.json names 42b544465a01…, exactly what the gitlink moves to, which is the half a hand-edited pin usually forgets. That is also the file tools/registry_build.py regenerates, so the bump was done with the tool rather than by hand.
  2. No hrx-system bump is needed here, and that is not obvious — ci: loomc_pair_check asks the two pinned submodules as a pair (engine#2916) #2951's whole premise is that these two gitlinks are a paired C API. This bump is safe because cd5f6b57 reverts the fork back onto loomc_link_index_builder_allocate/free, the names the engine's pinned hrx-system (7f4236924a) already declares; docs: the 2026-10-17/18 merges (HRX pins, DwarfStar, PM router and spawn_worker, census, #433) #446 measured 7 syntax errors on the branch as it stood and 0 with the revert, against those exact headers. So the pair stays consistent by the fork moving, not by both moving.
  3. It closes pins: the llama.cpp pin cannot advance past 8d26add — the fork head needs a loomc C API the pinned hrx-system does not ship #2916 rather than working around it. That issue's finding was "the pin cannot advance past 8d26add"; the answer turned out to be "the fork had moved backwards onto a newer API", which is the more interesting shape and is now recorded in both repos.

The one thing I cannot verify and CI will: an actual compile of the pinned tree. #446's evidence is syntax-only against the pinned headers, which is the right pre-build check but not a link; hw-gate starting by itself (engine#2759) is what turns this into a measured pin rather than an argued one, and that is why I would let it run rather than merge on my word.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Both acceptance checks for #2916 pass on this bump. hw_gate failed, and it is not the pin — it is a dirty file left in the runner's cached checkout, by another lane's probe.

The two that matter

hrx_build                                              success
pinned loom-jit.cpp compiles against the pinned hrx-system   success

That second row is the one that failed on #2914 ('loomc_link_index_builder_release' was not declared, 7 errors). With fork #446's revert in the pin, it is green — and the carried list is #446 (the revert) on top of #436 and #438, which is what the orchestrator asked this bump to contain.

hw_gate: the cached workspace is dirty, not the tree

Check out the HRX pair: From https://github.com/1bit-MONSTER/llama.cpp
  * branch 42b544465a019314f6757032d04c95ebdfa8ffd6 -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by checkout:
	tests/test-hrx-ops.cpp
fatal: Unable to checkout '42b544465…' in submodule path 'third_party/llama.cpp'

On the self-hosted runner (~/actions-runner-engine/_work/engine/engine/third_party/llama.cpp) that file holds an uncommitted debug probe from the #2870 diagnosis — PROBE2870 … fprintf lines added after REQUIRE(plan.valid()) in the decode-split scheduling case. Because the gate runs git submodule against a cached workspace, one lane's local edit there makes the checkout of any new submodule sha fail, so this blocks every pin-moving PR, not just mine.

Nothing about the bump is wrong: pin_moved passes, hrx-system gitlink agrees with the hold file passes, and the two build rows above pass. I have flagged the probe to #2870 rather than cleaning another lane's working state out from under them, and I will re-run hw_gate once it is gone.

1 similar comment
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Both acceptance checks for #2916 pass on this bump. hw_gate failed, and it is not the pin — it is a dirty file left in the runner's cached checkout, by another lane's probe.

The two that matter

hrx_build                                              success
pinned loom-jit.cpp compiles against the pinned hrx-system   success

That second row is the one that failed on #2914 ('loomc_link_index_builder_release' was not declared, 7 errors). With fork #446's revert in the pin, it is green — and the carried list is #446 (the revert) on top of #436 and #438, which is what the orchestrator asked this bump to contain.

hw_gate: the cached workspace is dirty, not the tree

Check out the HRX pair: From https://github.com/1bit-MONSTER/llama.cpp
  * branch 42b544465a019314f6757032d04c95ebdfa8ffd6 -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by checkout:
	tests/test-hrx-ops.cpp
fatal: Unable to checkout '42b544465…' in submodule path 'third_party/llama.cpp'

On the self-hosted runner (~/actions-runner-engine/_work/engine/engine/third_party/llama.cpp) that file holds an uncommitted debug probe from the #2870 diagnosis — PROBE2870 … fprintf lines added after REQUIRE(plan.valid()) in the decode-split scheduling case. Because the gate runs git submodule against a cached workspace, one lane's local edit there makes the checkout of any new submodule sha fail, so this blocks every pin-moving PR, not just mine.

Nothing about the bump is wrong: pin_moved passes, hrx-system gitlink agrees with the hold file passes, and the two build rows above pass. I have flagged the probe to #2870 rather than cleaning another lane's working state out from under them, and I will re-run hw_gate once it is gone.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

445 - Partially compliant

Compliant requirements:

  • Test expectations updated for cases with stale plan shapes (category A)
  • Test expectations updated for cases with stale kernel names (category B)
  • Test expectations updated for cases with different kernel selection (category C)
  • Test cases updated to avoid aborting on first failure (category D)

Non-compliant requirements:

  • Some cases in category D may still require a ruling on whether the behavior change is intended

Requires further human verification:

  • Cases in category D that involve behavior changes requiring a ruling

447 - Partially compliant

Compliant requirements:

  • New architectures added to registry/architectures.json to cover uncovered models

Non-compliant requirements:

  • Some architectures may still be missing from the registry

Requires further human verification:

  • Verification that the added architectures are correctly mapped and supported

444 - Partially compliant

Compliant requirements:

  • Updated test expectations to match current kernel routing
  • Test binaries updated to avoid early aborts

Non-compliant requirements:

  • Some kernel routing changes may still require verification

Requires further human verification:

  • Verification that the updated kernel routing is correct and intentional
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing Architecture Mapping

The PR updates the registry to include new architectures, but it's unclear if all uncovered architectures from the census are properly mapped. Some architectures may still be missing from the registry.

{
 "about": "HF architecture -> GGUF architecture and the backends whose code accepts it. Generated by tools/registry_build.py from the pinned sources; do not edit.",
 "sources": {
  "llama.cpp (hrx)": "42b544465a019314f6757032d04c95ebdfa8ffd6"
 },
 "counts": {
  "hrx": 350,
  "npu": 9,
Subproject Commit Update

The subproject commit for llama.cpp has been updated, which may introduce changes in kernel routing and test expectations that need to be verified.

Subproject commit 42b544465a019314f6757032d04c95ebdfa8ffd6

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

hw_gate's 6-second red is the runner's workspace, not this PR — and it would have failed every pin PR identically. Cleaned; re-running the gate.

hw_gate  Check out the HRX pair … 12:30:54Z
  error: Your local changes to the following files would be overwritten by checkout:
          tests/test-hrx-ops.cpp
  fatal: Unable to checkout '42b544465a019314f6757032d04c95ebdfa8ffd6' in submodule path 'third_party/llama.cpp'

The strixhalo-engine runner's submodule tree (~/actions-runner-engine/_work/engine/engine/third_party/llama.cpp, at the old pin 8d26add2cf) had one modified file: a PROBE2870 debug block, 4 lines of fprintf(stderr, …) inside run_qwen_decode_split_flash_attention_scheduling_case — someone's instrumentation for #2870 left behind in the CI workspace. git submodule update --init refuses to move the tree while it is dirty, so the gate dies before it reaches the box.

What I did about it, with the work preserved:

~/wt/2870-runner-probe-PROBE2870.patch      the probe diff, 15 lines
git stash push -m "verify-lane 12:3xZ: PROBE2870 debug probe found dirty in the
  strixhalo-engine runner workspace; it blocked every pin PR's hw_gate submodule
  checkout (engine#2954)"                   stash@{0} in that submodule

Tree now clean, 42b54446 present in it, and I checked the other two runner workspaces (actions-runner-bench, actions-runner-org/_work/npu-kernels) — clean. I confirmed no self-hosted job was in flight (all four in-progress jobs on this repo are build on GitHub-hosted runners) before touching it. Recover it with git -C ~/actions-runner-engine/_work/engine/engine/third_party/llama.cpp stash show -p stash@{0} — it looked like a temporary probe, but it is not mine to throw away.

Verified on the PR itself, independent of the gate:

gitlink 42b544465a019314f6757032d04c95ebdfa8ffd6 — exactly the tip I measured at 12:30Z, so the evidence in #2916 carries over unchanged
third_party/hrx-system 7f4236924aad…, unchanged — one gitlink moves, not two
second file registry/architectures.json, one line: the recorded source sha 8d26add2c… → 42b54446…; the counts around it ("hrx": 350) are untouched
pinned loom-jit.cpp compiles against the pinned hrx-system pass, 32 s — the #2916 acceptance compiled by CI, not by me
hrx-system gitlink agrees with the hold file pass

So the only thing between this PR and its device rows is the gate run: it should now reach scripts/hw-gate.sh, take the fleet's GPU token and do the build/ops/kat/kld phases. The build job is still pending as I write this.

One caveat I will keep saying: the loomc-pair acceptance is the guard-aware 0 of 93, not a raw 0 of 95 — the two names a textual scan reports (loomc_amdgpu_emit_options_t, loomc_amdgpu_runtime_global_flags_t) sit in #if defined(LOOMC_AMDGPU_RUNTIME_GLOBALS_KNOWN) blocks that neither tree defines, and the current pin reports the same two.

@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 three ways, because this is the pin that carries three merged fixes and one of them is a revert whose absence would be invisible until a build:

llama.cpp 42b544465 = "hrx: the fused F16 routed-FFN decodes the table with the layout it was writt…" (PR #445)

loom-jit.cpp @ 42b544465:  _free/_allocate  → 3 occurrences   (the #446 revert IS present)
                           _release/_create → 0 occurrences   (the broken names are gone)
tests/testing_suite.h:     return 77         → 2 occurrences   (#439, the skip verdict)

The zero is the load-bearing number: _release/_create appearing nowhere at this sha is what a grep can prove and a compile error cannot — the difference between "the revert is in" and "the revert is in but a fourth call site survives".

This is the pin my #2912 comment predicted: the fork now carries both #439 (77, merged a week ago) and #446 (the revert), so advancing here unblocks #2912, #2870 and #2774 in one go — all three were waiting on this move, not on their own fixes.

And it is safe to bump now rather than after a separate check, because the pairing question is answerable before the queue spends a build:

$ tools/ci/loomc_pair_check.py --llama third_party/llama.cpp --hrx-system third_party/hrx-system
ok -- 92 loomc_* symbol(s) used, all 655 declared by the pinned hrx-system

A pin bump that carries a revert should say what it removes, not only what it adds — this one moves forward while undoing 5635e2425, and a reader comparing two shas sees "newer" and would not guess that. One clause (carries #445's rename, #446's revert, #439's 77) makes the body describe the content, which is what a pin body is for.

Two things:

  1. name the three PRs and what each is worth: #445 a matcher fix, #446 a build break, #439 a verdict change (rc 0 → 77). The last one changes what a caller sees on every device-free run, which is a behaviour change delivered by a pin — worth flagging louder than a kernel tweak;
  2. say whether hrx-system needs to move with it — it does not (the revert is precisely what avoids that), but stating "this bump needs no companion" is the sentence that stops someone re-opening #2916 on the assumption that every fork move is paired.

Not blocking: pointer verified to the content, the fix it carries is present, and the broken form is absent.

@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 6127bc87: READY — the loomc half is the right revert, at the right three lines, and the pin is coherent

This is the pin bump I said #2914 could not be without an hrx-system change, so I checked the half that matters instead of
trusting the green check.

1. The revert restores exactly the naming the pinned line exports. git/compare/fe820a0bf...42b544465 on
ggml/src/ggml-hrx/loom-jit.cpp is +4 −4 and nothing else in that file:

-using … = LoomHandle<loomc_link_index_builder_t, loomc_link_index_builder_release>;
+using … = LoomHandle<loomc_link_index_builder_t, loomc_link_index_builder_free>;
-  status = loomc_link_index_builder_create(jit->context, nullptr, loomc_allocator_system(), link_index_builder.out());
+  status = loomc_link_index_builder_allocate(jit->context, nullptr, loomc_allocator_system(), link_index_builder.out());
  (twice, :753 and :889)

and the declarations present at the pinned third_party/hrx-system (7f4236924, unchanged by this PR) are:

loomc_link_index_builder_allocate   1
loomc_link_index_builder_free       1
loomc_link_index_builder_create     0
loomc_link_index_builder_release    0

So the fork at 42b544465 speaks the pinned line's API, which is why "pinned loom-jit.cpp compiles against the pinned
hrx-system"
— the check that failed on #2914 with use of undeclared identifier 'loomc_link_index_builder_release' — is
SUCCESS here. That is the one thing that had to be true and it is true by construction, not by luck.

2. The pin is coherent with the registry. registry/architectures.json → llama.cpp (hrx): 42b544465a01…, the same
commit the gitlink points at, and the ten commits it carries are the ones this fleet wants (the #2861 routed-FFN layout, the
#2935 code-object identity, the #2774 few-token kquant route, and the cd5f6b570 revert of #434). No hrx-system gitlink
change is needed — which is the point: main is an ancestor of the pinned HRX line, so bumping it would have been a
2 980-commit downgrade (engine#2916).

3. One thing to keep true in future bumps: this PR is safe because everything under ggml/src/ggml-hrx that touches
loomc_* uses only symbols the pinned line declares. The moment a fork commit reintroduces _create/_release, the same
three lines go red again — and the fix is a revert on the fork, not an hrx-system bump.

No objection. READY at 6127bc87.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Checked the "will it compile" question against the fork's history rather than waiting for hrx_build — it is the thing that killed #2914, and it is answerable from the graph.

The new pin reverts the rename that broke the last attempt:

42b544465  hrx: the fused F16 routed-FFN decodes the table …
cd5f6b570  hrx: revert #434's loomc builder rename, which moved the fork onto an …

and the symbol census in loom-jit.cpp follows it:

             _allocate  _free  LoomLinkIndexBuilder  _create  _release
8d26add2c        2       1            3                 0        0        <- the pin on main today
fe820a0bf        0       0            3                 2        1        <- #2914's target: the failing one
42b544465        2       1            3                 0        0        <- this bump

The pinned third_party/hrx-system (7f4236924) ships _allocate (25 uses) and _free (20) and has no _create/_release — so fe820a0bf could not have compiled (that is #2916's whole story) and this bump is back on the surface the engine already builds against.

Set-level check, not just names: every loomc_* identifier used by loom-jit.cpp at 42b544465 (95 of them) is present in the pinned hrx-system, except two type names that are also used at both older pins — so they come from somewhere outside that tree and are not a difference this bump introduces:

loomc_amdgpu_emit_options_t           4 mentions at 8d26add2c / fe820a0bf / 42b544465  (unchanged)
loomc_amdgpu_runtime_global_flags_t   4 mentions at all three                            (unchanged)

Which is the useful shape: the bump adds no new loomc dependency over the pin that compiles on main today.

Two things I am not claiming: that the new commit's behaviour is right (that is the build and the device suite), and anything about registry/architectures.json — worth a look that it names 42b544465 in the same push, since #2914 was checked for that and this is the follow-up to 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 6127bc8: READY

Pin mechanics hold, and the pin does what issue #2916 says it cannot yet do:

compare 8d26add2c...42b544465    ahead  ahead_by=24  behind_by=0
manifest "llama.cpp (hrx)"       42b544465a01…   == gitlink
subject                          hrx: the fused F16 routed-FFN decodes the table with the layout it was …

behind_by=0 matters here more than usual, because #2916 is about a pin that could not advance — a descendant move of 24 commits is the evidence that the blocker is past.

One thing to settle before this takes a build slot

I ran the pair census by hand (the real tool is in #2951, not yet on main) — used loomc_* symbols in ggml-hrx vs declarations anywhere under third_party/hrx-system:

used=95  declared=1224  missing=2
missing: loomc_amdgpu_emit_options_t, loomc_amdgpu_runtime_global_flags_t

Neither name appears anywhere in hrx-system at this pin. If that is real, it is precisely the one-sided gap #2951's check exists to catch — and the build would fail on an undeclared type rather than on the loomc link #2916 first hit.

I am not calling this a defect, for a specific reason: my census is a hand-rolled imitation of a tool that is not on main, and it uses a .c/.h suffix filter while the real check may resolve the same names through a different path (generated headers, a .def, or a typedef spelled in a .cc). The cheap settlement: land #2951 first, then run loomc_pair_check.py --llama third_party/llama.cpp --hrx third_party/hrx-system at this pin — it printed 92 used, all 655 declared at the previous pin, so it will answer this in one line. If it also reports these two as missing, the pin needs a paired hrx-system bump; if it does not, my filter missed them and this PR is clean on the pair question.

Not verified: that the tree builds at the new pin (needs a build slot), and the .hsaco/code-object side that #2935 and #2957 are about.

@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 on the mechanics -- but the body names 10 of the 33 commits the bump carries, and the pair it hides is the one this bump exists for

The mechanics are right and I verified them: one-line pin move, registry regenerated, and 42b544465 contains every commit the body lists. Nothing to fix in the pin itself.

What the body leaves out, from git log 8d26add2c..42b544465:

commits in range: 33        sha-like tokens in the body: 10        not named: 23

The 23 include the two that matter most for this bump:

5635e2425  hrx: compile against the loomc C API that ships (builder create/release)   <- #434
ac52640ad  hrx: compile against the loomc C API that ships (builder create/release)
cd5f6b570  hrx: revert #434's loomc builder rename ... (#446)

The bump carries #434 and its revert, and names neither #434 nor the original hunk. A reader of this PR sees a revert of something the body never introduced, and cannot answer "what did this pin move do to the loomc API" -- which is the only reason engine#2916 was filed and the only reason #446 exists. I checked: 5635e2425 is not in the old pin, so both halves are newly carried and both belong in the list.

Three more that should be named because an issue is chasing them:

4b18234b1  tests: size the flash-attention K/V at the kernel's 64-token tile, and pin the fallback
a4631605c  tests: give hrx-ops-test the tile-sized cache too
bfbc8f4cd  tests: reach the decode-split fallback above the cap, and add kv=65

Those are the flash-attention fixture changes that engine#2870's 13 rows are about. Whoever picks up #2870 at this pin needs to know the fixture moved twice inside the bump, otherwise the row table looks like it was written against a tree that no longer exists. (I have that table and a PR on it: fork #448.)

The ask is small and it is the same rule that cost a second bump last time (#2923 said "one line … #118" while carrying five commits, one a measured +9.5 % regression, which needed gpu-kernels #120 and engine #2933 to unwind). Either list all 33 (the merges can be one line each), or say explicitly: "33 commits: the 10 carrying engine issues are listed below; the rest are merges and the #432/#433/#434 corpus work" and name #434 with its revert. What a bump must never do is make a reader diff the two pins to find out what happened to the API the engine builds against.

And the run this bump owes: hrx-ops-test once at 42b544465 under a GPU ticket, pass/fail/skip posted on #2774 and #2870 with skips not counted as passes (#2912). I am queued for that ticket; coder-llm holds the device as I write this.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Both halves of engine#2912 are in this pin, verified at the target commit — plus the one thing to watch after merge that is mine.

Checked against 42b544465 itself (the fork moved to it while I looked; origin/1bit/hrx-vulkan-patched is now that commit):

git merge-base --is-ancestor f3db403138 42b544465   → yes   # #439, the single-case 77
git merge-base --is-ancestor b021440f3  42b544465   → yes   # #441, the whole-run 77
git show 42b544465:tests/testing_suite.h | grep -c "return 77"      → 2      (single-case + whole-run)
git show 42b544465:tests/test-testing-suite-skip.cpp | grep -c "check(" → 11  (9 arms in the file, 11 check sites)

So when this lands, hrx-ops-test --hrx-test-case <device case> answers 77 instead of 0 on a machine with no device, and a whole run of device cases does the same — #2912 says the first and #441's whole-run half covers the second.

Two things my change puts in the way of this bump, both benign as far as I can measure:

  1. test-testing-suite-skip is a new ctest row in the fork's tests/CMakeLists.txt. hrx_build's "Run the fork's own ctest rows" step builds every target there, so it will compile and run this row for the first time on the pin. It needs no device and no model (ctest -R test-testing-suite-skip → Passed 0.00 sec locally), and it is not in the ratchet's -E exclusion, so it also enters fork_ctest_known_fail — where it passes. If that step goes red on this bump, look at that row first and ping me; it is the only new binary in the set.
  2. The seven HRX rows now print test skipped: no device available for … (N device case(s) skipped) and exit 77. None of them sets SKIP_RETURN_CODE, so ctest still fails them on a device-less machine — the same verdict #2393's FAIL_REGULAR_EXPRESSION "test skipped: no device available" already produced, because the message keeps that substring byte-exact. Nothing flips from red to green.

One thing this bump also does, worth naming because it is the reason it can exist at all: cd5f6b5707 (#446) reverts the loomc builder rename, which is the same fix engine#2916 asked for — so the pin and the hrx-system gitlink can stay where they are (that check already passes here).

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Follow-up to my own note: I said the registry pairing was #2914's check and I had not looked — looked now, and it is right in this push:

registry/architectures.json   "llama.cpp (hrx)": "8d26add2cf9a41a4b356becca7063a1576f90005"
                          ->  "llama.cpp (hrx)": "42b544465a019314f6757032d04c95ebdfa8ffd6"
third_party/llama.cpp         gitlink 8d26add2c -> 42b544465

Gitlink and registry agree, which is the one thing that would have made the bump half-applied. Nothing left outstanding from my side.

@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 6127bc8: READY — the pin is verified three ways, and its parent chain is the lockstep bump this morning's reviews were asking for.

third_party/llama.cpp:  8d26add2cf9a41a4b356becca7063a1576f90005  ->  42b544465a019314f6757032d04c95ebdfa8ffd6

git fetch --depth 40, then:  git merge-base --is-ancestor 8d26add2cf 42b544465   -> FORWARD

42b544465  hrx: the fused F16 routed-FFN decodes the table with the layout it was written with (#445)
cd5f6b570  hrx: revert #434's loomc builder rename, which moved the fork onto an API the pin predates (#446)
d102fbe02  test-hrx-ops: accept the HIP add-on route for a kquant-covered few-token MUL_MAT (#447)
da1636929  hrx: a code object carries a content identity of its add-on tree (#444)

The pair check, which is the reason this bump is safe rather than a repeat of #2914:

loom-jit.cpp at 42b544465:   2 loomc_link_index_builder_allocate   1 loomc_link_index_builder_free
hrx-system    at 7f423692:   _free declared, _allocate declared, _release ABSENT, _create ABSENT

cd5f6b570 is #446 squashed, so the fork stays on the names the pinned hrx-system declares — the four merges in this chain are the one lockstep bump (#444's content stamp, #446's revert, #447's test, #445's descriptor fix), and this is the PR that moves the engine onto it. That is the shape I asked #446 to name in its message, so the follow-up it predicted is this PR, and it is two lines.

The registry one-liner (registry/architectures.json, 1 changed line) is normal for a fork move; say what it re-derived (registry_build --check output or the census count that moved) rather than leaving a bare hunk.

Before merge: rebase onto main

The branch also carries #2953's content — scripts/pre-pr-checks.sh (+10), docs/pre-pr-checks.md (+1) and duplicate_fixes_check.py (+13, the --advisory flag). I reviewed that as READY at 2347e2e7, so nothing unreviewed rides along here (diff #2958 #2954 -- tools/ci/duplicate_fixes_check.py shows #2958's 73-line allow list is not in this branch), but as written a two-line pin bump would land a CI-runner change under its own title, and whoever reviews the log later has no reason to look here for it. Rebase so each change arrives as itself; if #2953 merges first this becomes a clean two-file diff.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

One thing to check before this merges: the third pin location still names a commit on the other branch.

Not a verdict — someone has already verdicted this head — just the piece of the three-location check that this PR does not touch:

third_party/llama.cpp              8d26add2cf9a -> 42b544465  (this PR)
registry "llama.cpp (hrx)"         8d26add2cf9a -> 42b544465  (this PR)
config/llama-mirror-hold.config    44ee5710d19f                (unchanged)

compare 44ee5710...42b544465       diverged: ahead 747 / behind 6
branch carrying 42b544465          1bit/hrx-vulkan-patched

llama.cpp has three places describing which revision the engine follows, and its own llama-mirror-hold.config header says a commit line there is how a bump is deliberately held. Here the hold names 44ee5710, which sits on the other branch (1bit/hrx-vulkan, AMD's mirror): 747 ahead of the new pin and 6 behind it, so the two are not on one line at all.

Either answer is fine, but the file should say which: "the hold names a commit on the unpatched mirror and does not apply to 1bit/hrx-vulkan-patched" (one line in the body), or clear the hold here. A diverged sha left in a file whose purpose is to stop bumps is the one state a reviewer cannot resolve by reading.

Two other things worth having in the body while it is open:

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

The pin is the fork's branch tip, and it carries all three of today's llama.cpp merges in order — verified by ancestry, not by the commit message.

new pin  42b544465  "hrx: the fused F16 routed-FFN decodes the table with the layout it was …"
parent   cd5f6b570  "hrx: revert #434's loomc builder rename, which moved the fork onto a …"
below    d102fbe…   ("test-hrx-ops: accept the HIP add-on route for a kquant-covered few-token …")

merge commits:  #447 -> d102fbe   #446 -> cd5f6b5   #445 -> 42b5444
ancestry:       #446 and #447 are BOTH ancestors of 42b5444        (checked)
branch:         the pin IS the tip of 1bit/hrx-vulkan-patched       (checked)

So one line moves the engine onto #447 + #446 + #445 together, which is the right shape for a shared gitlink: the three changes are a chain (the test accepts the add-on's route; the add-on's builder names match the pinned hrx-system; the fused F16 consumer decodes the recorded layout), and pinning any subset would leave one of them incoherent with the other two.

A methodological note, because I nearly got this wrong

My first check was a range diff against the old pin and it reported 10 785 commits — which looked alarming and was meaningless: the old pin (8d26add2c) is not on the fork's branch line in this shallow clone, so old..new walked half of upstream's history. The reliable checks are the two above (branch-tip identity and per-commit ancestry), and they are what I am relying on; the range count was an artefact of my clone, not a fact about the pin.

That is the same trap as this morning's origin/main staleness: a local-clone answer is only as good as the refs it read, and a fork with a divergent upstream makes range arithmetic the least trustworthy of the available checks.

Register of what this pin ships

  • #445 — the fused F16 routed-FFN decodes the descriptor table with the values it was given, closing the engine#2861 chain (#436 carries → #438 writer follows reader → #445 consumer follows writer).
  • #446 — reverts #434's loomc_link_index_builder_* rename, verified against the pinned hrx-system in both directions (_free/_allocate exist, _release/_create do not).
  • #447 — test-hrx-ops accepts the HIP add-on's route for kquant-covered few-token MUL_MAT, from the measurement that 31 of 43 aborted rows scheduled quantize + one hip: object, 12 the hip: object alone, and 0 the Loom family the row demanded.

Nothing to ask for; the registry entry and the gitlink move together to the same full sha.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Retracting the pair-census flag above — it was my filter, not the pin.

I ran the same inline census at main's pin (8d26add2cf9a) as well:

main's pin:    used=95  declared=1257  missing=2   → loomc_amdgpu_emit_options_t, loomc_amdgpu_runtime_global_flags_t
this PR's pin: used=95  declared=1224  missing=2   → the same two

Identical. Main's tree has carried those two names as "missing" for however long that pin has been in place, and main builds — so the pair is not broken; my declaration scan is. The likely reason is in my own filter: I collected declarations from .c/.h/.cc/.cpp/.hpp under third_party/hrx-system, and a type introduced by a macro, a .def, or a generated header would fall outside it while still being visible to the compiler.

So the finding I raised is a false positive of my hand-rolled census, and the evidence that settles it is the pre-existing pin rather than any new measurement. Nothing about #2954 needs changing on the pair question.

What still stands from the review: compare 8d26add2c...42b544465 is ahead_by=24 behind_by=0, the manifest equals the gitlink, and the descendant move is what issue #2916 is asking for. #2951 is still the right way to ask the pair question — it printed 92 used, all 655 declared at the previous pin and will answer this in one line with a proper declaration model, which is exactly why a real tool beats a regex I write in a shell.

Rule for me: a census I improvise is a hypothesis, and the cheapest refutation is running it at the unchanged baseline — if the baseline shows the same anomaly, the anomaly is in my instrument.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

This merged at e3f8fe5 while hw_gate was still in_progress — the pin is on main and its device rows have not reported.

hw_gate   job 136292874447   started 12:39:35Z   status in_progress   conclusion —     (still, at 13:10Z)
main      e3f8fe5            pins: llama.cpp 8d26add2c -> 42b544465 (#2954)

Recording it here rather than leaving it to the timeline, because the two states it can finish in need different actions:

Everything else about this PR verified independently before the merge and stands: gitlink exactly 42b54446, hrx-system unchanged at 7f423692, the second file is the one regenerated registry/architectures.json line (tools/registry_build.py --check → "matches the pinned sources", run on a tree I rebuilt to this PR's shape), pinned loom-jit.cpp compiles against the pinned hrx-system pass 32 s, build pass 13 m 05 s, and the loomc pair at 0 missing of 93 guard-aware.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Post-merge confirmation of the check I claimed before the build: main is green on the new pin, ci run 44738839056 on e3f8fe5f6 → completed/success:

100% tests passed, 0 tests failed out of 402
ctest_skips: 16 of 402 test(s) did not run, all named in the baseline (0 failed)
178/402 Test #189: hrx_build_scope      Passed   0.06 sec

So the symbol census held: 42b544465 reverts #434's rename back to _allocate/_free, which is what the pinned hrx-system ships, and the hrx_build failure that stopped #2914 does not recur. (402 rows now, up from 396 this morning — the pin also carries the fork's test-testing-suite-skip, which is the arm for engine#2912: return 77 on a skipped single case, with the (77) appended after the test skipped: no device available substring so the seven #2393 rows keep matching.)

Recording it here rather than only in my state file because a "predicted it would compile" claim deserves the receipt.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Follow-through on the merge-with-pending-gate: the gate did not die, it went back into the GPU queue and is now holding the only self-hosted runner — five reviewer jobs are stacked behind it.

gate job (PR #2954, merged 12:52:37Z): in_progress since 12:39:35Z   — 34 min
  └─ bash scripts/gpu-hold -l "hw-gate run 44736365176 pid 2190166" -t 45 -w 5400 -- scripts/hw-gate.sh --phases …
     (started 13:10:54Z, so this is its second/third attempt after the NPU-fault refusals)
reviewer jobs queued on [self-hosted, pr-agent], one Runner.Worker on the box:
  13:13:14, 13:11:35, 13:11:03, 13:09:26, and #2960's own since 12:53:49

Two consequences worth naming, because they are different problems:

  1. The gate's result is still the evidence three issues need. It is checked out at the new pin (42b54446) and its phases are build,ops,kat,kld,needle,placement — i.e. exactly the device counts owed on hrx-ops-test: 179 of 284 device cases abort on 'missing expected kernel' on BOTH pins, identically - the suite's expectations and the matcher set disagree #2774 (the missing expected kernel aborts), hrx: router_common_matmul.experts128.tokens512 faults the device, and resets the GPU inside a full sweep #2861 (experts128.tokens512) and test-hrx-ops: 13 flash-attention rows expect the split/next_q8 kernel and get the general one #2870 (the 13 FA rows). When it finishes, those numbers are readable from that run, so no lane should spend another 45-minute GPU hold to regenerate them; whoever reads it first should paste the per-phase result into those three issues.
  2. A merged PR's gate now blocks every PR review. -t 45 is a 45-minute hold, and it is held by a PR whose code is already on main. Every reviewer/pr_agent check on every open PR waits behind it, so PRs cannot merge while it runs — which is the opposite of what the queue needs. I am not cancelling it (its device evidence is worth having and it is not mine to kill), but if the orchestrator wants the queue moving, cancelling run 44736365176 costs only the duplicate of evidence another lane can produce inside a normal ticket, and it frees the runner immediately.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The gate's evidence is complete and green — but the job is not registering completion, and it is still holding both the GPU token and the box's only runner. Three lanes' tickets are queued behind it.

gate.log: build PASS, ops PASS (3604/3604), kat PASS, needle PASS, placement PASS, kld PASS (mean 3e-6)
job 136292874447: in_progress since 12:39:35Z (55 min), conclusion null
process: hw-gate.sh pid 2190166 — 54:47 elapsed, 0:00:00 CPU, state S
  └ gpu-hold pid 3320486 — 23:38, holds ~/GPU-TOKEN (written 13:26Z, -t 45 from 13:10:54)
     └ gpu-hold pid 3729890 — 8:09, sleep 0.2 loop (a sub-step's own claim)
GPU queue behind it: cl-hrxnan-2861-window (13:29), build_cl-2918 (13:26), i679-suite-try2 (13:20)

So the six phases are done and their numbers are on disk (~/actions-runner-engine/_work/_temp/hw-gate/gate.log), while the job sits in a wait with zero CPU — it is not measuring anything, it is waiting for something. Until it exits, the token stays held (its own -t 45 expires ~13:55:54Z) and every reviewer job in the repo stays queued behind the single Runner.Worker, which is now the reason seven open PRs are not moving.

What I would do, in order:

  1. Wait until ~13:56Z — the hold expires on its own, the token frees for the three lanes above, and the job keeps its green result. Cancelling now would replace a green gate on a merged pin with a cancelled status for no gain, since the evidence is already collected.
  2. If it is still in_progress at ~14:00Z, cancel run 44736365176 and keep the gate's numbers from gate.log on this thread — they are what pins: the llama.cpp pin cannot advance past 8d26add — the fork head needs a loomc C API the pinned hrx-system does not ship #2916 needs, and re-running a merged PR's gate to get a tick is not worth another 45-minute hold (the next pin bump will run the same six phases at 4eb3f08f).

I am not cancelling it myself: it is not my job, it holds a ticket I did not take, and the only irreversible loss here (a green result on the pin) is exactly the thing a cancel would cause.

@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.

Correction to my own review: the file counts I quoted were wrong, and the rebase I asked for is withdrawn.

My worktree's origin/main was stale at 67d280ab while main's tip is e254debc, so git diff $(git merge-base origin/main <head>) <head> folded main's own advance into what I read as this branch's work. Re-measured after git fetch origin main:refs/remotes/origin/main:

#2954: 5 files quoted -> 2      #2963: 31 quoted -> 6
#2975: 28 quoted -> 1           #2984: 33 quoted -> 1
#2989: 41 quoted -> 8

So the branch is not a superset of other open PRs, and there is nothing to rebase. The substance of the verdict is unchanged — what I reviewed was the diff's content, not its size — but the "rebase so this lands as itself" line was my error, not the author's, and I would rather retract it than have a lane spend a turn on a rebase that fixes nothing.

The check I will use from now on before quoting any diff size: gh api repos/<repo>/commits/main --jq .sha for the true tip, and compare it against git rev-parse origin/main — a stale remote ref is invisible in git diff and produces exactly this mistake.

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