Repository navigation
Conversation
…through the Q5_0 row's packed-layout kernels Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Verdict: CLEAN: I built no failure path that the code does not block, and I found no duplicate or unneeded element that needs a change before merge.
Non-blocking
⚠ No test pins the layer name of a Q5_0 fault in the relu² form: crates/gpu/src/card_leg.rs:1454. The new _at entry exists so that an id past the stack names its layer. The relu² tests (R2_CASES, hand launches at line 3264) call enqueue_gemv_q5_0_sel with layer 0 and only compare rows. Mutant: the Q5_0 arm calls the wrapper again (LAYER_NONE). No assertion turns red. Direction: for (Q5_0, Q5_0), give Relu2Leg::enqueue an id past the stack and assert f.layer == run.layer, as the arena test does at line 4018.
⚠ relu2_relayout has one caller: crates/placement/src/accepts.rs:445. The call site in moe.rs:121 could read card_sel32_runs(t.ty) && CardFormat::of(t.ty) != Some(accepts::leg_card_format(t.ty)). I keep it as advice because the function lets a test pin the load rule without a card. Remove it if no second caller comes.
Checked
- Duplicates: 9 new items checked (
StackW::resident,relu2_relayout,Sel32.q5,enqueue_gemv_q5_0_sel_at, the Q5_0 arm ofleg_card_format). The diff removes two copies (raon1stack(), thegemm32_stackmatch). The dryer paircard_leg.rs:977and:1632was already two copies and differs in the source ofiq. Not a finding. - Complexity:
enqueue_gemv_q5_0_sel_at(17) is the old body under a new name with onefaultparameter. No growth. - Silent failure: 4 sites followed.
leg_card_format's new arm reaches only programs whose predicates admit Q5_0. Other programs go throughcard_down_runsorcard_gate_up_runs, which exclude Q5_0. Q5_0 in a wrong form is refused bystack.q5_0()andwords(). - Performance: decode path, relu² form. One
gpu.q5()borrow per layer; same launch count; no allocation, copy or sync added. The PR body reportsptx-compareidentical. - Tests: the re-upload test fails if Q5_0 is covered (the stated mutant). The shared-format test fails if the Q5_0 arm is dropped. The
R2_CASESrows fail on a wrong layout. - Gates: no band or tolerance moved. Escape catalog: no match.
Notes
- The PR body lacks the
nvidia-smiline, both full commit hashes, and the commands with output (CONTRIBUTING.md).gpu.jsonevidence is false.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_nemotron_h_moe_card32.rs, crates/gpu/src/arch/nemotron_h_moe/moe.rs, crates/gpu/src/arch/nemotron_h_moe/prefill.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
Nemotron-3.5-Lightning's UD-Q4_K_XL carries Q5_0 up stacks on 22 of its 23 routed layers. The card's 32-value expert family had no Q5_0 arm, so only layer 1's 128 experts went to the card. Now a Q5_0 routed stack runs in that family beside Q5_1 and Q8_0 downs, placement accepts it, and docs/models.md says so.
Evidence (box, tree 97ea9b2 on main cb8d92e):
gate-gpu-nemotron-h-moe-card32, real tier, RTX A6000: PASSED; cosine to the host 0.999967 (card) / 0.999966 (whole, 0 experts on the host), prompt pass 0.999997 / 0.999794, argmax equal, eager = replay bit for bit.tools/gate-batch.sh --tier fixture --round-ledger:DONE total=246 red=0.just ptx-compare cb8d92ebdon gate_gpu_device, gate_kquant, gate_swap, bloomery-serve: identical;gate-ptx-spillgreen.bloomery-placement --lib: 199 passed.Implemented by Sonnet rounds, reviewed by the lead.
🤖 Generated with Claude Code