Skip to content

feat(manifests/hpc02): #144's map with kq_imatrix on attn and gdn qkv/z - #165

Closed
gold-tree-tech wants to merge 1 commit into
coderbench:mainfrom
gold-tree-tech:feat/hpc02-q5k-attn-gdn-kq-imatrix
Closed

gold-tree-tech wants to merge 1 commit into
coderbench:mainfrom
gold-tree-tech:feat/hpc02-q5k-attn-gdn-kq-imatrix

Conversation

@gold-tree-tech

Copy link
Copy Markdown
Contributor

Candidate

manifest manifests/hpc02/pr144-kq-imatrix-attn-gdn-q5k.yaml
candidate id 0bb8615daa65c1a2
summary #144's map (attention and Gated DeltaNet projections on Q5_K, routed downs but 34/38/39 on Q4_K, lm_head and embed on Q4_K) · kq_imatrix ×90 Q5_K (attention q/k/v, recurrent qkv/z), kq_imat ×79 (routed downs, attention o, recurrent out, lm_head, embed), unsloth bytes elsewhere · searchable ≈ 18.54 GiB
new quantizer? no (kq_imatrix@v1 from #146, kq_imat@v1 from #138)

Hypothesis

#144's map decodes fastest of everything measured (479.8 tok/s, 23.45 GiB) but failed the task guard at 558/784 with kq_rtn's rounding. The formats stay, so decode, prefill and memory stay #144's; only the rounding changes. Where the full input covariance is pinned (attention q/k/v and recurrent qkv/z, attn_input.xtx), kq_imatrix rounds with GPTQ; on layers 3, 12, 19 and 30 of the BF16 weights that brings the xtx-weighted Q5_K error to 0.12-0.32 of kq_rtn's, against 0.18-0.45 for kq_imat. The rest uses kq_imat.

Evidence (optional)

One RTX 5090 with the repo's tools and an own BF16 reference. #147's recipe was built and evaluated on the same box as the anchor; it lands on the ledger's numbers (RP-KL 0.0856 vs 0.0855, tasks 567 vs 567, decode 474.8 vs 474.6).

recipe RP-KL decode tok/s tasks (vs V0 570/784)
#147 (anchor) 0.0856 474.8 567 (lost 23, gained 20)
this 0.0953 480.6, 480.7 563 (lost 22, gained 15; guard pass)

Paired RP-KL delta vs #147: +0.0096, 95% CI [+0.0021, +0.0177]. Peak memory 23.451 GiB. The point trades a little drift for the fastest decode on the track, so its gain depends on the speed edge over #147 and #158 (about 1.2% on this box).

Checklist

  • bittrellis --track HPC-02 manifest manifests/hpc02/pr144-kq-imatrix-attn-gdn-q5k.yaml --against manifests/ passes (no duplicate)
  • ruff check . and pytest -q pass
  • no changes to protected evaluator paths (see CONTRIBUTING.md)
  • quantizer PRs: n/a (manifest only)

…nd gdn qkv/z

Every attention and recurrent projection on Q5_K is the fastest measured
map (coderbench#144, decode 479.8), but kq_rtn's rounding failed the task guard
there. GPTQ from kq_imatrix on the tensors with a pinned x xT and kq_imat
elsewhere keeps the formats and passes it: RP-KL 0.0953 vs 0.0856 for
coderbench#147's recipe on the same 5090, decode 480.6, tasks 563 vs V0 570.
@coderbench coderbench added bt:frontier moves the internal frontier; credited eval:none evaluated, no new frontier space labels Oct 13, 2026
@coderbench

Copy link
Copy Markdown
Owner

BitTrellis evaluation · pr144-kq-imatrix-attn-gdn-q5k · 0bb8615daa65c1a2

Score: eval:none · ×0 on Gittensor when merged · FG-2 +0.001%

Epoch hpc02-e1 · status bt:frontier

RP-KL ↓ tasks passed ↑ decode tok/s ↑ prefill 4K tok/s ↑ peak GPU GiB ↓ holdout FG-2
this PR 0.0970 not run 480.6 40,082 23.45 not run 0.001%
V0 incumbent 0.0450 570/784 398.5 39,292 25.51 — —
↳ pr147-shallow-zo-q5k-downs-q4k (#156) 0.0876 562/784 475.3 40,352 23.21 PASS —
↳ pr147-kq-imatrix-downs-qkv (#158) 0.0807 563/784 475.4 39,474 23.48 PASS —

↳ the nearest results already on the frontier: FG-2 is the space this PR adds beyond them and every other result. Bold marks where this PR beats every row shown.

RP-KL measures how closely the model keeps the original's predictions (fidelity), not task accuracy; tasks are a guard, compared with V0 question by question.

Paired RP-KL vs V0: +0.0520 nats/token, 95% CI [+0.0442, +0.0603] (significant); decode +20.6%, prefill +2.0%, peak GPU -2.06 GiB.

FG-2 is the share of the quality × speed × memory space (normalized to the track's box) that this result adds on top of every earlier result. It is the PR's score.

GPU time: quality 1.2 min · performance 0.2 min

@coderbench

Copy link
Copy Markdown
Owner

Closed automatically. The evaluation above explains why this version is not merged. Closing does not affect your credibility on this repository, and a revised recipe is welcome as a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bt:frontier moves the internal frontier; credited eval:none evaluated, no new frontier space

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants