Skip to content

pins: llama.cpp 34d62d6aa -> 53ab4140 (engine#3085, carrying #461 and #462) - #3124

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-npurt/3085-bump-pin
Nov 21, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-npurt/3085-bump-pin

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Refs #3085 — the pin #461 needs, cut after #3110 because the fork head moved again in between.

Why the pin, not the rows. #461 (merged into the fork at 03:06:13Z, e8107f968) is the fix for the four FA rows: past the 2944 split cap the row should pin the cap, not which fallback the tree has. Engine main pins 34d62d6aa (#3110, #460), and that commit does not carry it — read from the API, not from dates:

compare e8107f96...34d62d6aa    status=behind  ahead_by=0  behind_by=1
commits after 34d62d6aa:
  e8107f968e  test-hrx-ops: past the split cap the row pins the CAP, not which fallback (engine#3085) (#461)
  53ab414062  hrx: the multi-stream flash-attention matcher declines V head sizes its kernel refuses (fork #450 review) (#462)

What this PR is. Two lines, exactly as #3110 was:

 third_party/llama.cpp       | 2 +-
 registry/architectures.json | 2 +-

registry/architectures.json regenerated by tools/registry_build.py (not hand-edited): hrx 350, npu 9, architectures 350, mapped 350, and the only content change is the recorded pin.

Checks, on this tree:

$ python3 tools/registry_build.py --check
registry/architectures.json matches the pinned sources                      rc=0
$ python3 tools/registry_build.py --check-pins
registry/architectures.json records the committed pins                      rc=0
$ python3 tools/copyright.py --check                                        rc=0

$ python3 tools/ci/fa_split_expectation_check.py --check --root third_party/llama.cpp
fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard   rc=0
$ grep -n kDecodeSplitMaxKeyValueTokenCapacity …/dispatch-flash-attention.cpp
65:static constexpr int64_t kDecodeSplitMaxKeyValueTokenCapacity = 2944;

So the 3008 row's premise still holds at the new pin ("the smallest 64-token multiple past the cap"), which is the thing a bump could silently break.

#462 rides along, so the pre-check was re-run at the new sha rather than reused. It landed at 03:32:07Z, four minutes after the pre-check on e8107f96 was written on the issue. It touches dispatch-flash-attention-streams.cpp (+16/−4) and tests/test-hrx-fa-streams.cpp — a different matcher file from the dispatch-flash-attention.cpp that holds the cap and the split dispatch — and it narrows a matcher, so it should not take the 3008 shape. That is an inference from two file paths, and I have not proven it on a device.

What this does not claim. No device run: whether the four rows now pass needs test-hrx-ops in an add-on tree under gpu-hold, and that verification belongs with #3085's own measurement (cl-npuperf's npuperf-461-verify). What is measured here is that the pin, the registry and the expectation JOIN are consistent at 53ab4140.

Carries two commits, in this order:

  e8107f968  test-hrx-ops: past the split cap the row pins the CAP, not which fallback the tree has (engine#3085) (#461)
  53ab41406  hrx: the multi-stream flash-attention matcher declines V head sizes its kernel refuses (fork #450 review) (#462)

#461 is the engine#3085 fix; #462 landed on the branch four minutes before this bump was cut, so it
rides along (dispatch-flash-attention-streams.cpp +16/-4 and its fork test). The ancestry was read from
the API, not from dates: compare e8107f96...34d62d6aa is status=behind ahead_by=0 behind_by=1, i.e. the
old pin does not contain #461.

registry/architectures.json regenerated by tools/registry_build.py (350 architectures, hrx 350, npu 9);
--check, --check-pins and copyright --check pass on the staged tree. tools/ci/fa_split_expectation_check.py
--check --root third_party/llama.cpp is rc 0 at the new pin, and kDecodeSplitMaxKeyValueTokenCapacity is
still 2944, so the 3008 row's premise is unchanged. hw-gate starts by itself for a pin-moving PR (engine#2759).

Co-authored-by: bong-water-water-bong <[email protected]>
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

ready for review at 1dc4bdd

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Checked the way the last three bumps were checked, from the trees:

34d62d6aa..53ab4140 = 2 fork commits, in the order the message gives
  e8107f968  test-hrx-ops: past the split cap the row pins the CAP … (engine#3085) (#461)
  53ab41406  hrx: the multi-stream flash-attention matcher declines V head sizes its kernel refuses (#462)
engine diff   third_party/llama.cpp gitlink + registry/architectures.json sha line only
loomc pair    @34d62d6aa and @53ab4140, both × hrx-system 7f423692 = 2 of 95 (loomc_amdgpu_emit_options_t,
              loomc_amdgpu_runtime_global_flags_t) -- the same two the pin guards, so no #2916-class regression

This is the bump #3085 has been waiting for: its fork half (#461) is in it, and I verified before this PR existed that e8107f968 was not an ancestor of 34d62d6aa. Its engine half (#3102) has been on main since 02:18Z, so the row's two halves meet at this pin.

One consequence to keep straight when it merges: e8107f968 changes tests/test-hrx-ops.cpp again (10 lines — the row now pins the cap rather than the fallback), so the suite counts from the 84ab5dae8 run shift a second time. That run stays the right measurement for #2774's own subject (missing-kernel aborts); it is not a pin-current row count.

@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 1dc4bdda1: READY. Every pin fact a bump has to get right checks out; the only thing to know before merging is that this branch's page shows it deleting a test main has, and the merge does not.

The pin, verified here (not read off the body)

$ gh api repos/1bit-MONSTER/llama.cpp/compare/34d62d6aa...53ab41406   → ahead ahead_by=2 behind_by=0
    e8107f968e  test-hrx-ops: past the split cap the row pins the CAP … (#461)
    53ab414062  hrx: the multi-stream flash-attention matcher declines V head sizes … (#462)
$ registry sources["llama.cpp (hrx)"] = 53ab4140621b4ab32d1dea462a18ea2c89682a68   == gitlink (40 hex)
$ python3 tools/check_pins.py af73bd4a9      → ok  third_party/llama.cpp: 34d62d6aa -> 53ab41406 is ahead
$ python3 tools/registry_build.py --check-pins → registry/architectures.json records the committed pins   rc 0
$ python3 tools/ci/census_counters_check.py --check → both tree-derived counters match the registry
$ python3 tools/ci/config_pin_check.py --check      → 4 sha pin(s) are 40 lowercase hex characters

registry_content (which reads the fork and would catch a stale class table) skips 77 here because my worktree has no submodule checkout — so I substituted the fact it would test, from the API: the two commits touch only tests/test-hrx-ops.cpp, ggml/.../dispatch-flash-attention-streams.cpp and tests/test-hrx-fa-streams.cpp. Nothing under gguf_architectures.hrx or any registration file, so the registry's class tables cannot change from these two commits and the sources line is the only line that had to move. That is the #3101 distinction, and it holds here.

Before merging: rebase, and it is a page problem, not a revert

The branch's base is af73bd4a9 (#3115's merge), i.e. before #3113 landed at 2bf936239, so a two-dot diff shows it deleting 123 lines of tests/git_shallow_instruments_test.sh plus its add_test row. What a merge applies is different:

$ git merge-tree --write-tree origin/main 1dc4bdda1     → 18062dd3c
  tests/git_shallow_instruments_test.sh   PRESENT
  CMakeLists.txt                          git_shallow_instruments row: 1

So merging reverts nothing. A rebase is still worth it here for a second reason beyond the page: this is a pin bump, and the branch's own gate rows ran against the pre-#3113 tree, so the diffstat a reviewer reads is 130 lines of deletion that will not happen.

What I did not verify

The device half — whether the four FA rows of #3085 are actually green at 53ab41406 — needs a bench build and a GPU ticket, and it is cl-npuperf's measurement, not mine. This verdict is about the pin being forward, consistent with the registry, and mergable without losing main's work; the Refs #3085 (rather than Fixes) is the right call until that row result is pasted in a thread.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 3124

Direction verified: compare/34d62d6aa...53ab4140 → ahead 2, behind 0, carrying

#461  test-hrx-ops: past the split cap the row pins the CAP, not which fallback the tree has (engine#3085)
#462  hrx: the multi-stream flash-attention matcher declines …

Both are the follow-ups I verdicted an hour ago, and both are test-or-matcher changes — so this bump has the best risk profile of the night: no new kernel, no new emission path, no dispatch behaviour change beyond a matcher that stops admitting a head size its kernel never implemented (#462).

And #462 riding this bump gives the three new issues something to measure against. #3120/#3122/#3123 were all filed at 03:41–03:42Z with 298 passed, 99 failed, 29 aborts measured at 84ab5dae8 — i.e. before both this bump and #3110's chunker. So after this lands, the suite run has two merged commits of dispatch/matcher change between its numbers and the tree, and a re-run is the cheapest attribution anyone will get this week.

Three asks:

  1. prove it builds, and note that Bump Lemonade: 1bit-MONSTER/lemonade c5ba797132a4 #462 touches the matcher, so a compile failure would land in dispatch again — hrx_build is the check (it was SUCCESS on pins: llama.cpp 5abb405c7752 -> 84ab5dae8, which carries the per-name dispatch count (engine#3035) #3101 and pins: llama.cpp 84ab5dae8 -> 34d62d6aa #3110);
  2. name what should NOT move — Move the llama.cpp pin to 00f2a68de: qwen3moe q8 next-RMSNorm writes declared (#449) #461 and Bump Lemonade: 1bit-MONSTER/lemonade c5ba797132a4 #462 are both declining more, not serving differently, so hrx-ops-test's pass count should be unchanged and the abort count may drop as rows stop being sent to a kernel that does not implement them. That prediction written down makes the next suite run readable;
  3. and say whether hrx-ops-test's expectation table needs the same treatment — hrx-ops-test: 14 rows expect a loom_libs kernel and are served by the add-on's hip kernel (expectation table not add-on-aware) #3120's own diagnosis is "the expectation table is not add-on-aware: 14 rows expect a loom_libs: kernel and are served by a hip:k_… one". If Move the llama.cpp pin to 00f2a68de: qwen3moe q8 next-RMSNorm writes declared (#449) #461 fixes the same class for the split rows, the 14 in hrx-ops-test: 14 rows expect a loom_libs kernel and are served by the add-on's hip kernel (expectation table not add-on-aware) #3120 are the next instance of it, and naming that in the bump body connects two lanes' work that will otherwise be re-derived.

On the shape: two files, +2/−2, two commits ahead, both reviewed. The ninth pin bump of the night and the first one that is entirely test-and-matcher — which is what a pin bump should look like when the tree is healthy.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 1dc4bdd: READY — the pin moves to the commit that carries fork #462, and the row follows it

$ git ls-tree HEAD third_party/llama.cpp          → 53ab4140621b4ab32d1dea462a18ea2c89682a68
$ registry/architectures.json["llama.cpp (hrx)"]  → 53ab4140621b4ab32d1dea462a18ea2c89682a68   (agree)
$ gh api …/commits/53ab41406
  53ab41406  2026-11-21T03:32:07Z  hrx: the multi-stream flash-attention matcher declines V head sizes its kernel
                                    refuses (fork #450 review) (#462)
$ python3 tests/check_pins_test.py                → OK
$ git diff <merge-base> HEAD --stat               → registry/architectures.json | 2 +-
                                                    third_party/llama.cpp  | 2 +-

A forward move to the commit that carries the matcher change whose own review is the reason it exists (the V head-size guard from #450), and — same as the last two bumps — the row is the only other file. MERGEABLE.

Merge note: #462 is the change that makes the multi-stream FA matcher decline V head sizes its kernel cannot handle. After this lands, a fa_decode row that turns red on a shape rather than on a fault is the matcher doing its job — worth saying, because the previous behaviour was to offer the kernel and fail further down.

@bong-water-water-bong
bong-water-water-bong merged commit 5682059 into main Nov 21, 2026
13 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-npurt/3085-bump-pin branch November 21, 2026 03: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 at 1dc4bdd: NOT READY

The pin this PR moves to is already main's, so this change has nothing left to do:

origin/main                      71360aad
main's third_party/llama.cpp     53ab4140621b        ← exactly this PR's target
git diff origin/main <this head> -- third_party/llama.cpp   → (no output)

The rest of the diff against main is behind, not ahead: CMakeLists.txt, tests/git_shallow_instruments_test.sh, tools/hyperloom/* are files main gained after this branch was cut. So this is a stale pin bump opened before #3110 landed, and merging it would do nothing except risk re-landing an older tree's content for those unrelated files.

Please close it rather than rebase it — the bump it wanted is #3110's, which is already in main. If a further move is wanted, it has to start from 53ab4140.

For the record, what the PR says it carries is genuinely in main's pin now, and I verified the ancestry rather than reading the title:

53ab41406  hrx: the multi-stream flash-attention matcher declines V head sizes it cannot serve
e8107f968  test-hrx-ops: past the split cap the row pins the CAP, not which fallback
34d62d6aa  hrx: the 2..8-token kquant rows serve a wider batch in parts   ← is an ANCESTOR of 53ab41406

That last line matters for the objection I left on #460/#3110: the chunking change is in main's pin now, so the missing arm is exposure in the shipped tree, not a future one.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3085 - Partially compliant

Compliant requirements:

  • The PR updates the llama.cpp pin to 53ab4140621b4ab32d1dea462a18ea2c89682a68 which includes the fix for the kernel matching behavior
  • The registry/architectures.json is updated to reflect the new pin

Non-compliant requirements:

  • The PR does not explicitly verify that the shape used by fa_decode_split.1.3008 is correctly placed past the split cap

Requires further human verification:

  • The specific shape adjustment for fa_decode_split.1.3008 needs to be confirmed manually to ensure it's placed correctly past the split cap

450 - Partially compliant

Compliant requirements:

  • The PR updates the llama.cpp pin which includes changes related to the symmetric-i4 consumer route

Non-compliant requirements:

  • The PR does not include performance measurements or a decision on whether to keep the route behind a switch

Requires further human verification:

  • Performance measurements for the symmetric-i4 consumer route need to be conducted on AMD hardware
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Pin Update Verification

The registry/architectures.json file has been updated to reflect the new llama.cpp commit. While this is necessary for the fix, it's important to verify that this update correctly aligns with the intended kernel matching behavior and that all related tests pass.

"llama.cpp (hrx)": "53ab4140621b4ab32d1dea462a18ea2c89682a68"

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