Repository navigation
Bump HRX: llama.cpp 4a58da9b087d + hrx-system 82804197bcbe - #694
Conversation
bong-water-water-bong
left a comment
There was a problem hiding this comment.
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-pinsrc 0,tests/check_pins_test.py3/3, and a direct compare ofregistry/architectures.json["sources"]["llama.cpp (hrx)"]againstgit ls-tree HEAD third_party/llama.cppreads4a58da9b087d…on both sides.countsunchanged, which is right: the commit adds no architecture; - nothing else in the tree still points at the old pin —
grep -rn 5e6388a5finds 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-systemis untouched and the hold still names82804197bcbe, which is what the gitlink says (thehrx-system gitlink agrees with the hold filecheck passed).check_pinsagrees 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):
kMaxGetRowsRowCount536870912 → 1073741824 and the three.loomguards 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'srange(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'srange(%row_count, 1, 2^30)meansrow_count ≤ 2^30, exactly the host'srow_count >= 1 && row_count <= kMaxGetRowsRowCount. Same fortoken_count ≤ 2048and for the id guardrange(%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 insideoffset; - 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 toINT32_MAXfor 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.
Moves the HRX submodules along our line. AMD's tested pair (ROCm/ggml-staging-automation) is llama.cpp
44ee5710d19f+ hrx-system558e5fe2e7af; the workflow merges it into our branches (a conflict fails the run and names the files).5e6388a5a8524a58da9b087d82804197bcbe82804197bcbehrx-system HELD at
82804197bcbebyconfig/hrx-system-hold.config(AMD's tested pin is558e5fe2e7af).llama.cpp commits new to the engine:
4a58da9b0ggml-hrx: GET_ROWS id range 2^30 for the DeepSeek-V4.1 Engram table (768,022,850 rows) (docs/hrx: the GPU's matrix units (WMMA rates and layouts on gfx1151) #160)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 inconfig/hrx-long-prompt-validated-pin.config:python3 tests/hrx_long_prompt.pycmake -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