Skip to content

Keep HRX pin sync running when fork refresh fails - #380

Merged
bong-water-water-bong merged 7 commits into
mainfrom
copilot/resolve-hrx-pin-sync-issue
Oct 10, 2026
Merged

bong-water-water-bong merged 7 commits into
mainfrom
copilot/resolve-hrx-pin-sync-issue

Conversation

Copilot AI commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

The scheduled HRX sync stopped when refreshing the llama.cpp fork’s master failed because the token could not update a workflow file. This prevented the independent AMD pin synchronization from running.

  • Fork refresh: Treat the master mirror refresh as best-effort and emit a warning on failure.
  • Pin sync: Continue with the AMD HRX branch sync; ancestry and merge failures remain fatal.
if ! gh api -X POST repos/1bit-MONSTER/llama.cpp/merge-upstream -f branch=master > /dev/null; then
  echo "::warning::could not refresh 1bit-MONSTER/llama.cpp master; continuing with the HRX pin sync"
fi

Copilot AI changed the title [WIP] Fix scheduled HRX pin sync failure Keep HRX pin sync running when fork refresh fails Oct 9, 2026

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best-effort master refresh is correct: the mirror refresh is independent of moving the HRX branches, and the token's missing Workflows permission must not stop the pin sync (#372). Ancestry and merge failures stay fatal. Approving.

@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 18f8ff5)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

372 - Partially compliant

Compliant requirements:

  • The fork refresh is now treated as best-effort with a warning on failure
  • The HRX pin sync continues even if the fork refresh fails

Non-compliant requirements:

  • The PR does not include any documentation updates to reflect the new behavior

Requires further human verification:

  • The actual behavior of the workflow after this change needs to be verified in a test run
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Fork refresh failure handling

The change makes the fork refresh a best-effort operation, which is good for resilience. However, the warning message does not specify what the consequence of the failure is, which could be misleading. It's important to clarify in the warning that the HRX pin sync will continue, but the fork may be out of sync.

# Keep the fork's master current when the token permits workflow-file updates. This
# mirror refresh is independent of moving the HRX branches to AMD's pin.
if ! gh api -X POST repos/1bit-MONSTER/llama.cpp/merge-upstream -f branch=master > /dev/null; then
  echo "::warning::could not refresh 1bit-MONSTER/llama.cpp master; continuing with the HRX pin sync"
fi

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 9314f6f

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 7d01f45

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit a729e71

@bong-water-water-bong
bong-water-water-bong marked this pull request as ready for review October 10, 2026 15:49
@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) October 10, 2026 15:49
@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 18f8ff5

@bong-water-water-bong
bong-water-water-bong merged commit 91b3d0b into main Oct 10, 2026
7 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the copilot/resolve-hrx-pin-sync-issue branch October 10, 2026 15:52
bong-water-water-bong pushed a commit that referenced this pull request Nov 14, 2026
…the MTP one-request test, and Flash-Next's load fix

Three commits on the fork head 59967468e, seven files, none of them in ggml-hrx's runtime or kernel
corpus:

  1f107b11d  qwen4exp: drop two pre-#327 blocks AMD's design replaced (Flash-Next could not load); blackmamba loads (#381)
  550d06f92  hrx: one-token decode with a mixed-format gate/up runs unfused (+1.5 % on Qwen3.8-27B Q4_K_M) (#380)
  a74752b64  tests: test-mtp-one-request, one llama-server request with MTP drafting on the CPU (engine#2433) (#379)

1f107b11d is taken at the reviewer's request rather than bumping twice: Linux #381 merged 80 s after this
PR opened, so the first version could not carry it.

Verified at this pin (fork build-ops, 1f107b11d checked out):
* BUILD_RC=0
* the load fix needs the architecture table, and it runs with no device:
    test-llama-archs -> Summary: all 149 test(s) passed, 0 GGML_ASSERT, zamba2 and zaya included
* the dispatch change is plan-level, so its own cases also need no device. Run of the two discriminating
  cases at this pin: 2 passed, 0 failed, 0 known-fail, 0 unexpected-pass
    [PASS] mixed_format_swiglu_decode.q4k_q6k.t1     <- FAILS at the pre-#380 base, so the case does the work
    [PASS] mixed_format_swiglu_decode.q6k_q6k.t1
  (the third, q4k_q6k.t2, is the labelled known-fail; I ran all three at 59967468e and t2 reported
  known-fail as labelled -- 2 passed, 1 known-fail, 0 unexpected-pass)
* registry regenerated for the new pin, tools/registry_build.py --check-pins rc 0

Not run, and not claimed: hrx-buffer-test's 9 device cases and #379's test-mtp-one-request.sh both need the
GPU, which another lane holds (the run I did printed 'test skipped: no device available'). Nothing in these
three commits touches a buffer, an import or the MTP drafter: #380 is a matcher predicate, #379 is a script
plus a ctest row, and #381 is two model files plus a synthetic-GGUF fixture.
bong-water-water-bong pushed a commit that referenced this pull request Nov 14, 2026
… load fix, the decode policy, the MTP test

Four commits on the fork head 59967468e, eight files, none of them in ggml-hrx's runtime or kernel
corpus:

  a621453cd  test-llama-archs: zaya's mixed-batch column is SKIP, not a coin toss (engine#2444) (#382)
  1f107b11d  qwen4exp: drop two pre-#327 blocks AMD's design replaced (Flash-Next could not load); blackmamba loads (#381)
  550d06f92  hrx: one-token decode with a mixed-format gate/up runs unfused (+1.5 % on Qwen3.8-27B Q4_K_M) (#380)
  a74752b64  tests: test-mtp-one-request, one llama-server request with MTP drafting on the CPU (engine#2433) (#379)

This pins the head rather than a sha behind it, per the review: 550d06f92 was the exact tree whose
row in #381 read "abort at context creation", so pinning short of it would ship a llama.cpp in which
Flash-Next cannot load. #382 is test-only (7 lines) and converts zaya's mixed-batch column to SKIP
with the reason -- chunked and mixed decodes differ ~1e-8 and its top-1 router over n_expert+1 flips
about 1 seed in 20, so the column was a coin toss rather than a check.

Verified at this pin (fork build-ops, a621453cd checked out):
* BUILD_RC=0
* test-llama-archs -> Summary: all 149 test(s) passed, 0 GGML_ASSERT, 352 rows, zamba2 and zaya
  included. One disclosure: the FIRST run at this head died with rc=135 (SIGBUS) at the third row
  while the box showed 11.4 % iowait and four processes in D state on folio_wait_bit_common; an
  immediate retry of the same binary on the same tree passed all 149. Environmental, not the pin --
  and reported because a SIGBUS at row 3 is otherwise indistinguishable from a model regression.
* the dispatch change is plan-level, so its own cases need no device. At 1f107b11d: 2 passed, 0
  failed, 0 known-fail, 0 unexpected-pass of the two discriminating cases; at 59967468e all three ran
  as 2 passed / 1 known-fail / 0 unexpected-pass, and q4k_q6k.t1 FAILS at the pre-#380 base, so the
  case does the work it claims.
* registry regenerated for the new pin, tools/registry_build.py --check-pins rc 0

Not run, and not claimed: hrx-buffer-test's 9 device cases and #379's test-mtp-one-request.sh both
need the GPU, which another lane holds (the run I did printed 'test skipped: no device available').
Nothing in these four commits touches a buffer, an import or the MTP drafter: #380 is a matcher
predicate, #379 a script plus a ctest row, #381 two model files plus a synthetic-GGUF fixture, and
#382 a test column.
bong-water-water-bong pushed a commit that referenced this pull request Nov 14, 2026
… load fix, the decode policy, and per-arch test isolation

Five commits on the fork head 59967468e, nine files, none of them in ggml-hrx's runtime or kernel
corpus:

  c84f0fc6e  test-llama-archs: one child process per architecture, so an abort marks its row (engine#2444) (#383)
  a621453cd  test-llama-archs: zaya's mixed-batch column is SKIP, not a coin toss (engine#2444) (#382)
  1f107b11d  qwen4exp: drop two pre-#327 blocks AMD's design replaced (Flash-Next could not load); blackmamba loads (#381)
  550d06f92  hrx: one-token decode with a mixed-format gate/up runs unfused (+1.5 % on Qwen3.8-27B Q4_K_M) (#380)
  a74752b64  tests: test-mtp-one-request, one llama-server request with MTP drafting on the CPU (engine#2433) (#379)

Why the head and not a sha behind it: 550d06f92 is the exact tree whose row in #381 read "abort at
context creation", so pinning short of it ships a llama.cpp in which Flash-Next cannot load. The last
two commits are test-only (7 and 143 lines in tests/test-llama-archs.cpp).

Verified at this pin (fork build-ops, c84f0fc6e checked out):
* BUILD_RC=0
* test-llama-archs -> Summary: all 172 architecture(s) passed, each in its own process
  The count is not comparable to the 149 reported before #383: that number counted test rows, this one
  counts architectures, one child each. The harness now says so in its own summary line, which is the
  property that matters -- an assert, a SIGBUS or an OOM kill reddens THAT row instead of ending the
  table. Which is not hypothetical: my first run at a621453cd died rc=135 (SIGBUS) at row 3 with 11.4 %
  iowait and four D-state processes, and an immediate retry of the same binary passed all 149. Under
  the old harness that crash was indistinguishable from a model regression from the exit code alone.
* the dispatch change is plan-level, so its own cases need no device. At 1f107b11d: 2 passed, 0 failed,
  0 known-fail, 0 unexpected-pass of the two discriminating cases; at 59967468e all three ran as 2
  passed / 1 known-fail / 0 unexpected-pass, and q4k_q6k.t1 FAILS at the pre-#380 base.
* registry regenerated for the new pin, tools/registry_build.py --check-pins rc 0

Not run, and not claimed: hrx-buffer-test's 9 device cases and #379's test-mtp-one-request.sh both
need the GPU, which other lanes' hw-gate run and tickets have held all evening (the run I did printed
'test skipped: no device available'). Nothing in these five commits touches a buffer, an import or the
MTP drafter.
bong-water-water-bong added a commit that referenced this pull request Nov 14, 2026
… load fix, the decode policy, and per-arch test isolation (#2448)

Five commits on the fork head 59967468e, nine files, none of them in ggml-hrx's runtime or kernel
corpus:

  c84f0fc6e  test-llama-archs: one child process per architecture, so an abort marks its row (engine#2444) (#383)
  a621453cd  test-llama-archs: zaya's mixed-batch column is SKIP, not a coin toss (engine#2444) (#382)
  1f107b11d  qwen4exp: drop two pre-#327 blocks AMD's design replaced (Flash-Next could not load); blackmamba loads (#381)
  550d06f92  hrx: one-token decode with a mixed-format gate/up runs unfused (+1.5 % on Qwen3.8-27B Q4_K_M) (#380)
  a74752b64  tests: test-mtp-one-request, one llama-server request with MTP drafting on the CPU (engine#2433) (#379)

Why the head and not a sha behind it: 550d06f92 is the exact tree whose row in #381 read "abort at
context creation", so pinning short of it ships a llama.cpp in which Flash-Next cannot load. The last
two commits are test-only (7 and 143 lines in tests/test-llama-archs.cpp).

Verified at this pin (fork build-ops, c84f0fc6e checked out):
* BUILD_RC=0
* test-llama-archs -> Summary: all 172 architecture(s) passed, each in its own process
  The count is not comparable to the 149 reported before #383: that number counted test rows, this one
  counts architectures, one child each. The harness now says so in its own summary line, which is the
  property that matters -- an assert, a SIGBUS or an OOM kill reddens THAT row instead of ending the
  table. Which is not hypothetical: my first run at a621453cd died rc=135 (SIGBUS) at row 3 with 11.4 %
  iowait and four D-state processes, and an immediate retry of the same binary passed all 149. Under
  the old harness that crash was indistinguishable from a model regression from the exit code alone.
* the dispatch change is plan-level, so its own cases need no device. At 1f107b11d: 2 passed, 0 failed,
  0 known-fail, 0 unexpected-pass of the two discriminating cases; at 59967468e all three ran as 2
  passed / 1 known-fail / 0 unexpected-pass, and q4k_q6k.t1 FAILS at the pre-#380 base.
* registry regenerated for the new pin, tools/registry_build.py --check-pins rc 0

Not run, and not claimed: hrx-buffer-test's 9 device cases and #379's test-mtp-one-request.sh both
need the GPU, which other lanes' hw-gate run and tickets have held all evening (the run I did printed
'test skipped: no device available'). Nothing in these five commits touches a buffer, an import or the
MTP drafter.

Co-authored-by: bcloud <agent@local>
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.

bump-hrx: the scheduled HRX pin sync is failing

2 participants