Repository navigation
Bump llama.cpp to af04c9f2 and record gpu-kernels cf222e7d - #497
Conversation
llama.cpp moves from 96f81977 to af04c9f2 (1bit/hrx-vulkan-patched), which carries: - #123 ggml-hrx: claim views of q8_0 KV caches, so test-backend-ops actually runs the q8_0 FLASH_ATTN_EXT cases (29 were silently reported unsupported; now 28/28 pass on type_K=q8_0 and on type_V=q8_0) - #124 common: opt-in cumulative-confidence draft budget for MTP (--spec-draft-cum-p-min, default 0) with the ONEBIT_MTP_TRACE measurement hook in our own common/onebit-mtp-budget.h gpu-kernels moves from b373c3ec's predecessor to cf222e7d, which carries #22 (the q8_0 KV decode kernel takes short caches too: depth 512 -27% -> -7.4% on Qwen3-4B) and #23 (L2_NORM over views). It is not a submodule; docs/hrx.md now names the commit a release builds against. Hardware gate on this pair (engine main + these two pins, kernels present and off by default): ops 695/695, 7 kat rows, 5 kld rows, 4 needle rows - PASS, 0 ring events. Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/hrx.md's pin table gains the private-kernels row (gpu-kernels cf222e7d, not a submodule), and registry/architectures.json - which records the pins it was generated from - is regenerated for llama.cpp af04c9f2 (scripts/registry-regen.sh). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…) with the llama.cpp bump Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
…514 (the one-token f16 block-sum overflow fix + its guards; engine#3411) (#3462) - gpu-kernels#126 (engine#3411): hip.dense_kquant_swiglu no longer publishes its q8 copy (its f16 block sum overflows on large activations); the top-1 MoE Q4_K reader sums its own codes. - llama.cpp#502: test-hrx-ops moe_top1.q4_k.decode.{ordinary,large_activation}, the top-1 guard. - Also on the fork since the last pin: #494 (upstream security sync), #495, #496, #497, #498. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Bump llama.cpp to af04c9f2 and record gpu-kernels cf222e7d
Two pins move together, and
registry/architectures.jsonis regenerated (scripts/registry-regen.sh) soit records the new llama.cpp pin.
third_party/llama.cpp96f81977af04c9f2-DONEBIT_GPU_PRIVATE)b373c3ec's predecessorcf222e7dWhat each one does
test-backend-opsprobes the lone VIEW node of a quantized KV cacheand no matcher claimed a VIEW, so the q8_0 attention family was reported unsupported and silently
skipped — 29 cases. HRX now claims a VIEW of a q8_0 tensor (a pure alias; the FLASH_ATTN_EXT matcher
decides), and the cases run for real:
-p type_K=q8_028/28 passed,-p type_V=q8_028/28passed,
Backend HRX0: OK. The 4-bit KV type from that work is not shipped (it failed thequality bar), and q8_0 keeps llama.cpp's graph Hadamard rotation: skipping it raised KLD vs f16 from
0.000172 to 0.000903 on Qwen3-4B at c2048, so that candidate was dropped.
n_kv1024 the f16 decode matcher declinesbecause Loom's decode-split is as fast there; a q8_0 cache has no such fallback and fell through to
the scalar prompt kernel. q8_0 now uses its own floor: depth 512 on Qwen3-4B goes from -27 % to
-7.4 % vs f16 (75.23 vs 69.64 tok/s), 2048 -4.6 %, 8192 -5.5 %, with KLD unchanged at 0.000172
(identical with the old floor, so the change is speed-only).
--spec-draft-cum-p-min P(default 0 = off, historicalbehaviour): keep drafting while the running product of the drafter's top-1 probabilities stays above
P. Measured, 3 interleaved rounds, same binary, fresh server per arm: code 35.76 -> 40.75 tok/s
(+14.0 %), prose +1.2 %, short -5.7 %, greedy texts byte-identical in all three classes. It is
opt-in and documented as code-only for exactly that reason. Everything lives in our own
common/onebit-mtp-budget.hwith one member and six one-line hooks incommon/speculative.cpp; theONEBIT_MTP_TRACEmeasurement log is env-gated and never read back.handled instead of refused (this is what made
--spec-draft-n-max >= 5drop speculative decoding onthe 27B, where the target's L2_NORM came in as
f32[128,16,N,1] <- VIEW).Hardware gate (local, before this PR)
Engine main's own gate at this pair (llama.cpp
af04c9f2, gpu-kernelscf222e7d, hrx-system82804197), kernels present and off by default, run with a privateHW_GATE_STOREso concurrent gatescould not clobber the base logits:
0 new amdgpu ring events during the run.
Reviewer notes
gpu-kernelsis not a submodule; the release builds pass a checkout via-DONEBIT_GPU_PRIVATE, sothe commit is recorded in
docs/hrx.md's pin table in this PR (and in the commit message) instead ofas a gitlink.
🤖 Generated with Claude Code