Repository navigation
Conversation
…lock_count, which counts the NextN block Co-Authored-By: Claude Opus 5.5 <[email protected]>
…outed layers, so the card holds only layer 1's experts Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Verdict: CLEAN: both gates now size the machine and walk the layers with the planner's count (inputs.model.layers), which fixes the stage-map mismatch without changing any gate threshold.
Checked
- Duplicates: 2 new items (
layerslocals) checked. They match the existing pattern in gate_glm5next_twocard.rs:531 and gate_solar2_twocard.rs:313. dryer did not run (no changed file undercrates/per diagnostics, although two are; no pair to read). - Complexity: crapper flagged nothing.
- Silent failure: 2 sites followed.
plan.n_l[l]andhp.experts[l]are indexed forl < 52.hp.expertsis sized byblock_count(53), so the range is in bounds.plan.n_lhas the planner's 52 entries. The old range reachedl = 52, which the planner has no entry for, so the new range is the safe one. The NextN block has no routed stacks in the planner, so it leaves the split and whole premises unchanged. - Types:
placed_ontakesusize(workstation.rs:293), andinputs.model.layersis used asusizeby the sibling gates. - Tests: no test added or changed in logic. Both edits are in
hw_-style gate binaries. The existing premise check (Premise::Split/Whole) still turns red if the plan puts all or no experts on the card. - Gates: no pin, band or tolerance moved.
- Escape catalog: no pattern matched (no shell code).
- Docs: the
docs/models.mdaddition ("22 of the 23 routed layers carry Q5_0 up stacks ... only layer 1's 128 experts go to the card") names the file and the cause. The PR body states the same.
Notes
- The PR body does not carry a GPU gate run per
CONTRIBUTING.md(nonvidia-smiline or commit hashes). The change does not alter kernels or timing, so this does not affect the verdict.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_nemotron_h_moe_card32.rs, crates/gpu-gates/src/bin/gate_nemotron_h_moe_e2e.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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gate-gpu-nemotron-h-moe-card32was red on main withstage map: the cards run 53 layers, the model has 52. The gate passedhp.n_layer(block_count, 53, which counts the NextN block) toplaced_on; the planner counts 52 (inputs.model.layers). Both nemotron gates now takeinputs.model.layers, as the mimo2, ds41 and glm5next gates do. For Bolt (88 blocks, no NextN) nothing changes.The gate stays red behind this for another reason: the real Lightning UD-Q4_K_XL has Q5_0 up stacks in 22 of 23 routed layers, and the card has no Q5_0 32-value entry, so the plan puts only layer 1's 128 experts on the card. The gate's premise holds once that entry exists (next quant round).
docs/models.mdnow says this.Evidence (box, real tier): base red with the stage-map line (553 s); fixed tree passes that line and reaches the arms;
card32_split_near_hostcosine 0.999995. The real gate never had a green row, and fixture landings defer it, so nothing caught the change.Found and fixed by a Sonnet round, reviewed by the lead.
🤖 Generated with Claude Code