Repository navigation
Pin llama.cpp d1747cb: Q2_K weights on HRX0 (llama.cpp #49) - #251
Merged
Merged
Conversation
b8d587e -> d1747cb is llama.cpp #49 only: Q2_K in the shared dequantizer (prefill WMMA, generic decode, GET_ROWS) and in the K-quant decode kernels. Qwen3-4B Q2_K on HRX0: Q2_K weights move from CPU_REPACK (709 MiB, 217 graph splits) to HRX0 (73 splits); pp512 686 -> 1300 tok/s, tg128 47 -> 75; KLD against the Q8_0 model equals the CPU's on both the prefill and decode paths. registry/architectures.json regenerated for the pin (tools/registry_build.py). docs/hrx.md: the sub-4-bit note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Docs7 for 1bit-monster/engine
Commit |
Collaborator
Author
|
Review (standing in for PR-Agent while
Good to merge once |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves
third_party/llama.cppfromb8d587etod1747cb. The only change is llama.cpp #49, which gives Q2_K weights a kernel on HRX0.Why it matters. Q2_K had no matmul on HRX0. At load time llama.cpp tests each weight with a 512-token matmul to decide where it lives; that test failed, so every Q2_K weight went to the CPU_REPACK buffer, and each use split the graph. Every Unsloth UD GGUF carries some Q2_K.
What #49 does
Measured on strixhalo (HRX0), Qwen3-4B requantized Q8_0 → Q2_K
-b 1), against 1.1140 on CPU and 1.1224 for the previous HRX with Q2_K on the CPU.test-backend-ops -b HRX0passes 929/929; MUL_MAT q2_K 11/11.Also in this PR:
registry/architectures.jsonregenerated for the pin.tools/registry_build.py --check-pinspasses, and so doestools/check_pins.py origin/main(ahead).docs/hrx.md: the sub-4-bit note now says what still falls back to the CPU (IQ2_XS/XXS, IQ1_S/M) and what context7.json: claim the Context7 library #49 changed.🤖 Generated with Claude Code