Repository navigation
Pin gpu-kernels eb97e1dc: 2..8-token K-quant verify kernels (Qwen3.8-27B --mtp +31-39%) - #487
Conversation
…27B --mtp 25.9/20.5/21.9 -> 36.0/26.8/29.9 tok/s gpu-kernels eb97e1dc (merge of 1bit/mtp-verify-tokens 6c4a0e76) carries two changes: - kquant_tokens_q8.hip + dispatch-hip-kquant-tokens.cpp: 2..8-token Q3_K/Q4_K/Q5_K/Q6_K/IQ4_XS/IQ4_NL projections and gate/up+SwiGLU on q8_1 activations, each weight block read once for every token. The 4-token MTP verify step on Qwen3.8-27B goes from 121.5 to 88.0 ms of device time. - pad_f32 spread over workgroups: the MTP draft step goes from 6.4 to 4.1 ms. Qwen3.8-27B UD-Q4_K_XL + MTP head, llama-server, strixhalo performance mode, medians of 3 interleaved fresh servers (code/prose/short): 25.92/20.50/21.91 -> 35.97/26.76/29.92 tok/s (Vulkan was 35.0/28.3/28.9); without MTP unchanged. KLD of the verify path (llama-perplexity -b 4 -ub 4): 0.002344 -> 0.002626. tests/golden/hw-gate/kat-zaya1-8b.json re-recorded at this pin (scripts/hw-gate.sh --phases build,kat --models zaya1-8b --record). llama-server runs the last 4 prompt tokens of ZAYA1 as their own batch, which now takes the q8 kernels; two cases moved at near-ties (prefix-reuse token 0, top-2 margin 0.20; varied-1620w token 5, margin 0.096), with the answers unchanged. No other golden and no KLD base changed. Full scripts/hw-gate.sh in check mode at this commit: PASS on every row (ops 663/663, fa-decode-q8, kat/kld/placement/needle on all seven model rows, 0 ring timeouts). Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
…nside Lemonade) (#488) - README: lead with the census (43/43 on the GPU, #476/#480/#481) and Qwen3.8-27B MTP 36.0/26.8/29.9 tok/s (#487); one hop (#475), strict placement (#482), hw-gate kernels and placement (#478/#484), allocation safety (#486), Ubuntu 26.04 PPA lemond (#483), ONNX on the NPU via the user's Ryzen AI install (#386); Vulkan/ROCm/CUDA/ZINC/ComfyUI/MLX/Windows cut (#306); no release date; NPU in progress with no speed numbers. - npu.md: a status page with the public parts only (model format, serving, add-on hook, build); no runtime method, no NPU speeds. - releases.md: "Releases", first release when the checklist is done; neutral package checks. - lemonade.md, serve.md, hrx.md, laya.md, PORTING.md, registry.md: one hop, MTP on HRX (#487), census lead, add-on wording without private repository names or NPU speeds. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…k skipping (Qwen3-4B pp4096 +45%) (#491) gpu-kernels 08bb2241 adds, since e85b7547: - #19: W4A4 prompt prefill on the iu4 WMMA (Q4_0, off by default). - #20: fa_prompt_f16_d128, a WMMA prompt flash attention for f16 KV caches, head 128, that skips KV blocks whose mask is -inf for a whole query tile; no 2048-row limit. Measured on strixhalo gfx1151, performance mode, private build (llama.cpp 5dcf6623 + hrx-system 82804197 + the add-on): Qwen3-4B Q5_K_M 4096-token prompt: attention 916.5 -> 296.0 ms at ub 2048; llama-bench pp4096 ub2048 2103.0 -> 3043.8 (+44.7%), pp4096 ub512 +6.3%, pp2048 ub2048 +7.5%. Qwen3.8-27B unchanged (interleaved x3, within +-0.3%). Correctness: fa-prompt-bench vs a double reference PASS on 7+ shapes; KLD vs the Loom kernel 4B 0.000002, Coder-30B-A3B 0.000912, ZAYA1-8B 0.007729 (top-1 routing amplifies it; against a CPU reference the new kernel is as close as Loom: ZAYA ub128 0.0412 vs 0.0417, Qwen3-1.7B 0.007708 vs 0.007716). scripts/hw-gate.sh --bin (ops,kat,kld,needle,placement) on that build: PASS on every row except kat zaya1-8b varied-1620w, which diverged at token 5 - the near-tie noted in #487 (the answer is unchanged, 7341). tests/golden/hw-gate/kat-zaya1-8b.json re-recorded at this pin (scripts/hw-gate.sh --phases kat --models zaya1-8b --record --bin <that build>). Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
… and the hrx-ops-test expectation rewrites (engine#3317, engine#3120, engine#2774, engine#679) (#3325) Four fork commits above main's pin (#3211 merged 7737fa364): 670897cad hrx: the IQ3_XXS table decode binds the six buffers its kernel launches with (#487) ef3b0c036 qwen4exp: the fused top-k mask's zero base row is one host input (#483) 2c467b947 hrx-ops-test: stored-layout routes get a stored-layout assertion (engine#3120) (#484) 9db01568b hrx-ops-test: retired kernel names rewritten to what the matcher set selects (engine#2774) (#486) Both halves carry 9db01568b (gitlink + registry sources). The range changes no gguf-py/, conversion/ or convert_hf_to_gguf.py file, so tools/registry_build.py derives the same table and only the sources sha moves. No new test target, so tools/ci/ctest_skips.txt and ctest_known_fail.txt are unchanged. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Pins gpu-kernels #17. Qwen3.8-27B --mtp on HRX: 25.9/20.5/21.9 -> 36.0/26.8/29.9 tok/s code/prose/short (Vulkan 35.0/28.3/28.9); no-MTP decode unchanged (12.2).
Re-records tests/golden/hw-gate/kat-zaya1-8b.json only: llama-server runs the last 4 prompt tokens of GDN/SWA models as their own batch, so the new 2..8-token kernels moved ZAYA at two recorded near-ties (0.20 / 0.096 nats; answers still correct). KLD base unchanged (ZAYA KLD 0.000000 against it).
Full hw-gate in check mode at this commit (strixhalo): PASS, ops 663/663, fa-decode-q8 6/6, kat/needle/placement/kld on all models incl. the q8 KV rows. registry check-pins and copyright clean. Merged by hand after this PR's CI gate.
🤖 Generated with Claude Code