Repository navigation
feat(manifests/hpc02): #144's map with kq_imatrix on attn and gdn qkv/z - #165
gold-tree-tech wants to merge 1 commit into
Conversation
…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.
BitTrellis evaluation ·
|
| 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.
- Tasks and private holdout skipped: they can only fail a result, and this one is already below the lowest paid tier on the measured objectives.
- Ranked with earlier open PRs on the frontier: feat(manifests/hpc02): #153 with kq_imatrix on the routed downs and recurrent qkv #164.
- All speeds compared here were measured on this evaluator's machine (references on 2026-10-12).
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
|
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. |
Candidate
manifests/hpc02/pr144-kq-imatrix-attn-gdn-q5k.yaml0bb8615daa65c1a2kq_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 GiBkq_imatrix@v1from #146,kq_imat@v1from #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_imatrixrounds 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).
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 .andpytest -qpass