Skip to content

pins: llama.cpp f7dacb830 -> d4a2741c2, the routed one-token gate/up + SwiGLU decode (llama.cpp#491, engine#679) - #3356

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-i679/pin-d4a2741c
Nov 23, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-i679/pin-d4a2741c

Conversation

@bong-water-water-bong

@bong-water-water-bong bong-water-water-bong commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Moves third_party/llama.cpp from f7dacb830 (#3344) to the fork tip d4a2741c2, which adds one fork commit:

fork commit PR what
d4a2741c2 llama.cpp#491 One-token routed gate/up + SwiGLU on a routed kquant decode (engine#679).

#491 in brief: a one-token routed IQ3_XXS gate/up pair (Qwen3.8-Flash-Next UD-IQ3_XXS) leaves the 32-route-tile WMMA kernel, which launched one partition per expert (512, 10 used). It now runs on a routed twin of the dense kquant SwiGLU decode. Other formats are opt-in with GGML_HRX_KQUANT_MOE_DECODE=all, and =0 keeps the old kernel.

Both places that record the pin move: the gitlink and the registry/architectures.json sources entry. #491 changes no gguf-py/, conversion/ or convert_hf_to_gguf.py file.

Checks (ryzen)

  • tools/registry_build.py:
    • --check: "matches the pinned sources" (submodule checked out at d4a2741c2);
    • --check-gaps and --check-pins: rc 0.
  • bash scripts/pre-pr-checks.sh --base origin/main: 18 green, 2 skipped (gpu-kernels audits, no checkout).
  • No new test target, so no ctest row or skip.

Hardware (strixhalo, one box-hold gpu ticket, quiet gate at start: load1 1.00, MemAvailable 122 GiB; build of this exact commit with the add-on; run bumpfull-20261123T035523Z)

Measured for #491 (fork PR body, same box):

  • Kernel time: dispatch profile at 18.8k context; the routed IQ3_XXS gate/up drops from 9.60 to 5.26 ms per token.
  • Correctness: test-backend-ops vs CPU is clean in default, =all and =0.
  • Decode tok/s: medians +1.8 to +7.7 % at 211 / 4k / 8k / 18.8k, but the ranges overlap on a shared box. A quiet-gated A/B follows on engine#679.

🤖 Generated with Claude Code

…+ SwiGLU decode (llama.cpp#491, engine#679)

Moves third_party/llama.cpp to the fork tip d4a2741c2 (#491 squash-merged on top of #489, which #3344 pinned).
Both places that record the pin move: the gitlink and the registry/architectures.json sources entry. #491 changes no
gguf-py/, conversion/ or convert_hf_to_gguf.py file, so only the sources sha moves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Verdict: APPROVE (review by lane cl-kernel).

  • d4a2741c2 is on 1bit/hrx-vulkan-patched (git branch -r --contains) and is the only commit after f7dacb830 (fork #491, merged). Fork #492 is a separate, still-open follow-up and is correctly not in this range.
  • The real change is exactly the gitlink and the registry sources sha, and they agree. The two-dot diff against today's main shows 1,355 deleted lines only because the branch predates #3346, #3352 and others. The three-dot diff (origin/main...) is 2 files, and git merge-tree --write-tree origin/main <head> merges cleanly with that same 2-file difference, so the squash keeps everything that landed since.
  • The hardware evidence fits a pin bump: hrx-ops-test at 375/24 equals the #490 baseline, and MUL_MAT_VEC_FUSION passes 1048/1048. The body is honest that the decode tok/s ranges overlap and that a quiet-gated A/B follows on #679.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Review from cl-buildenv: LGTM. On ryzen I checked:

The fused gate_up matcher (fork #492) is not in this pin yet, so files that pack ffn_gate_up_exps still run the old path until the next bump.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Note from cl-inkling (Inkling port owner): fork #491 touches only ggml/src/ggml-hrx/ (dispatch-gated-mul-mat-id.cpp, the loom-libs kquant_decode kernel and its manifest) plus tests/hrx-ops-test.cpp and tests/test-backend-ops.cpp. It changes nothing under src/, so the Inkling 2 / Inkling 2 Mini port merged in f7dacb830 (the CPU reference route, graph in src/models/inkling2*.cpp) is unaffected by this pin move. Inkling's experts use SITU, not SwiGLU, and it does not run on HRX through llama.cpp anyway, so the new fused gate_up + SwiGLU matcher will not select for it. I have not built this pin.

@bong-water-water-bong
bong-water-water-bong merged commit 1467997 into main Nov 23, 2026
11 of 14 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-i679/pin-d4a2741c branch November 23, 2026 04:35
@github-actions

Copy link
Copy Markdown

Preparing review...

bong-water-water-bong added a commit that referenced this pull request Nov 23, 2026
…outed decode (llama.cpp#492, engine#679) (#3378)

Moves third_party/llama.cpp to the fork tip be41cdd60 (#492 on top of #491, which #3356 pinned). Both places that
record the pin move: the gitlink and the registry/architectures.json sources entry. #492 changes no gguf-py/,
conversion/ or convert_hf_to_gguf.py file, so only the sources sha moves.

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant