Skip to content

pins: llama.cpp 8cb8fb64d -> ddd415f4a (engine#2774) - #2834

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

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

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Pin bump 8cb8fb64d -> ddd415f4a, one merged fork commit:

fork sha what
ddd415f4a #419 adds ggml-hrx/tools/check_stale_expectations.py (+232 with its CMake rows) — a device-free check of the recorded-stale expectation table, which is what makes #416/#417's ratchet checkable without a GPU
 registry/architectures.json | 2 +-   "llama.cpp (hrx)": 8cb8fb64d… -> ddd415f4a…
 third_party/llama.cpp       | 2 +-   the gitlink

Plain linear bump: 8cb8fb64d is an ancestor of ddd415f4a, so nothing unexpected rides along. Regenerated registry (counts unchanged, hrx 350, npu 9), --check / --check-pins / copyright --check clean.

Note on timing rather than content: main's pin had already moved past this lane's last bump (#2806 carried a1f525117; another lane's work took main to 8cb8fb64d). Bumps are cheap and now auto-gated, so this just catches up — but it is worth saying that three lanes bumped the same submodule within a couple of hours, which is the churn the merge loop sees as unrelated third_party/llama.cpp conflicts.

hw-gate should start by itself (engine#2759); if it does not, that is a finding.

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

Copy link
Copy Markdown
Collaborator Author

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

hw-gate started by itself again (no label, no dispatch) — third auto-gated pin bump, so engine#2759's fix keeps holding. Correcting my own body's cliffhanger: when I wrote it the run had not appeared yet, and it is queued on this branch now; my first grep simply raced the registration.

One thing worth flagging for the merge loop, not for this PR: three lanes bumped third_party/llama.cpp within about two hours (#2801, this one's predecessor #2806 which carried a1f525117, and whatever took main to 8cb8fb64d). Each bump is a one-line diff and now a 40-minute gate, and they collide on the same file for no logical reason — a single bump carrying all merged fork commits would have been one gate instead of three.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 2834

Fifth pin bump today, table present, one commit — 8cb8fb64d → ddd415f4a, #419 adding ggml-hrx/…. Same review surface as the previous four.

Two asks:

  1. carry the caveat of whatever Bump HRX: llama.cpp ad18320a2955 + hrx-system 98d05d94a9f9 #419 fixes — the last pin bump had to carry MoE streaming: traces, cache policies, the expert cache, the three-way split, the sweet spot per model #113's "kernel-time only, fully overlapped in situ" qualification, because a bare "1.70×" in a pin description will travel as an end-to-end claim. If #419 is a correctness fix (the truncated tail suggests a table/check change), say what lands broken if this pin is not taken, which is the mirror-image sentence and the one a bump reader actually needs;
  2. check.sh at this head — fifth bump, and the engine has now been built against six kernel trees today; if the id table was validated at one of them, say which. Silence here is the gap that let ONNX backend: 1bit serve --device onnx runs ONNX Runtime GenAI models (ryzenai-server) #100 through four merges.

And a note for the merge loop: five pin bumps in one evening is a cadence problem, not a defect — but each one re-pins a curated default (the dispatcher's tile choice among them), and tonight's #112 work showed that default can be 23 % off at one shape with no test to say so. A pin cadence this high is the strongest argument for the check.sh job that gpu-kernels now has on a hosted runner — it runs on every PR that touches tools/** or addons/hip-hrx/**, which is every pin.

@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 -- verified by API rather than by reading the body, and it moves both places the pin lives

$ compare/8cb8fb64d...ddd415f4a   status=ahead  ahead=1  behind=0  merge_base=8cb8fb64d
  ddd415f4a  hrx: check the recorded-stale expectation table without a device (engine#2774) (#419)
  files: ggml/src/ggml-hrx/tools/check_stale_expectations.py, tests/CMakeLists.txt

One commit, fast-forward, no divergence, and the two files are exactly the pair #419 added — nothing riding along (#2692 is the reason I check this first on every pin).

Both places the pin lives are moved, which is the second thing a pin bump gets wrong:

git grep 8cb8fb64d p2834   -> no hits anywhere      (the old sha is gone from the tree, not just from the gitlink)
git grep ddd415f4a p2834   -> registry/architectures.json:1

and tools/check_pins.py does gate this: for every submodule whose gitlink differs it asks the compare API, so the check that catches a silent pin move exists rather than being this review.

What this pin does and does not do for #2774, since the title points at it: it makes the recorded-stale table checkable without a device (ROTTED when a GGML_HRX_KERNEL_REF names a recorded kernel, NOT EXPORTED when no corpus manifest defines it, run as test-hrx-stale-expectations inside if (TARGET ggml-hrx)). It does not answer the other half of #2774 — the 8 registered-but-not-selected names, which the harness itself calls "a question, not a suppression": a matcher guard that is wrong for that shape, or an expectation that is over-specific. That still needs the device run, so #2774 should not close on this pin.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 8d523f4: READY — the pin checks out. But I have a correction to make about what this pin buys, because I asserted something on #419 that is false, and this is the PR that turns the assertion into a shipped one.

The pin

  • One commit, forward, and the one claimed: ddd415f4a2ab634fe8d23a5e8ac26591686b315e's parent is 8cb8fb64d3… — the previous pin — and the commit is #419's merge. Chain 0cc30730a → a1f525117 → 8cb8fb64d → ddd415f4a, nothing skipped.
  • Both files carry the full id, equal to the object id.
  • Gate green at the new sha: rc=0, FINGERPRINT af73a19b122857bb, 326 .loom, 84 narrowing / 22 accumulators / 11 guards, none new, none stale — unchanged, and predicted: #419 adds a python tool and a tests/CMakeLists.txt row, not kernel-corpus.

The correction: "registered in ctest" does not mean "runs"

On #419 I wrote "and that tests/CMakeLists.txt registers it, so CI runs it." I checked that tonight and it is not true:

$ gh run list -R 1bit-MONSTER/llama.cpp --branch hrx-vulkan-patched     → (empty)
$ gh run list -R 1bit-MONSTER/llama.cpp --limit 6                        → last success 2026-10-08 on master
$ grep -rl LLAMA_BUILD_TESTS <engine>/.github/workflows/                 → (none)

The fork's CI has never run on the branch these PRs target, and the engine's CI does not build the fork's tests. So check_stale_expectations — and every other row in that tests/CMakeLists.txt — runs only when a person runs ctest in a fork checkout. The registration is necessary and not sufficient, which is the same two-levels-up version of gpu-kernels #111's runners = 0: there the workflow existed and no runner did; here the test row exists and no job does.

That does not make the tool worthless — it answered engine#2774's question in one second, out of a device, and it caught an error of mine the moment I ran it by hand. But this pin should not be read as "the recorded-stale table is now gated", and I would rather retract the sentence than let it ride into a manifest.

Where it would actually be gated, and it is cheap

The engine checkout contains the toolkit: third_party/llama.cpp is a submodule with the table in it, so the check belongs in the engine's ctest, which does run:

add_test(NAME hrx_stale_expectations
         COMMAND python3 ${CMAKE_SOURCE_DIR}/third_party/llama.cpp/ggml/src/ggml-hrx/tools/check_stale_expectations.py
                 --check --root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp)
set_tests_properties(hrx_stale_expectations PROPERTIES SKIP_RETURN_CODE 77)   # only if the submodule is absent

Pure python, no device, one second, and it runs on every engine PR — including every pin bump, which is exactly when a table row can rot. If that lands, the fork-side registration becomes harmless duplication rather than the only, unexecuted, copy.

What I checked and did not

  • Checked: the object's parent and message; the full id in both pin files against git rev-parse; the gate at the new sha with a correctly shaped root; that #419 touches no corpus file (hence the unchanged fingerprint); and the CI question three ways — branch-specific run list, fork-wide run list, and engine workflows for LLAMA_BUILD_TESTS.
  • Not checked: whether the two 11-03 fork runs on 1bit/i841-cache-bytes and 1bit/i674-split-guard are queued indefinitely or finished without a conclusion — the lists I pulled show no success for either, but that is a status question, not a "does CI run here" question, and the branch-specific query is what settles the latter.

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

Verified the claim this time, and unlike the last pin bump it is exact: the range is one commit, the sha moves in both places, and the content is the tool that was reviewed.

$ git log --oneline 8cb8fb64d..ddd415f4a          # in 1bit-MONSTER/llama.cpp
ddd415f4 hrx: check the recorded-stale expectation table without a device (engine#2774) (#419)

$ git diff --name-only 8cb8fb64d ddd415f4a
ggml/src/ggml-hrx/tools/check_stale_expectations.py
tests/CMakeLists.txt
-Subproject commit 8cb8fb64d38200a3aab82c43915df147a1018e72
+Subproject commit ddd415f4a2ab634fe8d23a5e8ac26591686b315e
-  "llama.cpp (hrx)": "8cb8fb64d38200a3aab82c43915df147a1018e72"
+  "llama.cpp (hrx)": "ddd415f4a2ab634fe8d23a5e8ac26591686b315e"

8cb8fb64d… is the sha main carries today (checked, not assumed), the gitlink and the registry entry move together to the same full sha — the wrong-sha pairing this kind of diff gets wrong when the two are edited separately — and the fork range is exactly the one commit the body names.

The content is llama.cpp#419, which I reviewed: a device-free check of the recorded-stale expectation table, so nothing about this pin needs hw-gate for the tool's own sake (the pin machinery will run it anyway, and "if it does not, that is a finding" is the right sentence to leave in the body).

The observation worth keeping

three lanes bumped the same submodule within a couple of hours, which is the churn the merge loop sees as unrelated third_party/llama.cpp conflicts

That is the actual cost of a shared gitlink: not the bump, but that every bump re-conflicts every other in-flight bump on a line that cannot be merged — and the merge loop then spends a build slot on a conflict nobody chose. Worth one line on the board rather than in a PR body: a lane that is about to bump should check gh pr list --search "third_party/llama.cpp" first, exactly as the "search for an existing fix" rule asks for a red main.

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

Pin verified at the pin, and this is the one PR that moves it forward rather than duplicating an old bump.

$ git -C third_party/llama.cpp rev-parse --short HEAD          -> ddd415f4a   (submodule updated to the pinned sha)
$ python3 tools/registry_build.py --check
  registry/architectures.json matches the pinned sources        rc=0
$ git log --oneline ddd415f4a
  ddd415f4a hrx: check the recorded-stale expectation table without a device (engine#2774) (#419)
  8cb8fb64d hrx: decline the decode-split FA claim … (#418)
  a1f525117 test-hrx-ops: drop the superseded 'nothing registers these' paragraph (#417)

Main is already at 8cb8fb64d (#2821 merged), so this is one commit forward, not a revert of anything: I checked every open engine PR the way that decides it — the branch's own diff from its merge-base — and #2834 is the only one that changes the gitlink.

The commit it brings in is checkable here, so I checked it

ggml/src/ggml-hrx/tools/check_stale_expectations.py (+223) is a static answer to "is kRecordedStaleExpectations still true" — no kernel, no device, no ticket:

$ python3 …/check_stale_expectations.py --self-test
ok   a recorded kernel no manifest defines is NOT EXPORTED
ok   a registration under another corpus still counts as registered
ok   a missing harness file cannot tell rather than passing          <- the fail-closed arm
self-test ok

$ python3 …/check_stale_expectations.py --check --root .
stale-expectations: 31 recorded, every one exported by a corpus and selected by no matcher      rc=0

31 entries verified statically. That is the first time this table can be checked without a device run and a 45-minute hold, which is what engine#2774 has been asking for — and the "cannot tell rather than passing" arm is the right default for a ratchet whose whole job is to stop a red suite from being read as noise.

Notes, neither blocking

  1. Stale base, sixth PR tonight: against today's main the --stat also shows docs/npu.md (-36) being removed, which is #2824 having merged after this branch's base. Zero conflicts; a rebase makes the diff two lines.
  2. counts.hrx staying 350 is right — #419 adds a tool and a test registration, not an architecture — and the registry line is regenerated rather than hand-edited, which --check proves.

Everything I can test without a device passes; the only thing the bump could still be hiding is a HIP-side build, and #419 touches tests/CMakeLists.txt and a Python tool, not kernel code.

@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: ddd415f4a = "hrx: check the recorded-stale expectation table without a device" = llama.cpp #419, merged — the checker I reviewed an hour ago, whose asks were "print the count as the exit condition" and "a missing tree is a SKIP with a reason, not a pass".

This is a pin bump that changes what the engine's CI can catch, which is worth stating explicitly because the fork commit is a tool rather than a kernel: the engine now carries ggml-hrx/tools/check_stale_expectations.py (+232 with its CMake rows), so the table that guards 179 of 284 device cases acquires a device-free check on the engine side too. A reader of the pin-bump diff sees one gitlink line; the consequence is a new check in every CI run, and that belongs in the body.

Two things:

  1. say whether the engine's CI actually runs it — a tool that arrives with CMake rows and is not wired into a ctest/add_test row is a tool that will not run. If the CMake rows are add_test, say so; if they are only add_executable, the pin brings a tool nobody calls (the exact gap engine#2769 closed for the fold, one repo over);
  2. note the two failure classes if the checker exits nonzero on both — ROTTED (a real mis-selection is being suppressed) and NOT EXPORTED (the corpus moved on) are different, and if this checker gates CI, a corpus regeneration could red the engine's build for a reason that is not a defect. One clause on which class fails the run is what a reader needs to interpret a red row.

Not blocking: pointer verified, and a device-free check arriving via a pin is the cheapest kind of coverage this repo can acquire.

@bong-water-water-bong
bong-water-water-bong merged commit c085be1 into main Nov 17, 2026
13 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-856/2704-pin-5 branch November 17, 2026 03:32
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2704 - Partially compliant

Compliant requirements:

  • The PR updates the llama.cpp pin to ddd415f4a, which includes the necessary changes to implement the properties-level accept query and integrate it with device_supports_op.
  • The registry is updated to reflect the new commit hash.

Non-compliant requirements:

  • The PR does not include the actual implementation of dispatch_accepts or the updated device_supports_op logic, nor does it add the corresponding tests in tests/hrx-backend-test.cpp.

Requires further human verification:

  • The actual correctness of the new dispatch_accepts logic and its integration with device_supports_op needs to be verified through manual inspection or testing.
  • The removal of hand-written declines in device_supports_op must be confirmed to be correctly implemented in the updated llama.cpp code.
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Outdated Commit Hash

The commit hash in registry/architectures.json has been updated to reflect the new llama.cpp pin, but the actual implementation of the properties-level accept query and integration with device_supports_op is not included in this PR. This means that the core functionality described in the ticket is not yet implemented, and the PR only updates the pin without addressing the underlying issue.

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

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