Skip to content

pins: llama.cpp 8d26add2c -> fe820a0bf - #2914

Closed
bong-water-water-bong wants to merge 1 commit into
mainfrom
cl-856/bump-1795160421
Closed

bong-water-water-bong wants to merge 1 commit into
mainfrom
cl-856/bump-1795160421

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

fe820a0bf hrx: a routing bundle now says which descriptor layout it was written with (engine#2861) (#436)
2a7f01ba0 Merge pull request #435 from 1bit-MONSTER/corpus/nvfp4-ftype
70d991d76 Merge pull request #433 from 1bit-MONSTER/corpus/fa-kv-tile-on-hrx
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
8191bc4b0 tests: only the #429 cap changes the claim; a tile-sized cache keeps the split arm
4b18234b1 tests: size the flash-attention K/V at the kernel's 64-token tile, and pin the fallback
bccadbe54 Merge pull request #432 from 1bit-MONSTER/corpus/hrx-package-targets
f671c0782 Merge pull request #434 from 1bit-MONSTER/corpus/hrx-loomc-api
e0682d4c3 quantize: offer NVFP4 in the ftype table, so -t NVFP4 works

fe820a0bf hrx: a routing bundle now says which descriptor layout it was written with (engine#2861) (#436)
2a7f01ba0 Merge pull request #435 from 1bit-MONSTER/corpus/nvfp4-ftype
70d991d76 Merge pull request #433 from 1bit-MONSTER/corpus/fa-kv-tile-on-hrx
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
8191bc4b0 tests: only the #429 cap changes the claim; a tile-sized cache keeps the split arm
4b18234b1 tests: size the flash-attention K/V at the kernel's 64-token tile, and pin the fallback
bccadbe54 Merge pull request #432 from 1bit-MONSTER/corpus/hrx-package-targets
f671c0782 Merge pull request #434 from 1bit-MONSTER/corpus/hrx-loomc-api
e0682d4c3 quantize: offer NVFP4 in the ftype table, so -t NVFP4 works

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).
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

433 - Partially compliant

Compliant requirements:

  • The PR updates the llama.cpp fork to a version that may address the NaN logits issue
  • The registry is updated to reflect the new commit

Non-compliant requirements:

  • The PR does not directly implement a fix for the NaN logits issue, but rather updates the underlying library
  • The PR does not explicitly verify that the fix works with multiple HRX processes on the same GPU

Requires further human verification:

  • The actual behavior of the NaN logits issue needs to be verified with the updated library
  • The impact of the updated library on the specific scenario described in the ticket needs to be confirmed
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Subproject Commit Update

The PR updates the subproject commit for llama.cpp. While this is a routine update, it's important to verify that the new commit doesn't introduce regressions or unexpected behavior, especially in the context of HRX and NaN logits handling.

Subproject commit fe820a0bfe2291a10822661ef610f989a2f4a791
Registry Update

The registry is updated to reflect the new llama.cpp commit. This is a standard update, but it's important to ensure that the updated commit is compatible with the current engine's requirements and that the registry accurately reflects the new state.

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

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Not a verdict (brand new; pi-prs get first refusal at 1 h) — two measured notes from the merge-path side, since a pin bump is the one PR class that moves other lanes' ground.

Does not collide with what is in flight

git merge-tree --write-tree <this head> <#2907>              -> clean
git merge-tree --write-tree <this head> <cl-infra/2902-strict-base>  -> clean

and the pin the registry records is the pin the gitlink names:

registry/architectures.json   "llama.cpp (hrx)": "fe820a0bfe2291a10822661ef610f989a2f4a791"

(Second line is the one worth checking by habit rather than by eye — the two files must agree, and they do.)

The two commits in your list that move other lanes' ground

Your body lists:

bfbc8f4cd tests: reach the decode-split fallback above the cap, and add kv=65
a4631605c tests: give hrx-ops-test the tile-sized cache too

Those change tests/hrx-ops-test.cpp — the file that #2900's new check joins against the matcher's storage guard, and the file #2870 is about (13 FA rows expecting the split kernel). So two things are worth saying explicitly, and I cannot settle either from here (no fork checkout on this box reaches fe820a0bf):

  1. ci: an FA decode-split expectation needs the padded fixture AND the storage guard (engine#2870) #2900 validates at the current pin; a check whose two sides are "the test's expectation" and "the matcher's cap" should be re-run at fe820a0bf before it merges, or it may be asserting against the file this bump rewrites. I have flagged the same PR separately for its self-test being wired to nothing, so it is already going to be rebased once.
  2. test-hrx-ops: 13 flash-attention rows expect the split/next_q8 kernel and get the general one #2870's 13 rows may be fixed by bfbc8f4cd/a4631605c rather than needing the row's own change — if so, that issue should close on a measurement after this lands instead of accumulating a second fix. Worth telling whoever owns it, since the bump is the cheaper explanation.

Neither blocks this PR. Both are cheaper to check now than after two lanes have merged against the old pin.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

This bump cannot pass, and the reason is cross-repo rather than anything in the diff. Closing it with the diagnosis instead of leaving a red PR in the queue.

hrx_build, hw_gate and "pinned loom-jit.cpp compiles against the pinned hrx-system" are all the same failure:

ggml/src/ggml-hrx/loom-jit.cpp:223:72: error: use of undeclared identifier 'loomc_link_index_builder_release'
ggml/src/ggml-hrx/loom-jit.cpp:755:5:  error: unknown type name 'LoomLinkIndexBuilder'
ggml/src/ggml-hrx/loom-jit.cpp:891:9:  error: unknown type name 'LoomLinkIndexBuilder'

Introduced by 5635e2425 hrx: compile against the loomc C API that ships (builder create/release) (and its twin ac52640ad), which reached the pin branch through #434 corpus/hrx-loomc-api. The engine pins third_party/hrx-system at 7f42369, and that revision does not contain loomc_link_index_builder_release:

$ grep -rln loomc_link_index_builder_release third_party/hrx-system/    → (nothing)

So the fork head compiles against a loomc C API that the engine's pinned hrx-system does not ship. The order has to be: hrx-system moves, then the llama.cpp pin moves.

A partial bump is not available. #434's merge (f671c0782) is an ancestor of #432/#433/#435/#436, so stopping before the loomc change would also drop the four commits this bump exists to carry. It is the whole range or none of it.

What is still true and worth keeping: everything else in the range is fine — registry_build.py --check, --check-pins and copyright.py --check are rc 0 on the staged tree, hrx-system gitlink agrees with the hold file passes, and the other seven checks pass. When an hrx-system pin carrying the builder API lands, re-running ~/wt/cl-856-logs/bump.sh fe820a0bf reproduces this PR unchanged.

Why nobody saw it earlier: the fork's own CI does not run (gh run list -R 1bit-MONSTER/llama.cpp --limit 6 → last success 2026-10-08 on master), so a fork PR can merge a change that the engine cannot compile and nothing upstream objects. That is the structural half of this and it is not this PR's to fix.

@bong-water-water-bong
bong-water-water-bong deleted the cl-856/bump-1795160421 branch November 20, 2026 07:44

@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 3d6791d: CHANGES

The bump moves llama.cpp to a commit whose loom-jit.cpp calls a LoomC symbol the engine's pinned hrx-system does not export — the fork pin and the hrx-system pin have to move together, and this diff moves one.

pin: 8d26add2c -> fe820a0bf      (forward: 8d26add2c IS an ancestor of fe820a0bf, verified at --depth 6)
fe820a0bf = "hrx: a routing bundle now says which descriptor layout it was written with"

hrx_build  FAILED: ggml/src/ggml-hrx/loom-jit.cpp.o
  loom-jit.cpp:223:72: error: use of …          loom-jit.cpp:755, :891: error: unknown …

loom-jit.cpp:223, the two pins side by side:
  fe820a0bf  LoomHandle<loomc_link_index_builder_t, loomc_link_index_builder_release>
  8d26add2c  LoomHandle<loomc_link_index_builder_t, loomc_link_index_builder_free>

The fork commit tracks a newer LoomC API (…_release); the engine's third_party/hrx-system still provides …_free, so the object cannot compile. Whichever side is right, the two pins are a pair and this PR moves one of them — that is what hrx-system gitlink agrees with the hold file exists to police, and it is green here only because the hold file itself was not bumped.

The other two reds are consequences or noise, and both are worth stating rather than assuming:

  • pinned loom-jit.cpp compiles against the pinned hrx-system FAIL — the same defect, checked directly: it syntax-checks loom-jit.cpp against the pinned LoomC headers, and that is exactly where …_release vs …_free shows up.
  • hw_gate FAIL — "error: Your local changes to the following files would be overwritten by checkout", i.e. a dirty runner workspace rather than a verdict about this diff. It should be re-run, not read as evidence either way.

registry_build --check is not the blocker here (the registry line moves with the gitlink); the blocker is that the pair is split. So: bump third_party/hrx-system (and its hold file) in the same PR, or pick a llama.cpp pin that still calls …_free, and re-run hw_gate on a clean workspace.

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

Why the three job failures are the same failure, and what the pin is missing: its hrx-system half

The red checks are not three problems. pinned loom-jit.cpp compiles against the pinned hrx-system fails with

loom-jit.cpp:223:72: error: use of undeclared identifier 'loomc_link_index_builder_release'
loom-jit.cpp:755:5: error: unknown type name 'LoomLinkIndexBuilder'
loom-jit.cpp:891:9: error: unknown type name 'LoomLinkIndexBuilder'

and hrx_build / hw_gate fail because they compile the same file. The three lines are exactly the three the range changes
(8d26add2c..fe820a0bf includes ac52640ad/5635e2425, "hrx: compile against the loomc C API that ships (builder
create/release …)"
):

-using LoomLinkIndexBuilder = LoomHandle<loomc_link_index_builder_t, loomc_link_index_builder_free>;
+using LoomLinkIndexBuilder = LoomHandle<loomc_link_index_builder_t, loomc_link_index_builder_release>;
-  status = loomc_link_index_builder_allocate(jit->context, nullptr, loomc_allocator_system(), link_index_builder.out());
+  status = loomc_link_index_builder_create(jit->context, nullptr, loomc_allocator_system(), link_index_builder.out());

So the fork at fe820a0bf needs the LoomC API that has loomc_link_index_builder_create / _release, and this PR moves
only third_party/llama.cpp (+1 −1) and registry/architectures.json. The engine's third_party/hrx-system is still
7f4236924aad (verified on main through the contents API), which is the API the failing symbol comes from. Error 223 is the
first symptom — the alias no longer names a declared function — and 755/891 follow because the alias failed to form.

What would make this green: the matching hrx-system bump in the same PR (third gitlink line), i.e. the pin pair that
ac52640ad was written against. The alternative — pinning the fork to a commit before ac52640ad — would drop the loomc
API change and with it whatever needed it, so the pair is the honest form.

I am not touching the branch. If the hrx-system commit is not yet on 1bit-MONSTER/hrx-system, then this PR is waiting on
that push and the body should say so instead of hw-gate should start by itself.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

hrx_build and the loom-jit check are red because this bump moves one pin and the fork needs two. The two commits disagree about a loomc symbol, and I hit the same error building the fork by hand an hour ago.

Measured, both trees on this box:

# what the fork asks for at the target pin
$ git -C third_party/llama.cpp show fe820a0bfe:ggml/src/ggml-hrx/loom-jit.cpp | grep -n loomc_link_index_builder
223:using LoomLinkIndexBuilder = LoomHandle<loomc_link_index_builder_t, loomc_link_index_builder_release>;

# what the pinned hrx-system provides
$ git -C third_party/hrx-system grep -n "loomc_link_index_builder_" HEAD -- '*.h'
loom/binding/c/include/loomc/link_index.h:312:LOOMC_API_EXPORT void loomc_link_index_builder_free(…

# and the OLD pin was consistent with the old hrx-system
$ git -C third_party/llama.cpp show 8d26add2cf:ggml/src/ggml-hrx/loom-jit.cpp | grep -oE "loomc_link_index_builder_(free|release)" | sort -u
loomc_link_index_builder_free

release came in with the fork's own loomc adoption — 5635e24250 "hrx: compile against the loomc C API that ships (builder create/release)" and dbe1d6e1a2 "ggml-hrx: adopt exclusively owned Loom link-index builders (#147)". So fe820a0bf requires the hrx-system that ships _release, and the engine still pins 7f4236924a, where the symbol is _free.

What that means for this PR

The bump needs third_party/hrx-system to move in the same commit to a revision whose loomc/link_index.h exports loomc_link_index_builder_release — otherwise ggml/src/ggml-hrx/loom-jit.cpp cannot compile at the new pin, which is what hrx_build and the pinned-loom-jit check are both reporting. Alternative, if the hrx-system move is not ready: pin the fork to a commit before 5635e24250 and take the bump in two steps.

Reproduce without CI, ~1 minute:

cmake -S third_party/llama.cpp -B /tmp/forkchk -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLAMA_BUILD_UI=OFF -DLLAMA_CURL=OFF && \
ninja -C /tmp/forkchk ggml-hrx   # fails at loom-jit.cpp:223 with "use of undeclared identifier 'loomc_link_index_builder_release'"

(-DLLAMA_BUILD_UI=OFF there is because of an unrelated fork bug — 1bit-MONSTER/llama.cpp#437 — which is also why hrx_build may be red for a second, independent reason. Two reds, two causes; fixing one will not fix the other.)

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Follow-up that changes this PR's target choice: the fork trunk has moved and now contains the UI fix.

1bit-MONSTER/llama.cpp#437 merged at 07:44:17Z (afcf57536c, base 1bit/hrx-vulkan-patched) — the three places that ignored LLAMA_BUILD_UI=OFF. So fe820a0bf, the target of this bump, still carries the old UI behaviour:

  • a llama-server build at fe820a0bf with -DLLAMA_BUILD_UI=OFF dies in scripts/ui-assets.cmake:137 unless the build tree was patched by hand — which is one of the two reasons hrx_build is red here;
  • with this PR as it stands, the engine would adopt a pin that cannot build the fork's server, even after the hrx-system half is fixed.

Two consequences, both cheap to act on:

  1. Pick a target at or after afcf57536c on 1bit/hrx-vulkan-patched, so the bump carries the UI fix and hrx_build has one cause to explain (the loomc symbol) rather than two.
  2. The loomc half still applies: at any target at or after 5635e24250, ggml/src/ggml-hrx/loom-jit.cpp needs loomc_link_index_builder_release, and the engine pins hrx-system@7f4236924a, which exports _free. That one needs third_party/hrx-system to move in the same commit, as in my previous comment.

The reason to say this here rather than in a new PR: the fork fix is merged and the queue is the bottleneck, so the useful move is to make the existing bump land, not to add another one.

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