Skip to content

Bump HRX: llama.cpp 4a58da9b087d + hrx-system 82804197bcbe - #694

Merged
bong-water-water-bong merged 1 commit into
mainfrom
bump-hrx/4a58da9b087d-82804197bcbe
Oct 31, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
bump-hrx/4a58da9b087d-82804197bcbe

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Moves the HRX submodules along our line. AMD's tested pair (ROCm/ggml-staging-automation) is llama.cpp 44ee5710d19f + hrx-system 558e5fe2e7af; the workflow merges it into our branches (a conflict fails the run and names the files).

from to
third_party/llama.cpp (1bit-MONSTER/llama.cpp 1bit/hrx-vulkan-patched) 5e6388a5a852 4a58da9b087d
third_party/hrx-system (1bit-MONSTER/hrx-system 1bit/main) 82804197bcbe 82804197bcbe

hrx-system HELD at 82804197bcbe by config/hrx-system-hold.config (AMD's tested pin is 558e5fe2e7af).

llama.cpp commits new to the engine:

CI here builds without HRX. Before merging, on Strix Halo run the long-prompt correctness
probe and test-backend-ops -b HRX0; record the exact validated hrx-system pin in
config/hrx-long-prompt-validated-pin.config:
python3 tests/hrx_long_prompt.py
cmake -B build -G Ninja -DONEBIT_HRX=ON && cmake --build build --target onebit && for d in hrx cpu; do tests/serve_e2e.sh build/1bit <Qwen3-0.6B Q4_K_M .gguf> $d; done

@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 — tprs-ready applied. The diff is exactly the two lines a pin bump should be, and the hardware gate already ran and passed on this head.

The diff (origin/main = 9cdf058, third_party/llama.cpp 5e6388a5a852 → 4a58da9b087d, registry/architectures.json source hash to the same commit):

  • the recorded source hash is the gitlink — tools/registry_build.py --check-pins rc 0, tests/check_pins_test.py 3/3, and a direct compare of registry/architectures.json["sources"]["llama.cpp (hrx)"] against git ls-tree HEAD third_party/llama.cpp reads 4a58da9b087d… on both sides. counts unchanged, which is right: the commit adds no architecture;
  • nothing else in the tree still points at the old pin — grep -rn 5e6388a5 finds only dated prose (registry/significant.json, docs/arch-gaps.md, the two census/registry test comments say "mapped since 5e6388a5a"), not a live pin;
  • third_party/hrx-system is untouched and the hold still names 82804197bcbe, which is what the gitlink says (the hrx-system gitlink agrees with the hold file check passed). check_pins agrees with your split: a llama.cpp move needs no re-validation, only an hrx-system move does.

What rides along: exactly one commit, nothing else. 4a58da9b087d is the tip of 1bit/hrx-vulkan-patched (the branch .gitmodules pins), its only parent is the old pin 5e6388a5a852, and the compare API gives ahead_by: 1, behind_by: 0 with two files: dispatch-get-rows.cpp (+3/−2 net) and get_rows_f32.loom (3/3). So there is no silent AMD merge or backend change hiding in the bump.

The change itself, checked by reading it rather than the message (1bit-MONSTER/llama.cpp #160):

  • kMaxGetRowsRowCount 536870912 → 1073741824 and the three .loom guards 536870911/536870912 → 1073741823/1073741824. No off-by-one at the new bound, which is the one thing this kind of edit usually gets wrong: loom's range(lo, hi) is a closed interval — loom_value_facts_predicate_required_range() maps arg 1 to the minimum and arg 2 to the maximum with no ±1 (loom/src/loom/ir/facts.c, LOOM_PREDICATE_RANGE) — so the kernel's range(%row_count, 1, 2^30) means row_count ≤ 2^30, exactly the host's row_count >= 1 && row_count <= kMaxGetRowsRowCount. Same for token_count ≤ 2048 and for the id guard range(%token, 0, 2^30-1);
  • the byte-offset arithmetic really is 64-bit: %row_byte_base = index.scale %bounded_token_id, %row_bytes : index, offset -> offset, so the worst admitted offset is (2^30-1) × 144 B = 154.6 GB, well inside offset;
  • the run-time lt(%token_id, %row_count) assume is untouched, so the id cannot read past the rows the matcher bound, and 2^30−1 leaves the stated 2× margin to INT32_MAX for the I32 ids.

Gate on this head: PASS (hw_gate, 12:41:15Z → 12:58:36Z, run 41202210378): ops 1959/1959 including GET_ROWS, fa-decode-q8 6/6, needle long-prompt PASS on all four configs (expected 7341, got '7341', 7082- and 7403-token prompts), kat/placement/kld PASS on qwen3-0.6b(+kq8, kvq8)/zaya1-8b/qwen3.8-27b/qwen3-coder-30b-a3b/qwen3-4b-iq4xs, build PASS, plus build/Analyze×4/CodeQL green on the PR. pr_agent red is the usual coder-llm-off noise.

One honest limit, so nobody reads the gate as more than it is: the gate proves no regression at the shapes it runs, not that a 768,022,850-row gather now works — test-backend-ops GET_ROWS cases are small. The widened bound is compile-validated and bounds-proven only, which is what the fork commit says itself (the DeepSeek-V4.1 Engram pages are still pinned by engine #669, so a device gather has nothing to win yet, and the tok/s and placement delta are owed there). That is the fork PR's open item, not something this engine PR can settle, and it does not hold up the bump: the engine is on the same code path either way, one bound wider.

@bong-water-water-bong bong-water-water-bong added the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Oct 31, 2026
@bong-water-water-bong
bong-water-water-bong merged commit 3cddcd6 into main Oct 31, 2026
11 of 12 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the bump-hrx/4a58da9b087d-82804197bcbe branch October 31, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant