Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/bump-hrx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
#
# The hold (engine#388): the owner keeps the engine on our HRX line (2026-10-10). AMD's
# hrx-system after 98d05d94 miscompiles long-context attention (ROCm/hrx-system#1535), so
# hrx-system stays at 98d05d94. Before the hold existed, every scheduled run from 2026-10-09
# hrx-system stayed at 98d05d94 until 2026-10-18, when the engine moved by hand to e3e6a9766ccb
# plus our commits and our #1535 fix (config/hrx-system-hold.config names that pin now; moves
# stay manual). Before the hold existed, every scheduled run from 2026-10-09
# failed at the mirror step instead of reporting it.
# A failed run now files an issue, so it cannot break silently for another five days.
# GitHub-hosted CI builds that PR without HRX; run tests/serve_e2e.sh on
Expand Down
2 changes: 1 addition & 1 deletion config/hrx-long-prompt-validated-pin.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
3319e536196b99119f30f78b60f39a340aee6a5d
d3c731e1d7f47de2d64739b1ec298f0d0fe829d4
12 changes: 11 additions & 1 deletion config/hrx-system-hold.config
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@
# question stays exactly where it was. The durable move is still to rebase these fixes onto
# our line (or lift the hold) once the long-prompt check passes there; this line exists so
# three small fixes do not have to wait for that.
3319e536196b99119f30f78b60f39a340aee6a5d
# 2026-10-18, owner decision: the engine moves to AMD's e3e6a9766ccb with our commits replayed
# on it (fork branch `1bit/e3e6a976-pin-6`): HRX_AQL_BLOCK_SIZE/HRX_COMMAND_BUFFER_MODE, the
# engine#409, #410 and #401 fixes, and our fix for ROCm/hrx-system#1535 (AMD's multi-unit
# live-out guard is still in unit_liveness_builder.c, so we keep removing it). The pin is a
# `-s ours` merge of 3319e536 (tree = the tested commit fc2213a1c) plus our hrx-system #6
# (generate_stubs.py canonical signatures; regenerated HIP passthrough stubs). Measured
# 2026-10-17 on strixhalo against the old pin: test-backend-ops 1141/1141 x3, needle 7341 @4732
# 20/20, @4432 5/5, Qwen3-1.7B 5/5, KLD 0 on Qwen3-0.6B and ZAYA1-8B, +3-8 % pp/tg. The hold
# stays, now naming that commit, so the daily run does not take AMD's later hrx-system (or its
# ggml-hrx) without the same checks.
d3c731e1d7f47de2d64739b1ec298f0d0fe829d4
37 changes: 23 additions & 14 deletions docs/hrx.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,21 @@ HRX0: AMD Radeon 8060S Graphics (Node 1) (gfx1151)
| Submodule | Source | Pinned to |
|---|---|---|
| `third_party/llama.cpp` | [1bit-MONSTER/llama.cpp](https://github.com/1bit-MONSTER/llama.cpp), branch `1bit/hrx-vulkan-patched` | AMD's `hrx-graph-develop-v2` (ggml-hrx on ggml-org llama.cpp) plus our commits ("Our patches") |
| `third_party/hrx-system` | [1bit-MONSTER/hrx-system](https://github.com/1bit-MONSTER/hrx-system), branch `1bit/main` | [ROCm/hrx-system](https://github.com/ROCm/hrx-system) (libhrx, loomc and the Loom tools) at AMD's pin plus our commits ("Our hrx-system commits") |

- **Our hrx-system commits** (branch `1bit/main` of our fork, on AMD's pin `51b1739`): a Loom
backport that drains ALU dependencies after a lane-mask SGPR pair is overwritten on GFX11 wave64
(the #313 NaN: the prompt FA kernel compiled for a 190-row ubatch read V from a wrong address in
about 1% of runs; upstream fixed the class in `ee77c8f7f`/`336037562`, which cannot be pinned yet),
and two libhrx device knobs for diagnosis, `HRX_AQL_BLOCK_SIZE` and `HRX_COMMAND_BUFFER_MODE`
(defaults unchanged). Rebase them by hand when AMD's pair moves.
| `third_party/hrx-system` | [1bit-MONSTER/hrx-system](https://github.com/1bit-MONSTER/hrx-system), pinned on branch `1bit/e3e6a976-pin-6` (the commit `config/hrx-system-hold.config` names; `1bit/main` is where the unheld bump merges AMD) | [ROCm/hrx-system](https://github.com/ROCm/hrx-system) (libhrx, loomc and the Loom tools) at AMD's pin plus our commits ("Our hrx-system commits") |

- **Our hrx-system commits** (since 2026-10-18 on branch `1bit/e3e6a976-pin-6` of our fork, on
AMD's `e3e6a9766ccb`): two libhrx device knobs for diagnosis, `HRX_AQL_BLOCK_SIZE` and
`HRX_COMMAND_BUFFER_MODE` (defaults unchanged); engine#409 (libhrx bounds-checks a length-less ELF
extent instead of skipping the check); engine#410 (`libhip_intercept` covers every HIP symbol the
backend exports, init is idempotent); engine#401 (libhsa no longer opens `/dev/accel` in GPU-only
processes); #6 (`generate_stubs.py` takes signatures from `api.h`, so `--check` is trustworthy;
regenerated `stubs_generated.c`); and our fix for the long-context attention miscompile
([ROCm/hrx-system#1535](https://github.com/ROCm/hrx-system/issues/1535)): AMD's newer Loom no longer
reaches the defect on our prompts, but its multi-unit live-out guard is still in
`unit_liveness_builder.c`, so we keep removing it. The GFX11 wave64 lane-mask backport (#313) is
no longer ours: AMD carries its own (`planning/mask_write_wait`). The pin itself is a `-s ours`
merge of the previous pin `3319e536` (so every commit the engine shipped stays reachable, with the
tree of the tested commit `fc2213a1c`) followed by #6. Rebase these by hand when AMD's pair moves.
- **Where the pair comes from.** The two pins are the pair AMD's integration repo,
[ROCm/ggml-staging-automation](https://github.com/ROCm/ggml-staging-automation),
builds and tests together.
Expand All @@ -67,18 +74,20 @@ HRX0: AMD Radeon 8060S Graphics (Node 1) (gfx1151)
(`ggml/src/ggml-hrx`, `ggml/include/ggml-hrx.h`, `tests/*hrx*`), because AMD's ggml-hrx is
written against AMD's hrx-system. Those changes land as an ordinary commit, not a merge, so
AMD's HRX changes still arrive in full once the hold is lifted. It reports the hold in the run
summary and succeeds. Since 2026-10-10 hrx-system is held at `98d05d94`: the engine stays on
our HRX line while AMD's newer hrx-system miscompiles long-context attention
([ROCm/hrx-system#1535](https://github.com/ROCm/hrx-system/issues/1535)).
- **The backport line (2026-10-16).** The hold now names `1bit/held-98d05d94-3fixes`, a branch off
summary and succeeds. From 2026-10-10 hrx-system was held at `98d05d94` while AMD's newer
hrx-system miscompiled long-context attention
([ROCm/hrx-system#1535](https://github.com/ROCm/hrx-system/issues/1535)). On 2026-10-18 the
engine moved by hand to AMD's `e3e6a9766ccb` with our commits and our #1535 fix (above), after
test-backend-ops 1141/1141, the long-prompt needles, KLD 0 against the old pin on two models and
the hardware gate; the hold now names that pin, so later AMD hrx-system moves stay manual too.
- **The backport line (2026-10-16, superseded 2026-10-18).** The hold named `1bit/held-98d05d94-3fixes`, a branch off
that same held commit carrying three fixes that have nothing to do with the AMD-core move:
engine#409 (libhrx bounds-checks a length-less ELF extent instead of skipping the check),
engine#410 (`libhip_intercept` covers every HIP symbol the backend exports; the documented
interceptor variable works and init is idempotent) and engine#401 (libhsa no longer opens
`/dev/accel` in GPU-only processes), plus the +61/−0 `api.h` forward-port the regenerated
passthrough stubs need. Nothing under the held AMD core changes, so the #1535 question is
untouched. When those fixes are rebased onto `1bit/main` — or the hold is lifted — this line
is dropped; until then it is what lets three small fixes ship without a 1688-commit core jump.
untouched. Those fixes are now replayed on the e3e6a976 line above, and this branch is history.
- **The token it needs.** The secret `HRX_BUMP_TOKEN` is a fine-grained token with
Contents read/write on `1bit-MONSTER/llama.cpp` and `1bit-MONSTER/engine`, and
Pull requests read/write on `1bit-MONSTER/engine`.
Expand Down
2 changes: 1 addition & 1 deletion registry/architectures.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"about": "HF architecture -> GGUF architecture and the backends whose code accepts it. Generated by tools/registry_build.py from the pinned sources; do not edit.",
"sources": {
"llama.cpp (hrx)": "1a5dcba2aa6d91dacec3c3c00a37dd77aa9c6084"
"llama.cpp (hrx)": "8d9ce2c1aa60ed6b2334df3576e203e40c533a9c"
},
"counts": {
"hrx": 292,
Expand Down
2 changes: 1 addition & 1 deletion third_party/hrx-system
Submodule hrx-system updated 9615 files
2 changes: 1 addition & 1 deletion third_party/llama.cpp
Submodule llama.cpp updated 93 files
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/bf16_f16.loom
+6 −6 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/dequant.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/dequant_1bit.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/f16_f16.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/f32_f16.loom
+8 −4 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/llm_attention_qkv_matmul_postops.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/mul_mat_f32_f32_postops.loom
+14 −12 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/mul_mat_f32_f32_wmma_core.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/mul_mat_id_f32_f32_postops.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/mul_mat_quantized_f16_prefill.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/publish_f32.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/q6_k_f16.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/motifs/rmsnorm_f32.loom
+6 −6 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/attention_sink_f32.loom
+4 −4 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/binary_f32.loom
+10 −10 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/copy_f32.loom
+10 −10 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/flash_attention_decode_split_f32_f16_wmma.loom
+10 −10 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/flash_attention_f32_f16_wmma.loom
+5 −5 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/gated_delta_net_f32_wmma.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/get_rows_f32.loom
+4 −4 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/kquant_decode_f32.loom
+5 −5 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/llm_attention_k_matmul_rope_set_rows_decode_f32_f32.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/llm_attention_k_matmul_rope_set_rows_f32_f32_wmma.loom
+5 −5 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/llm_attention_q_matmul_rope_decode_f32_f32.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/llm_attention_q_matmul_rope_f32_f32_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/llm_attention_v_matmul_set_rows_decode_f32_f32.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/llm_attention_v_matmul_set_rows_f32_f32_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_add_f32_f32_wmma.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_add_next_rmsnorm_f32_f32_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_bias_add_f32_f32_wmma.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_bias_add_next_rmsnorm_f32_f32_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_bias_f32_f32_wmma.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_dual_q4_f32_decode.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_f32_f32_decode.loom
+6 −6 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_f32_f32_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_id_decode_f32.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_id_f16_f16_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_id_f32_f32_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_id_postops_f32_f32_wmma.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_id_postops_next_rmsnorm_f32_f32_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_id_swiglu_f16_f16_wmma.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_id_swiglu_f32_f32_wmma.loom
+13 −13 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_q5_k_q8_plane_wmma.loom
+17 −17 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_q6_k_packed_f16_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_swiglu_f32_f32_decode.loom
+9 −9 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_swiglu_f32_f32_wmma.loom
+7 −7 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_swiglu_symmetric_i4_wmma.loom
+26 −26 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_symmetric_i4_wmma.loom
+10 −10 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/mul_mat_symmetric_i8_wmma.loom
+27 −0 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/normalization/rmsnorm_binary_f32_lowtoken_striped.loom
+15 −15 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/rmsnorm_binary_f32.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/rmsnorm_binary_q8_1_x4.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/rmsnorm_f32.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/rope_f32.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/rope_set_rows_f32.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/set_rows.loom
+2 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/small_rows_f32.loom
+28 −28 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/ssm_conv_f32.loom
+9 −9 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/ssm_conv_generic_f32.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/zaya_cca_conv_decode_f32.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/loom-libs/ops/zaya_cca_qk_norm_decode_f32.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen/token_embedding_bringup_workaround.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/ggml/linear_q6k_f32.loom
+4 −4 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/ggml/linear_q6k_q8_1_x4.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/ggml/quantize_q8_1_x4.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/attention_postprocess_f32_f16.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/attention_prepare_quantized.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/attention_qkv_postprocess_fused.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/attention_qkv_quantized.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/attention_qkv_same_format_prefill.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/batched_decode_expert_dispatch.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/batched_decode_gate_up_q4k.loom
+6 −6 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/dense_linear_quantized_f16_wmma.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/flash_attention_decode_f32_f16_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/flash_attention_f32_f16_wmma.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/model_config.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/routed_down_next_q8.loom
+5 −5 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/routed_down_q4k.loom
+10 −10 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/routed_down_q6k.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/routed_down_quantized_f16_wmma.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/routed_down_weighted_reduce_next_rmsnorm_f32.loom
+1 −1 ...src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/routed_down_weighted_reduce_next_rmsnorm_q8_1_x4.loom
+6 −6 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/routed_gate_up_swiglu_q4k.loom
+1 −1 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/routed_linear_q4k_f16_wmma.loom
+5 −5 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/router_projection_f32.loom
+3 −3 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/router_projection_top8_fused_f32.loom
+2 −2 ggml/src/ggml-hrx/kernel-corpus/kernels/qwen_moe/qwen3_moe/router_top8_f32.loom
+6 −6 ggml/src/ggml-hrx/loom-jit.cpp
+25 −2 ggml/src/ggml-hrx/tools/benchmarks/generate-model-benchmarks.py
+82 −0 ggml/src/ggml-hrx/tools/benchmarks/test-generate-model-benchmarks.py
+93 −1 tests/hrx-backend-test.cpp
+8 −0 tests/test-hrx-loom-jit.cpp
+66 −4 tests/test-hrx-ops.cpp
Loading