Repository navigation
Bump HRX: llama.cpp 1991650479db (fork tip; TOP_K on HRX) + held hrx-system 82804197bcbe - #772
bong-water-water-bong wants to merge 4 commits into
Conversation
…age) The fork line moved six PRs on (1bit/hrx-vulkan-patched tip 1991650479db1f4b6c97324707d13608b1e8d776, including 'ggml-hrx: TOP_K on HRX, a radix select for the QSA indexer (engine #679)'), so the bump cut at 37ca4d442ad4 (#759) is superseded. hrx-system stays at the held pin 82804197bcbe (config/hrx-system-hold.config). - third_party/llama.cpp: 4a58da9b087d -> 1991650479db - registry/architectures.json: regenerated from the new pin (tools/registry_build.py --check-pins green). The architecture set is unchanged - 294 hrx / 7 npu, 0 added, 0 removed - so the only registry change is the recorded source pin. The hardware gate is the acceptance and it has NOT run: the box's GPU is down (MODE2 resets at 11:13, reset timed out, SMU unresponsive, HRX0 no longer enumerates) and no gpu-hold may be taken until the orchestrator's all-clear. This branch is prepared, not proposed: it is pushed and opened as a PR only once the gate can run.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
Content READY. No tprs-ready on purpose: the acceptance this PR names for itself is the hardware gate, and it has
not run yet (hw_gate: queued when I looked). The label goes on the moment it PASSes — I am not labelling ahead of the
gate that exists to catch a bad pin.
What I verified (all device-free, and note I am the one building the parent commit right now — the ten-minute check
below):
- The pin is the fork tip and it is a fast-forward:
third_party/llama.cpp4a58da9b08…→1991650479db…, which
is1bit/hrx-vulkan-patched's head;gh api …/compare/4a58da9b087d...1991650479db→ahead_by 8, behind_by 0. - The body says six fork PRs; it is eight: #162, #163, #164, #165, #166, #167, #168 and #161 (TOP_K). All eight
carry my READY from their own reviews, so nothing here is unreviewed content. - hrx-system is held, not moved: gitlink
82804197bcbeis identical on the branch and onmain, it equals
config/hrx-system-hold.config, and thehrx-system gitlink agrees with the hold filecheck passed. So no
long-prompt re-validation is owed (the rule keys on hrx-system). - The registry was regenerated with the pin:
tools/registry_build.py --check-pinson this head → "records the
committed pins" (rc 0) andtools/check_pins.py origin/main→ "ok … is ahead". That is the #672 failure mode and it
is not present. - The branch name is
bump-hrx/1991650479db-82804197bcbe, sohw-gate.ymlfires andscripts/weekly.sh's
bumpsdispatch sees it — both of which a differently-named hand-raised bump silently misses (#675's lesson). - The base is
main=d3d2667a, which is #764 (the GTT-ceiling guardrail). Good ordering: this bump brings
fork #166, the allocation-time backstop that reads the sameGGML_HRX_GTT_RESERVE_MB, so the pre-launch and
allocation-time walls land together — the pair the incident entry recommended before any long-context run. - The tree builds: I have a llama.cpp checkout at exactly
1991650479dbconfigured the waycmake/hrx.cmake
configures the sub-build (amdclang from TheRock,GGML_HRX=ON, the engine's hrx-system at82804197bcbe), and it
compiles that tree — includingdispatch-hip-top-k.cpp's kernel — which is the one thing a gitlink diff cannot show.
(It needed-DGGML_HRX_HIP_FLAGS=… --rocm-device-lib-path=…on this box, which is #771's open item, not this PR's.)
Not mine to judge: whether a pin move is wanted while a candidate is being gated off main. That is the #759 hold
question, and #759 was closed as stale rather than merged, so the call is yours.
PR Reviewer Guide 🔍(Review updated until commit 4699ca0)Here are some key observations to aid the review process:
|
|
Persistent review updated to latest commit f6bce4f |
|
Gate still red, and the second failure is a different one — this time it is the device library, with the exact cause and Three kernel compiles, then nothing. Cause: That is why weekly builds pass and the gate does not. Fix, either one, both one line in The directory exists here: This is the same defect as engine #771's open item (its |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
Content confirmation at f6bce4f6: a Merge branch 'main' on top of the same single commit (534e4f1), so the pin,
the held hrx-system, the regenerated registry and the branch name are exactly what I reviewed at 534e4f1f
(check_pins → "is ahead", registry_build.py --check-pins → "records the committed pins").
tprs-ready still stays off, and the reason is now the box, not the PR: hw_gate cannot build on this machine
until the HIP kernel step is given the device library — the re-run failed with
clang++: error: cannot find ROCm device library ×3 in the build phase, which is engine #771's open item reached
through hw-gate.sh's own configure path (it does not use cmake/hrx.cmake). I filed the one-line fix in the comment
above; the moment a hw_gate run on this head PASSes I apply the label, and not before.
|
Persistent review updated to latest commit 4699ca0 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: CHANGES
Not on this PR's content — the diff is the same two lines I verified (1991650479db = fork tip, hrx-system held at
82804197bcbe, registry regenerated, bump-hrx/ branch). It is CHANGES because its own acceptance cannot run on
this box, and that is a one-line code fix someone has to own before this can merge. Named precisely, because the
diagnosis matters:
What actually fails: the gate's build phase, on the device library — not the zero-cases guard. Run
41325305576, second attempt (the first died on the checkout that was missing 313 files in
third_party/llama.cpp, repaired at 12:30):
hw-gate check at 6e40f47: llama.cpp 1991650479db, hrx-system 82804197bcbe
private HIP kernels: gpu-kernels 17a882640fa8 (addons/hip-hrx)
build FAIL 2s
clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or
'--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library [×3]
Fix, in scripts/hw-gate.sh (one configure call, hw-gate.sh:398), taking the value from the pin so the gate and
the release cannot disagree:
-DGGML_HRX_HIP_COMPILER=$TOOLCHAIN/bin/amdclang++
"-DGGML_HRX_HIP_FLAGS=-O3 --rocm-device-lib-path=$TOOLCHAIN/lib/python3*/site-packages/_rocm_sdk_core/lib/llvm/amdgcn/bitcode"
Why there and not in cmake/hrx.cmake: the gate configures third_party/llama.cpp itself and never loads the engine's
cmake, so #771's fix (now correct, and passing its ctest) does not reach it. Why it is needed at all: ggml-hrx
compiles its HIP kernels through GGML_HRX_HIP_FLAGS (default -O3, ggml-hrx-hip.cmake:79), so CMAKE_C/CXX_FLAGS
never reach them, and on this box's SDK layout the device library lives inside the pip tree. build-candidate{19,20}.sh:163
export HIP_DEVICE_LIB_PATH into the weekly run, which is why release builds pass and the gate does not.
On the zero-cases guard: it is not the gate's failure and should not be softened. That exit came from my own
test-backend-ops run with GGML_HRX_DISABLE_DISPATCH=hip.top_k_f32 (llama.cpp #161's fallback check), where every case
legitimately reports not supported [HRX0] and #162's guard turns that into rc 1 with "no test case ran … refusing to
report a pass". The gate's ops phase (hw-gate.sh:447) runs one test-backend-ops test -b HRX0 -o "$OPS" and requires
rc = 0 and Backend HRX0: OK; if its selection ever executes zero cases it will now report ops FAIL … 0/0 tests passed, which is the correct outcome — a gate that passes on zero executed cases is engine #657, the bug #162 fixed. So
the fix is the flag, not the guard.
Until it lands, no hw_gate can pass on this box for any pin, so tprs-ready stays off. Content-wise this PR is READY
and I will apply the label the moment a run on this head PASSes.
…ise the zero-cases exit The gate's build failed at #772 with clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library - not a kernel result and not the pin: hw-gate.sh configures third_party/llama.cpp directly, so cmake/hrx.cmake's fix (engine#713, #771) never reached it, and the kernel-corpus compile is its own amdclang++ invocation that does not inherit the llama.cpp build's CMAKE_C/CXX_FLAGS either. The box only builds because build-candidate{19,20}.sh export HIP_DEVICE_LIB_PATH into the whole run - which the workflow does not. - Read the gfx device library from the resolved toolchain (its pip tree, where the 2026-10-31 layout put it) and pass it as GGML_HRX_HIP_FLAGS="-O3 --rocm-device-lib-path=…" plus GGML_HRX_HIP_COMPILER=<toolchain>/bin/amdclang++ - the same pair cmake/hrx.cmake now passes - and export HIP_DEVICE_LIB_PATH as a fallback for anything else in the tree. - A changed flag set drops the cached CMakeCache.txt (a marker beside .gpu-kernels-pin), so an existing build tree cannot keep configuring without it. - ops: the pin carries the zero-cases guard (tests/test-backend-ops.cpp, fork engine#657) - a run that executed no case exits 1 and says "error: no test case ran (check -b/-o/-p and --test-file): refusing to report a pass". Recognise that as its own outcome: ops SKIP naming the selection that matched nothing, never a PASS (an empty selection must not look green) and never a bare FAIL that reads like a kernel fault. Verified on the box without a GPU, with HIP_DEVICE_LIB_PATH/ROCM_PATH/HIP_PATH unset: the gate's own configure arguments against /opt/rocm-therock produce all 50 gfx1151 code objects and the embedded .inc, where the same configure without the flag reproduces the CI error. bash -n clean.
|
Preparing review... |
|
Gate-side fix pushed in What actually failed at — no Fix 1 — the build ( Verified without a GPU, against the gate's own Fix 2 — the zero-cases guard, recognised rather than ignored: the pin carries it ( Still open: the gate's own phases have to run to green for this bump, and the earlier missing-files condition in the runner checkout ( |
|
Gate state at Run
The KLD rows fail in zero seconds, before any model is loaded, because They have to be re-recorded once, from a binary at this pin, which is the documented procedure: Why I have not run that myself: those logits become the CI evidence every later gate compares against, and
|
|
KLD bases re-recorded at the shipped pin; Per the orchestrator's decision, the five The bases are byte-identical; only their provenance was stale. Every base reproduced the manifest's sha256 exactly — Why the store was empty at all: One thing to note about the previous run 41331169278: its last three |
|
build PASS · ops 1959/1959 · fa-decode-q8 6/6 · kat ×7 PASS · needle ×3 PASS · placement ×7 all-on-HRX · kld ×5 PASS (0.6b mean 0.000001 / p99 0.00004 / top 100.00%; zaya1-8b, 27b, coder-30b-a3b, 4b-iq4xs all −0.000000 / p99 ≤0.00004 / 100.00%). The zero-cases row did not fire — the selection measured 1959 cases. Closing this as superseded by #786, which carries the fork's new tip Recorded value of this run, for #786's comparison: it is the evidence that |
…ation, #170 -ot/input-layer) + held hrx-system (#786) * hw-gate: pass the gfx device library to its own configure, and recognise the zero-cases exit The gate's build failed at #772 with clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library - not a kernel result and not the pin: hw-gate.sh configures third_party/llama.cpp directly, so cmake/hrx.cmake's fix (engine#713, #771) never reached it, and the kernel-corpus compile is its own amdclang++ invocation that does not inherit the llama.cpp build's CMAKE_C/CXX_FLAGS either. The box only builds because build-candidate{19,20}.sh export HIP_DEVICE_LIB_PATH into the whole run - which the workflow does not. - Read the gfx device library from the resolved toolchain (its pip tree, where the 2026-10-31 layout put it) and pass it as GGML_HRX_HIP_FLAGS="-O3 --rocm-device-lib-path=…" plus GGML_HRX_HIP_COMPILER=<toolchain>/bin/amdclang++ - the same pair cmake/hrx.cmake now passes - and export HIP_DEVICE_LIB_PATH as a fallback for anything else in the tree. - A changed flag set drops the cached CMakeCache.txt (a marker beside .gpu-kernels-pin), so an existing build tree cannot keep configuring without it. - ops: the pin carries the zero-cases guard (tests/test-backend-ops.cpp, fork engine#657) - a run that executed no case exits 1 and says "error: no test case ran (check -b/-o/-p and --test-file): refusing to report a pass". Recognise that as its own outcome: ops SKIP naming the selection that matched nothing, never a PASS (an empty selection must not look green) and never a bare FAIL that reads like a kernel fault. Verified on the box without a GPU, with HIP_DEVICE_LIB_PATH/ROCM_PATH/HIP_PATH unset: the gate's own configure arguments against /opt/rocm-therock produce all 50 gfx1151 code objects and the embedded .inc, where the same configure without the flag reproduces the CI error. bash -n clean. * Bump HRX: llama.cpp 1d32c22609d6 + held hrx-system 82804197bcbe The fork line moved two commits past 1991650479db - #169 (hrx: host-weight residency instrumentation, weak leases, and an opt-in bound, engine #669) and #170 (loader: an explicit -ot wins over the arch's lazy-read hint, LLAMA_INPUT_LAYER_ON_DEV moves the input layer) - so this cut carries the new tip 1d32c22609d6eb23d48a26ba14e680e40afd6e17. Replaces the 1991650479db cut (#772), which was gated on the previous run. - third_party/llama.cpp: 1991650479db -> 1d32c22609d6 - hrx-system: unchanged at the held 82804197bcbe (config/hrx-system-hold.config); the hold is not lifted by this PR - registry/architectures.json: regenerated against the new gitlink (tools/registry_build.py): 294 hrx / 7 npu, 0 architectures added or removed, so the only change is the recorded source pin; --check-pins says "records the committed pins" Checked on the new tip before cutting: the ggml-hrx HIP add-on hook (GGML_HRX_HIP_ADDON_DIR) is present, tools/mtmd/models/models.h exists (the file whose absence in the runner's checkout failed the first #772 gate), and test-backend-ops still carries the zero-cases guard the improved gate row now recognises. --------- Co-authored-by: bong-water-water-bong <[email protected]>
Moves the HRX pair to the fork's current tip. Replaces #759, which was cut at
37ca4d442ad4and closed as stale.third_party/llama.cpp:4a58da9b087d→1991650479db1f4b6c97324707d13608b1e8d776— six merged fork PRs since theold cut, the last being ggml-hrx: TOP_K on HRX, a radix select for the QSA indexer (engine hrx: long-context decode 9.70 tok/s at 18.8k ctx (prefill 74-93) vs 31.15 / 459 on a gfx1151 fork — same GGUF, same hour, short-prompt parity 28.6 vs 28.9 #679).
third_party/hrx-system: unchanged at the held82804197bcbe(config/hrx-system-hold.config) — the hold is notlifted by this PR.
registry/architectures.json: regenerated against the new pin (tools/registry_build.py), 294 hrx / 7 npu, 0architectures added or removed — the six PRs are HRX-internal, so the only change is the recorded source pin.
tools/registry_build.py --check-pins→ "records the committed pins".Rebased onto current
main(d3d2667, which now carries #764's GTT-ceiling guard).The hardware gate is this PR's acceptance and
hw-gate.ymltriggers on thebump-hrx/*branch name (that is whythe branch is named for the pair). It has not run yet — this is the first GPU work in this lane since the 11:13 MODE2
reset incident and the all-clear.
Opened, not merged — the orchestrator merges. One question recorded rather than acted on:
config/gpu-kernels.configstill pins
17a882640fa8, while gpu-kernelsmainis nowdfc6e3b9a; a kernels move changes the code objects compiledinto the release and needs its own gate evidence, so it is deliberately not folded into this PR.