Skip to content

pins: llama.cpp 4df0f3e6c -> 8d26add2 (#429/#427/#428), and document the decode-split cap (engine#679) - #2874

Merged
bong-water-water-bong merged 1 commit into
mainfrom
1bit/679-pin-and-docs
Nov 19, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
1bit/679-pin-and-docs

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Pins third_party/llama.cpp from 4df0f3e6c (a provisional fork-branch head) to 8d26add2, the integration tip that contains the merged decode-split cap (#429, engine#679) and the merged IQ1_S producer arm (#427/#428, engine#2832), and updates the docs that describe them.

Why the pin check reports diverged

tools/check_pins.py reports:

FAIL third_party/llama.cpp: 4df0f3e6c -> 8d26add2 is diverged

The old pin is not a shipped line: #2865 pinned the unmerged IQ1_S producer arm's head (4df0f3e6c) so CI could build it. That branch merged with rewritten commits (#428 then #427, both rebase-and-merge), so:

  • git merge-base --is-ancestor 4df0f3e6c d9bdb641 -> yes: the old pin is an ancestor of the merged PR's head, i.e. its content is in the new tip;
  • GitHub compare 4df0f3e6c...8d26add2 -> diverged, ahead 2 / behind 4, because the merge rewrote the commit identity.

That is the "rewritten commit" case the pin rollback label exists for (the ds4 bump workflow comment documents the same situation, and tools/check_pins.py's docstring names the label). Label applied; this is not a content rollback.

What the pin contains

17fc2a32f  tools: word the IQ1_S pair comment ...
f2c91ccd9  hrx: cap the decode-split FA just below its measured crossover (engine#679) (#429)
8d26add2c  corpus: an IQ1_S producer arm in the f16 prefill publish (engine#2832) (#427)

registry/architectures.json records the new pin (it is generated from the pinned sources; only the pin line changes here).

Docs

  • docs/hrx.md "Known issues on HRX0", decode-split entry: states the new 2,944-token cap, why (the multipass reducer's cost grows with context; 2x slower at 16k), the measured crossover table (Qwen3-4B-Q4_K_M, both arms interleaved in one gpu-hold claim, split-on vs registration-disabled), and that test-hrx-ops pins both arms against the CPU reference while the engine gate does not run that suite.
  • docs/hrx.md HRX: decode-split multipass reduce output pass is O(blocks) per element, leaving a ~16% decode gap above 2048 #124 multipass section: says which of its measured rows the kept 2,049-2,944 band still covers, and that its 4,800 row is now above the cap.
  • docs/arch-gaps.md: the pin it quotes moves to 8d26add2.

Evidence for the pinned change

llama.cpp#429 body and the engine#679 comment: the cap keeps the split/multipass arm at 2,048/2,304 (+7-8%) and falls through to the general kernel above 2,944 on one binary at every acceptance depth; 6/6 test-hrx-ops rows incl. kv=2,304 multipass PASS against the CPU reference; deep retrieval at ~17.7k tokens passes on the kept general path; broad flash_attention failure set identical to the unpatched tree (0 patch-induced).

Refs engine#679, engine#2832.

…the decode-split cap (engine#679)

The engine pin was a provisional fork-branch head: #2865 pinned the unmerged
IQ1_S producer arm (4df0f3e6c) so CI could build it. That arm has now merged
into 1bit/hrx-vulkan-patched with rewritten commits (#428 -> #427, both
rebase-and-merge) and the decode-split cap merged as #429 (f2c91ccd), so the
integration tip contains all three:

  17fc2a32f -> f2c91ccd (#429, decode-split cap, engine#679)
            -> 8d26add2 (#427, IQ1_S producer arm, carries #428)

The compare API reports 4df0f3e6c...8d26add2 as diverged (ahead 2, behind 4):
the old pin was rebased away, not rolled back - 4df0f3e6c is an ancestor of the
merged PR head d9bdb641 and its content is in 8d26add2 - so this PR carries the
"pin rollback" label to skip the ancestry-only check, the same situation the
ds4 bump comment records.

registry/architectures.json records the new pin. docs/hrx.md: the decode-split
known-issue entry states the 2,944-token cap and the measured crossover table
(both arms interleaved in one claim, split-on vs registration-disabled), and the
#124 multipass section says which of its rows the kept band still covers;
docs/arch-gaps.md updates the pin it quotes.

engine#679, engine#2832
@bong-water-water-bong bong-water-water-bong added the pin rollback Moves a submodule pin backwards on purpose (skips the pin check) label Nov 19, 2026
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

427 - Partially compliant

Compliant requirements:

  • New HF model classes are mapped in registry/architectures.json as per the pinned sources
  • The PR updates documentation to reflect the new architecture support

Non-compliant requirements:

  • The PR does not explicitly show the mapping of new architecture classes in registry/architectures.json or the corresponding registry/significant.json entries

Requires further human verification:

  • Confirmation that tools/census_watch.py was re-run and the uncovered classes are now mapped

124 - Partially compliant

Compliant requirements:

  • The PR pins the llama.cpp commit that includes the fix for the multipass reduction performance issue

Non-compliant requirements:

  • No explicit code changes in the PR to show the restructuring of the output pass

Requires further human verification:

  • Verification that the performance improvement is actually observed in hardware benchmarks

679 - Partially compliant

Compliant requirements:

  • The PR pins the commit that includes the decode-split cap fix
  • The PR updates docs/hrx.md to document the decode-split cap

Non-compliant requirements:

  • No explicit code changes in the PR to show the actual implementation of the cap

Requires further human verification:

  • Verification that the cap is correctly implemented and measured in hardware
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Documentation Clarity

The documentation updates in docs/hrx.md are helpful but could be more explicit about how the decode-split cap is implemented and measured. It would be beneficial to include a brief explanation of how the cap is enforced in the code to provide better context for developers.

Since [engine#679](https://github.com/1bit-MONSTER/engine/issues/679) (llama.cpp `f2c91ccd`) this
multipass arm is offered only up to 2,944 tokens of padded key-value capacity - the measured point
where it stops winning against the general `ggml_flash_attention_f32_f16_wmma` - so the 2,100 and
3,000 rows above describe the band it still serves (2,049-2,944), and the 4,800 row is now above
the cap and runs the general kernel instead. The crossover measurement and the current limits are
in the decode-split entry under "Known issues on `HRX0`".
Architecture Mapping

The PR updates the registry/architectures.json file to reflect the new pinned commit, but it does not explicitly show the new architecture mappings. It's important to ensure that all new architectures uncovered by the census are properly mapped in this file.

"llama.cpp (hrx)": "8d26add2cf9a41a4b356becca7063a1576f90005"

@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) November 19, 2026 06:54
@bong-water-water-bong
bong-water-water-bong merged commit f735fcf into main Nov 19, 2026
17 of 19 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/679-pin-and-docs branch November 19, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pin rollback Moves a submodule pin backwards on purpose (skips the pin check) Review effort 3/5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant