Skip to content

pins: llama.cpp ddd415f4a -> c08675948 (engine#2774) - #2849

Merged
bong-water-water-bong merged 1 commit into
mainfrom
os3-pin-c0867
Nov 17, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
os3-pin-c0867

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Pin bump ddd415f4a -> c08675948, the follow-up promised on engine#2774 once llama.cpp#420 merged.

Verified by API, not by reading the body (#2692 is why this is the first check on every pin):

compare/ddd415f4a...c08675948  status=ahead  ahead=1  behind=0  merge_base=ddd415f4a
file: tests/hrx-ops-test.cpp

What the commit does: four names the suite demands and no matcher can select — mul_mat_id_vector_weighted_wave32/wave64_publish_q8, mul_mat_vector_bias_residual_f32_f32 (three sites), mul_mat_vector_q6_f32_f32 — are now in kRecordedStaleExpectations, so those cases stop ending the suite in missing expected kernel and continue into their CPU-reference comparison.

Why the expectation was the wrong half, from the same measurement on the pin: of the 39 mul_mat kernel names the suite demands, 27 are named by no GGML_HRX_KERNEL_REF in any corpus (loom_libs, qwen3_moe, hrx all checked) and all 27 are exported by a corpus manifest; dispatch answers those shapes with the format-generic ggml_mul_mat_f32_f32_wmma, which is registered and selected by an any-format matcher (six sites in dispatch-mul-mat.cpp's registration file). Nothing needed wiring — the per-format names were never reachable.

Held to both halves by the check #419 added:

$ python3 ggml/src/ggml-hrx/tools/check_stale_expectations.py --check --root third_party/llama.cpp
stale-expectations: 35 recorded, every one exported by a corpus and selected by no matcher      rc 0

so a matcher that ever names one reports ROTTED, and a manifest that drops one reports NOT EXPORTED. That is the whole point of pinning this commit rather than only the table's contents: the entries cannot rot silently between bumps.

Both places the pin lives are moved (registry/architectures.json and the gitlink), and git grep ddd415f4a on the branch is empty.

One merged fork commit, checked by the compare API rather than by reading the body:
`status=ahead ahead=1 behind=0 merge_base=ddd415f4a`, one file, `tests/hrx-ops-test.cpp`.

c08675948 is llama.cpp#420: the four remaining names the harness demands and no matcher can
select -- `mul_mat_id_vector_weighted_wave32/wave64_publish_q8`,
`mul_mat_vector_bias_residual_f32_f32`, `mul_mat_vector_q6_f32_f32` -- are now in
`kRecordedStaleExpectations`, so those cases stop ending the suite in "missing expected kernel"
and continue into their CPU-reference comparison.

The decision behind it, from the same measurement: of the 39 mul_mat kernel names the suite
demands, 27 are named by no GGML_HRX_KERNEL_REF in any corpus and all 27 are exported by a
manifest; dispatch answers those shapes with the format-generic ggml_mul_mat_f32_f32_wmma,
which IS registered (any-format matcher, six sites). So the expectation was the stale half, not
the registration, and nothing needed wiring.

Held to both halves by the check #419 added: 35 recorded, every one exported by a corpus and
selected by no matcher, rc 0.
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Subproject Pin Update

The PR updates the llama.cpp submodule to a new commit. While this is a standard dependency update, it's important to verify that the new commit doesn't introduce any regressions or incompatibilities with the existing codebase, especially given the specific changes mentioned in the PR description related to kernel naming and expectations.

Subproject commit c08675948904aeb312ef9c448240483ff441abed
Architecture Source Update

The architecture registry file is updated to reflect the new commit hash for the llama.cpp submodule. This ensures that the registry accurately points to the correct version of the dependency, which is crucial for consistency and reproducibility.

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

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 5189f0a: READY — and this pin can be checked two ways instead of one, because the commit it carries is the one that adds table entries and the tool that audits them now exists at that same pin.

The pin

  • One commit, forward, and the one claimed: c08675948904aeb312ef9c448240483ff441abed's parent is ddd415f4a2… — the previous pin — and the commit is #420's merge. Both pin files carry exactly that full id.
  • The narrowing gate is green and unchanged:
FINGERPRINT af73a19b122857bb (326 .loom file(s))
rc=0

Expected rather than lucky: #420 edits tests/hrx-ops-test.cpp, not kernel-corpus, so a corpus-scoped ledger cannot move.

The second check, which this pin makes possible

#420's whole content is four more recorded-stale expectations, and llama.cpp#419's auditor is in the pinned tree — so the pin can be checked against its own claim, out of a device, in a second:

$ ggml/src/ggml-hrx/tools/check_stale_expectations.py --check --root <fork at this pin>
stale-expectations: 35 recorded, every one exported by a corpus and selected by no matcher     rc=0

35 = 31 + 4, which is exactly what the commit says it added, and every one passes both halves of the predicate the table rests on: exported by a corpus (so the case can legitimately run) and selected by no matcher (so recording it cannot hide a mis-selection). That is the strongest form this bump could have — the commit's own claim, verified by running the tool the same commit ships.

The carry-forward, unchanged and now more concrete

Nothing runs that auditor in CI. The fork's own ctest has never run on this branch and the engine's CI does not build the fork's tests (engine#2836), so the 35 entries are verified because I ran the checker, not because anything will. The wiring candidates are open: #2837 (the shell wrapper that execs the tool, no baseline entry) is the one I would land, #2840 is the larger sibling, and #2848's ctest row is the fork-side equivalent that skips until the tool is present.

Until one of those lands, a 36th entry could be added with nobody's tool disagreeing — which is why the count moving from 31 to 35 in one commit is worth noting for the next pin: the number is a claim, and the claim is only checked if the checker runs.

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 narrowing gate at the new sha with a correctly shaped root, and the recorded-stale auditor run at this pin — 35 recorded, none ROTTED, none NOT EXPORTED, rc=0.
  • Not checked: whether the four new entries are the right four — the auditor answers "is each recorded name unselectable", not "is the set complete", and the latter needs the device run that #2825's ratchet would eventually gate. That division is deliberate in the tool and worth stating so nobody reads rc=0 as "the table covers everything".

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

Forward pin, verified at the pin, and its new entries are checked by the tool the last bump brought in.

$ git ls-tree pr2849 third_party/llama.cpp            -> c08675948904aeb312ef9c448240483ff441abed
$ git fetch --depth 6 …/llama.cpp c08675948 && git log --oneline -3 FETCH_HEAD
  c08675948 hrx: record the four remaining unselectable expectations (engine#2774) (#420)
  ddd415f4a hrx: check the recorded-stale expectation table without a device (engine#2774) (#419)
  8cb8fb64d hrx: decline the decode-split FA claim … (#418)
$ git merge-base --is-ancestor ddd415f4a c08675948   -> FORWARD (main's pin is an ancestor)
$ git submodule update --init third_party/llama.cpp  -> c08675948
$ python3 tools/registry_build.py --check             -> matches the pinned sources   rc=0

The commit is one file and eleven lines (tests/hrx-ops-test.cpp, recording four more unselectable expectations), and the device-free checker that #419 added now reports them as consistent:

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

31 → 35 entries, every one still unselectable and still exported — so the bump carries a checked table rather than a claim about one. That is the loop closing on itself: #2834 landed the checker, this pin bump uses it.

One measurement note for the next reader

Ancestry needs a real fetch: git fetch --depth 1 <sha> gives a commit with no parents, so merge-base --is-ancestor main's-pin new-pin answers "not an ancestor" for a perfectly forward bump. Depth 6 was enough here; the git log --oneline FETCH_HEAD above is what actually shows the chain (c08675948 → ddd415f4a → 8cb8fb64d).

counts.hrx staying at 350 is right (a test-expectation change adds no architecture), and the branch's --stat against main still shows other lanes' files because its base predates them — merge-tree keeps main's lines, and a rebase makes the diff the two pin lines.

Build was still pending when I composed this; the pin, the registry and the table are all verified independently of it.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

A measurement for this bump that the diff cannot show, since it changes the row that already reads this fork's own checker.

c08675948 is one commit over ddd415f4a and it touches exactly one file, tests/hrx-ops-test.cpp — the harness table that ggml/src/ggml-hrx/tools/check_stale_expectations.py reads. So the only question worth asking is whether the table it plants turns that check red (engine#2840 puts it under ctest). Measured, both pins, on a codeload checkout of the fork with only the files the checker reads:

ddd415f4a  (current pin)   stale-expectations: 31 recorded, every one exported by a corpus and selected by no matcher   rc 0
c08675948  (this bump)     stale-expectations: 35 recorded, every one exported by a corpus and selected by no matcher   rc 0

Same through tools/ci/stale_expectations_check.py --root <engine tree> (77 not triggered, rc 0 at both). So the bump adds four recorded-stale entries and no finding: #2840's row stays green across this merge, in either order. registry/architectures.json carries the pin in the same commit, which is the other thing the last bump (c085be1a) had to get right.

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

One commit, verified in the fork rather than taken from the body, and the sha moves in both places.

$ git log --oneline ddd415f4a..c08675948          # in 1bit-MONSTER/llama.cpp
c0867594 hrx: record the four remaining unselectable expectations (engine#2774) (#420)

$ git diff --name-only ddd415f4a c08675948
tests/hrx-ops-test.cpp                            # the recorded-stale table only

-  "llama.cpp (hrx)": "ddd415f4a2ab634fe8d23a5e8ac26591686b315e"
+  "llama.cpp (hrx)": "c08675948904aeb312ef9c448240483ff441abed"
-Subproject commit ddd415f4a2ab634fe8d23a5e8ac26591686b315e
+Subproject commit c08675948904aeb312ef9c448240483ff441abed

A single file inside the fork and a single submodule bump in the engine: nothing rides along, and the two shas are the same full hash rather than one of them truncated — the pairing this kind of diff gets wrong when the registry line and the gitlink are edited separately.

Worth noting what this one does to the neighbouring rows: the commit adds four recorded-stale expectations, so the hrx_stale_expectations row (#2840) will now have four more names to check the moment it goes live — and it stays live because #2840's ADDED_IN skip turns off at exactly this pin (ddd415f4a). The two PRs are complementary, not competing, and the order does not matter: whichever lands second starts reporting.

@bong-water-water-bong
bong-water-water-bong merged commit e238ebe into main Nov 17, 2026
14 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the os3-pin-c0867 branch November 17, 2026 14:58

@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: c08675948 = "hrx: record the four remaining unselectable expectations" = llama.cpp #420, merged — the PR I reviewed an hour ago, whose ask was "say what makes an exported kernel unselectable" and "put the answer in #2774".

This is the pin bump that closes a classification, not just a list — #420 established that four recorded expectations are exported by a corpus manifest and named by no GGML_HRX_KERNEL_REF, i.e. unselectable by construction, which is a third category beside "missing registration" and "stale expectation". Carrying it into the engine means the recorded-stale table on main now contains that distinction, so the next person reading a :8726-style abort knows which of three things it is.

Two things for the body, both about what the bump makes possible rather than what it contains:

  1. say whether the engine's own copy of the criterion moved with it — the classification depends on "exported by a manifest" and "named by any GGML_HRX_KERNEL_REF", and the engine has its own scanner arriving in #2848/#2825. If the pinned table and the engine-side checker disagree about the four names, the row would go red on the first run for a bookkeeping reason. One sentence saying they agree at this pin (or that the checker reads the same table) closes it;
  2. name the four counts: "four exported-but-unselectable names recorded, of 39 mul_mat names swept in both directions" — because the value of the pin is the exhaustiveness claim, and a reader of a one-line gitlink bump has no other way to see it.

Not blocking: pointer verified, and a pin that carries a classification rather than a fix is worth merging ahead of the fold/census PRs because it changes what every later stale-name question can be answered with.

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