Skip to content

qwen35moe e2e gate: the last-step test's unplaced CLI run drops the fixture tier's placed levers, which it would refuse by name - #1136

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-fix-e2e-card-budget
Nov 2, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-fix-e2e-card-budget

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

qwen35moe e2e gate의 마지막 단계 테스트가 fixture tier의 card budget 레버를 물려받아 CLI에서 거부되던 문제를 고칩니다.

What and why

just gate-gpu-qwen35moe-e2e ends with the ignored test hw_last_step_keeps_pass_path in crates/gpu-gates/src/bin/generate_qwen3moe.rs. It spawns generate_qwen3moe without --place. In the fixture tier tools/box.sh exports the fixture's BLOOMERY_CARD_BUDGET, the child inherits it, and the CLI lists the placed levers as acted on only beside --place, so it refuses the lever by name before it loads the model.

The spawned command now removes every name in q3place::PLACED_LEVERS from the child's environment, the same way gate_qwen38_nodes.rs and gate_qwen38_twocard.rs remove the card budget. The change is 5 lines in the test. No production code, kernel or gate numerics change.

Release notes: internal: the qwen35moe e2e gate's last-step test no longer inherits the fixture tier's card budget, which the unplaced CLI run refuses.

Code shape

  • No second copy. The test reuses q3place::PLACED_LEVERS, the owner of the placed lever list.
  • Model code holds only architecture facts. The change is in the gate's test and adds nothing to a common owner.
  • Dead code is gone. Nothing was made unused.
  • No silent failure. The CLI's named refusal is unchanged; the test stops triggering it.
  • Comments state what is true now. One comment states why the placed levers are removed.
  • No relaxed gate. No band, tolerance or lint moved.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up.

Duplication found or removed (path:line), or "none": none.

What I ran

Base cdbb84f7ddc5398cbbb519d3e57ffc7662cac319, PR head b0c3a02c42708cd374c2b1bd331833f0a813d985. The card budget is exported to reproduce the fixture tier's condition for the changed test.

$ nvidia-smi
Tue Nov  3 04:09:58 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.99.02              Driver Version: 595.99.02      CUDA Version: 13.2     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5090        Off |   00000000:01:00.0 Off |                  N/A |
|  0%   40C    P8             12W /  400W |       2MiB /  32607MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

Model: Qwen3.6-35B-A3B-Q4_K_M.gguf, sha256 4ac6a06bce551257267f49ad2226f8671a22519ccc1a4dde9d5b433d1f2a410d.

$ BLOOMERY_MODEL=qwen35moe ./tools/box.sh 'cargo oxide build --arch $(bash tools/arch.sh) -- -p bloomery-gpu-gates --features gpu --release --bin generate_qwen3moe && export BLOOMERY_CARD_BUDGET=20G && bash tools/gate.sh --gpu --oxide -p bloomery-gpu-gates --features gpu --release --bin generate_qwen3moe -- --ignored hw_last_step_keeps_pass_path --nocapture'
running 1 test
last-step pass: rows=false n=128 passes=16 kind=prefill
last-step pass: rows=true n=128 passes=16 kind=prefill
test cli::tests::hw_last_step_keeps_pass_path ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 7 filtered out; finished in 25.12s
gpu-gate.sh: generate_qwen3moe-74004647de5a7c4e ran 25 s (exit 0)

Hardware (if the change is for a machine)

  • Card and driver: NVIDIA GeForce RTX 5090, 595.99.02
  • CUDA: 13.2
  • Ran: hw_last_step_keeps_pass_path with BLOOMERY_CARD_BUDGET=20G

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

…ixture tier's placed levers, which it would refuse by name
@github-actions github-actions Bot added gpu The card engine: crates/gpu*, crates/app needs-gpu Changes code a card must check, and carries no gate run on a card labels Nov 2, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: The test removes the placed levers that its unplaced child run rejects while preserving its pass-path assertions.

Checked

Duplicates: 0 new items checked; the change reuses q3place::PLACED_LEVERS. Existing child-command code was compared; no new owner is needed. Dryer supplied no pairs.
Complexity: crapper flagged no functions. The added loop only removes child environment entries.
Silent failure: 0 new suppression sites. Child failure still reaches the status assertion with stdout and stderr; env_remove returns no Result.
Tests: static mutation analysis of generate_qwen3moe.rs:1095: replacing other with PrefillPath::Wide fails the kind=prefill assertion. Removing the new environment filtering under the fixture budget fails the child-status assertion. Both row modes retain their checks.
Gates: no pins, thresholds, assertions or cases moved or were removed. The test remains hw_-prefixed and ignored.
Escape catalog: no C1–C4 pattern matched. Both child commands remove all four placed levers, retain FORCE_IDS, and leave the parent environment unchanged. The sibling node and two-card child paths already remove these levers.
Performance: test setup only; no inference hot path changed.

Notes

Diagnostics report that dryer did not run. No local build or GPU gate was run. The PR supplies a passing targeted gate run through tools/gate.sh on an RTX 5090 with the fixture budget exported.

Card check: gpu-evidence. This pull request changes crates/gpu-gates/src/bin/generate_qwen3moe.rs and carries a gate run on the author's card, which counts as verified.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@github-actions github-actions Bot added gpu-evidence Verified on the author's card: the pull request carries the gate run and its output and removed needs-gpu Changes code a card must check, and carries no gate run on a card labels Nov 2, 2026
@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit 96aeabf into midagedev:main Nov 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gpu The card engine: crates/gpu*, crates/app gpu-evidence Verified on the author's card: the pull request carries the gate run and its output

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant