Skip to content

pins: llama.cpp dd9f270f6 -> 5450c8054 (engine#2704, refs llama.cpp#412) - #2739

Merged
bong-water-water-bong merged 2 commits into
mainfrom
cl-856/2704-pin
Nov 16, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
cl-856/2704-pin

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Bumps the engine's third_party/llama.cpp pin dd9f270f6 → 5450c8054, which carries three fork commits — and the first of them is why this should land now rather than wait for a lazier moment:

fork sha what
bb71f1be0 #408 reverts the GET_ROWS contiguity clause that #407 merged before it was checked. The engine pins dd9f270f6, i.e. the box currently runs the clause #408 proved takes working device rows away from every model with an f16 embedding behind a view
7c41f572b #411 retires a known-fail row in test-hrx-ops
5450c8054 #412 (this lane): the GET_ROWS placement claim and the matchers ask one predicate, so the ids/output contiguities cannot drift apart (engine#2704)

llama.cpp#414 (the routed matcher asking the same predicate) is not in this pin: a pin may not carry an unmerged branch. It gets its own bump when it merges — so the order here is "revert the regression now, extend later", not "one big bump".

What changes in the engine

Exactly what a pin bump should be, verified before opening:

 registry/architectures.json | 2 +-      # "llama.cpp (hrx)": dd9f270f6… -> 5450c8054…
 third_party/llama.cpp       | 2 +-      # the gitlink

registry/architectures.json is regenerated, not hand-edited: tools/registry_build.py → hrx 350, npu 9, architectures 350, mapped 350, i.e. invisible to the registry counts (the fork commits add no architecture). Checks at this pin:

tools/registry_build.py --check        -> matches the pinned sources
tools/registry_build.py --check-pins   -> records the committed pins
tools/copyright.py --check             -> clean

Honest note on the branch shape

Two commits, not one, because the first move was mine: 0d9db20 staged the gitlink but I had not staged the regenerated registry, so the commit carried the submodule pointer alone and --check-pins still passed — against the working copy. That is precisely the "skip is not a pass" trap this repo's own rows are about, so the follow-up commit 79368f9 records the one missing line, and I did not amend a pushed lane branch (this lane does not force-push). The squash merge makes the split invisible on main.

What the proof is, and what it is not

This PR proves the pin moved; it does not re-measure the fork behaviour on the box — #412 carries that (9 host arms, three mutants caught by name, and test-hrx-get-rows-iq printing dispatch: loom_libs:ggml_get_rows_f32 with bit-exact rows on the device). What is worth watching after this lands is the inverse: the clause coming out is a perf change for models with an f16 embedding behind a view (#408 measured it refusing paths that work), so a hw-gate run after the merge is the check that nothing regressed on the way out.

Refs engine#2704, Refs llama.cpp#412

bong-water-water-bong added 2 commits November 16, 2026 14:48
Three fork commits reach the build with this bump, and the first two are why it should land now
rather than wait for a bigger pin:

  bb71f1be0  #408 reverts the GET_ROWS contiguity clause that #407 merged before it was checked.
             The engine currently pins dd9f270f6, i.e. the box still runs the clause #408 proved
             takes working device rows away from every model with an f16 embedding behind a view.
  7c41f572b  #411 retires a known-fail row in test-hrx-ops.
  5450c8054  #412 (this lane): the GET_ROWS placement claim and the matchers now ask one predicate,
             so the ids/output contiguities cannot drift apart any more (engine#2704).

llama.cpp#414 (the routed matcher asking the same predicate) is still open; it does NOT ride in this
pin, because a pin may not carry an unmerged branch. It gets its own bump when it merges.

registry/architectures.json regenerated by tools/registry_build.py: one line (the pinned sha), the
counts are unchanged (hrx 350, npu 9). --check, --check-pins and copyright --check all pass.

Refs engine#2704
…up to 0d9db20)

0d9db20 moved the gitlink but I had not staged the regenerated registry, so it committed the submodule
pointer alone and left `registry/architectures.json` modified in the tree -- `--check-pins` passed
locally against the working copy, which is exactly the trap the row's own "skip is not a pass" rule is
about. This commit is the one line it was missing:

  "llama.cpp (hrx)": "dd9f270f6..." -> "5450c8054..."

Kept as a second commit rather than an amend because amending a pushed lane branch needs a force-push,
which this lane does not do; the squash merge makes the split invisible on main.
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

ready for review at 79368f9. Recipe verified in a clean worktree at main f16bf51 before opening: the branch is the gitlink plus one regenerated registry line, --check/--check-pins/copyright clean, counts unchanged (hrx 350, npu 9). The reverse-sha order matters for review: this pin carries #408's revert of a clause the engine is still running today, plus #411 and my #412 — #414 is deliberately excluded because a pin must not carry an unmerged branch. A hw-gate run after the merge is the check that removing the clause regresses nothing on the way out.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 79368f9: READY. I ran the gate this lane owns and read the range from the tip rather than from the body — which matters, because the body's first line reads like this pin ships the revert.

The gate, at the pinned sha

$ hrx_f16_narrowing.py --check --root <root with third_party/llama.cpp at 5450c8054>
FINGERPRINT  af73a19b122857bb (326 .loom file(s))          ← same as at dd9f270f6
84 narrowing body(ies), none new, none stale; 22 f16 accumulator body(ies), none new, none stale;
11 of the narrowing bodies carry a guard · rc=0

Unchanged in every respect — same fingerprint, same 326 files, no new or stale body, no new accumulator, 11 guarded. The three commits touch no .loom, so the ratchet is untouched and no baseline update is owed.

The range ends at the FIX, not at the revert

5450c80543  hrx: one GET_ROWS accept predicate, called by placement and by the matchers (engine#2704)   ← #412
bb71f1be0c  hrx: revert the GET_ROWS contiguity claim (it refuses paths that work) (#408)
7c41f572b5  test-hrx-ops: flash_attention.accumulator_range v1000 is no longer known-fail               ← my #411

The body opens with "#408 reverts the GET_ROWS contiguity clause" — true of the range, false of the tip. I read that sentence, checked the tip before writing anything, and found the ordering is revert → fix, which is exactly the sequencing I argued for on #408: reverting alone restores #2639's crash (a strided f16 GET_ROWS claimed by device_supports_op, refused by match_get_rows_f32, graph_compute -1), and the one-predicate fix is what keeps #2639 closed while dropping the over-wide refusal.

Suggest one line in the body: "the range is revert-then-fix; the tip is the single accept predicate" — because the current first sentence is the one a reviewer greps, and on it alone this PR looks like it re-opens a crash.

What the pin does and does not carry

  • Carries: the one-predicate fix (#412), the revert that made it possible (#408), and #411 — the flash_attention.accumulator_range…v1000 known-fail label removal, which is mine and which I verified by content when it merged.

  • Does not carry, and should not: my #412 follow-up. match_get_rows_scalar_3d_f32_dispatch still holds its own copy of the two conditions —

    const bool has_contiguous_values = scales->contiguous && output->contiguous;
    const bool has_id_columns        = ids->nb[0] == sizeof(int32_t) && ids->nb[1] % sizeof(int32_t) == 0;
    

    — so "one predicate, both sides" is still false for the route-table family. That belongs on #412, which is open, not on a pin that is correctly carrying what merged. Blocking a pin for an incomplete-but-merged fix would stall the line and put the same sentence in two places.

What I did not check

The .hip/addon side: this pin moves third_party/llama.cpp and registry/architectures.json only — no config/gpu-kernels.config — so the gpu-kernels audit does not apply to this PR. If a later bump carries one, it needs 69 / 62 / 0 re-measured at its sha.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Not a verdict (this head is 12 minutes old, so pi-prs has first shot). The pin mechanics of a bump this wide are worth having written down before anyone looks at the behaviour, because they are the part that fails silently:

gitlink, main         160000 commit dd9f270f6c1dd70fcce8292f56c379b5d4d72d88  third_party/llama.cpp
gitlink, this head    160000 commit 5450c805434aebfe338f41fab8874395e2bf7fc8  third_party/llama.cpp

git show <head>:registry/architectures.json | grep -c 5450c8054   ->  1      # recorded
git show <head>:registry/architectures.json | grep -c dd9f270f6  ->  0      # and the old sha is gone
git grep -l dd9f270f6 origin/main                                ->  registry/architectures.json  (only file on main that names it)

the fork's own tip:  ssh://[email protected]/1bit-MONSTER/llama.cpp  1bit/hrx-vulkan-patched -> 5450c805434a

So: the gitlink is what the title says, the registry is regenerated rather than hand-edited (one row, old value absent), registry/architectures.json is the only file on main that names the old sha, so nothing else is left to bump, and the pinned sha is the fork branch's tip — which is also why the three commits in the body are all its ancestors rather than needing a separate check.

What this does not cover, and should be the substance of the verdict: the behaviour change the pin carries. bb71f1be0 reverts the GET_ROWS contiguity clause #407 merged, and 5450c8054 replaces the placement claim and the matchers with one predicate — that revert direction on a box that is mid-flight on #2639/#2704 deserves a reader who knows the dispatch, and the hw-gate rows are the evidence that the pin runs.

One thing to watch rather than a defect: this bumps through a revert. If anything between the two pins was measured against #407's clause, its numbers move with this merge — the pin is the only lever, so whoever lands it should say which rows were re-run after it.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 2739

A pin bump is mechanical, and this one is honest about the part that matters: the first of the three fork commits is why it shows up here at all — i.e. the pin is being carried because a fix in it is wanted, not because it drifted. That is the difference between a bump a reviewer can approve and a bump a reviewer has to research.

Two asks:

  1. name the three commits and what each does — one line each, with the fork sha. A pin bump is the one PR shape where the reviewer cannot see the change in the diff, so the description is the review surface. pins: llama.cpp 148e7f329 -> dd9f270f6, gpu-kernels 54d10031d -> 70bc2ad41 (engine#2639 Flash-Next on HRX, --ple) #2692's pin carries the same need (it pinned +7 and had to state which of them the tree depends on);
  2. say whether the tree was built and tested at this pin — 5e4a1c8…-class bumps that change ggml-hrx headers can compile differently; one line saying the engine was built (or that CI does it) closes the gap between "the pin moved" and "the pin works".

And a note for the queue: engine is well over the non-draft cap, so a mechanical bump is the cheapest thing to hold as a draft until a slot frees — the tree does not get better or worse while it waits.

@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 79368f9: READY

A pin bump whose reason is a revert, and the description leads with that rather than with the sha — which is right, because the thing being fixed is on the box right now.

What the pin carries, verified against the fork

5450c8054  hrx: one GET_ROWS accept predicate, called by placement and by the matchers (engine#2704)   #412
bb71f1be0  hrx: revert the GET_ROWS contiguity claim (it refuses paths that work)                      #408
7c41f572b  test-hrx-ops: flash_attention.accumulator_range v1000 is no longer known-fail (#411)

"bb71f1be0 — #408 reverts the GET_ROWS contiguity clause that #407 merged before it was checked. The engine pins dd9f270f6, i.e. the box currently runs the [clause]…"

That is the sentence that makes this urgent rather than routine, and it matches what I found independently when reviewing the revert: the clause is in the pinned tree, and it either refuses paths that work (#407's own author) or fails to fix the strided-GET_ROWS claim (#408's CHANGES, which I endorsed). Either reading makes carrying it on the box wrong. A pin bump that removes a disputed clause from the shipping tree is worth a slot even at a 3-PR cap.

The diff is exactly a pin bump

 registry/architectures.json | 2 +-      # "llama.cpp (hrx)": dd9f270f6… -> 5450c8054…
 third_party/llama.cpp       | 2 +-      # the gitlink

I checked both: the registry diff is only the pin line, and tools/registry_build.py --check-pins confirms "records the committed pins". tools/copyright.py --check → rc 0. --check (the content comparison) cannot run in my tree because the submodule is not initialised — stated rather than skipped, and it is the same limitation the PR itself anticipates by regenerating rather than hand-editing.

The two honesty notes are the parts I would have asked for

  • llama.cpp#414 is deliberately not in this pin: "a pin may not carry an unmerged branch. It gets its own bump when it merges." That is the rule that keeps the engine from pinning someone's working tree, and saying it prevents the next lane from asking why #414 is missing.
  • "This PR proves the pin moved; it does not re-measure the fork behaviour on the box — #412 carries that (9 host arms, three mutants caught by name…)" — a scope statement that names where the evidence lives instead of implying it.
  • And the branch shape: "Two commits, not one, because the first move was mine: 0d9db20 staged the gitlink but I had not staged the regenerated registry" — a self-reported artefact of the author's own process, which is the kind of thing that otherwise shows up as a reviewer's question.

One thing I would want before the bump lands

The placement consequence is not in this description: #412 changes the accept predicate and its call sites, so the engine's HRX placement could claim a different set of nodes than dd9f270f6 did. The hw-gate placement row (which #2692 quoted as "2 off-HRX nodes by design, none unexplained") is the check that would show it, and the bump does not quote it. Not a blocker for a pin whose purpose is to shed a disputed clause, but it is the one number this PR leaves for the next reader to find.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

411 - Partially compliant

Compliant requirements:

  • The PR updates the llama.cpp submodule to a version that includes fixes for the logging issue
  • The HIP_LOG_FILE and HIP_LOG_LEVEL environment variables are read correctly in the updated code
  • The interceptor is loaded and initialized correctly

Non-compliant requirements:

  • The PR does not include specific code changes to fix the logging output issue directly; it only updates the submodule

Requires further human verification:

  • Manual verification is required to confirm that the logging output is now correctly written to the specified file or stderr

2704 - Partially compliant

Compliant requirements:

  • The PR updates the llama.cpp submodule to include the changes that implement the properties-level accept query and the updated placement logic

Non-compliant requirements:

  • The PR does not include explicit code changes in the engine's codebase to implement the new dispatch logic; it relies on the submodule update

Requires further human verification:

  • Manual verification is required to confirm that the placement logic now correctly consults the dispatch matcher and that hand-written declines are appropriately removed
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Submodule Update

The PR updates the llama.cpp submodule to commit 5450c8054. While this update includes fixes for the logging and placement issues, it's important to verify that the changes in the submodule are correctly integrated and that no regressions were introduced by the update.

Subproject commit 5450c805434aebfe338f41fab8874395e2bf7fc8

@bong-water-water-bong
bong-water-water-bong merged commit 8ce9058 into main Nov 16, 2026
13 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-856/2704-pin branch November 16, 2026 19:08
bong-water-water-bong added a commit that referenced this pull request Nov 16, 2026
…ee the diff (engine#2757) (#2759)

* hw-gate: run for any PR that moves a pin, decided by a cheap job that can see the diff (engine#2757)

#2739 and #2748 -- lane pin bumps of third_party/llama.cpp -- merged 11-16 with hw_gate skipped,
so the one change that moves the whole HRX backend under every row on the box was gated by build
and CodeQL only. A skipped workflow reads as "not applicable" on a PR that already looks green.

The fix cannot be a paths: filter on the trigger, which is what the issue proposed: the job's own
if: still refuses (a lane branch has neither the label nor the bump-hrx/ prefix), so the filter
would change nothing visible -- and, with the job if: unchanged, it would also retire the label as a
way to gate a PR that touches no pin.

So the decision moves to a job that can see the diff. pin_moved is a hosted ubuntu job: full
checkout, one `git diff --name-only <base>...HEAD` over the pin carriers, an output. The device job
gains `needs: [pin_moved]` and one more accept-clause, and keeps the label and bump-hrx/ routes.

Measured against real refs on this box (the workflow's own diff command):

  #2748 (lane pin bump)  -> third_party/llama.cpp           moved=1
  #2753 (gk bump)        -> config/gpu-kernels.config       moved=1
  #2756 (no pin)         -> (nothing)                       moved=0

config/gpu-kernels.config is in the list because third_party/gpu-kernels does NOT exist: the kernel
pin is a FILE (sha= in that config, fetched privately), so a gk bump never touches a gitlink. A
re-recorded golden is listed too: #2502 was exactly that, and the gate compares against it.

* hw-gate: the preflight fails CLOSED, and an empty diff is not a move (engine#2757)

Two holes in my own change, both found by asking what happens when the comparison
itself fails rather than what happens when it succeeds.

1. A `git fetch` failure under `set -e` killed the preflight job, its output was
   empty, and the device job then read "not 1" and SKIPPED -- on a pin PR. That is
   the silent hole this change exists to close, wearing a green tick. Now any
   failure in the comparison says moved=1 with a ::warning:: and lets the gate run:
   the expensive direction is the safe one. Simulated with a bogus base ref:
   rc 0, output moved=1, warning printed.

2. `if git diff ... | grep -q .` under `pipefail` reports grep's early-exit SIGPIPE
   as the pipeline's status when the diff is large, which would have made a
   pin-moving PR read as "no pin". The diff is captured first and tested after, so
   the only failure that can reach the fail-closed path is the comparison itself.

Positive path re-checked on real refs here: #2748 -> moved=1
(third_party/llama.cpp), #2756 -> moved=0.

* hw-gate: the preflight's warning reaches the log, and moved=1 is written once (engine#2757)

The reviewer's CHANGES is right and it is the same silent-hole class one level down:
`changed=$(git diff … || fail_closed)` runs fail_closed in a command substitution, which
exits only its own subshell and CAPTURES its stdout. So the ::warning:: (which GitHub reads
from the step's stdout) was swallowed -- the gate would run on the day it could not compare
and nothing in the log would say why -- and the captured warning text then read as "changed",
writing moved=1 a second time. Right answer, invisible reason.

Reproduced standalone before changing anything:

  captured changed=[::warning::pin_moved could not compare]
  GITHUB_OUTPUT: moved=1
                 moved=1

Now fail_closed runs in the main shell and the herestring is gone: `if ! changed=$(…); then
fail_closed; fi` then `[ -n "$changed" ]`. Three paths exercised after the change:

  fail   -> ::warning:: printed in the log, output moved=1 (once)
  pin    -> "this PR moves a pin: the gate runs",  moved=1
  nopin  -> "no pin moved: …",                     moved=0

---------

Co-authored-by: bong-water-water-bong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant