Repository navigation
gates: preserve the requested host room in Qwen node measurements - #720
Conversation
There was a problem hiding this comment.
Verdict: CLEAN: The measurement forwards the requested host room, and the functional gate retains its existing room.
Checked
Duplicates: 5 new source definitions and 16 probe declarations checked against existing owners; no actionable duplicates. No dryer pairs were available.
Complexity: run rose 26 → 27 from the fallible lever read; its dispatch structure is unchanged.
Silent failure: 5 optional/error sites followed. Unset room inherits, zero stays explicit, malformed room returns a named error, and unexpected census success panics.
Tests (static mutation tracing): forcing 20G at crates/gpu-gates/src/bin/gate_qwen38_nodes.rs:618 fails the command assertion; passing the gate constant at crates/gpu-gates/src/bin/gate_qwen38_nodes.rs:1753 fails the measurement probe for 32 GiB. Replacing the remote lookup at crates/gpu-gates/src/bin/gate_qwen38_nodes.rs:678 with local census fails the revised census assertion or reaches its explicit panic. Python syntax parsed; Rust tests were not executed here.
Gates: no threshold changed. The census test has a dated PIN, hardware-test naming and ignore attribute, and an explicit recipe invocation.
Performance: launcher setup and tests only; no per-token work changed.
Adversarial checks: unset, zero, malformed, unit-suffixed and maximum-u64 rooms preserve their registry semantics through the child command. The closed census endpoint fails before local card planning.
Escape catalog: no C1–C4 pattern matched.
Notes
dryer did not run, according to diagnostics.
The PR supplies std-only projection results, not full crate tests or a card gate run; GPU evidence is incomplete.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_qwen38_nodes.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)
|
The review is done and the contribution check passed, so I'm merging this. |
Qwen node 측정이 사용자가 정한 host room을 그대로 쓰도록 고치고, 같은 파일의 census 시험이 원격 조회를 실제로 검사하게 합니다.
Part of #565. Tracked in #699.
What and why
gate_qwen38_nodes --measure nodestarts a tier server as node 1. That server's command always setBLOOMERY_HOST_ROOMto 20G when a host tier was requested, so a measurement run with another host room (32G in the test below) still measured with 20G. The measured tier budget did not match the one the caller asked for, which can make two node measurements differ in host and NVMe placement for no reason the caller chose. The override came in with #411.The fix moves the command into one function,
node1_command, which takes the room as anOption<u64>.Some(bytes)sets the variable to those bytes.Noneadds no setting, so the server inherits the parent's environment. The measurement path hands over the room that the existingbloomery_levers::nvtier_levers()?.host_roomalready read, so no second parser was added and an invalid value is refused by that reader as before. The functional gate keeps its 20G room through one constant,GATE_HOST_ROOM, used by its five launcher calls.The second commit fixes a weak test in the same file.
census_clause_requires_the_remote_censusonly calledcensus_specson a dead address. It now builds aCommonfrom the lever registry and callscensus_plan, the function that runs in the gate, and checks that the error names the node at the unreachable address. Replacing the remote census with a local one makes it fail.Release notes: Fixed:
gate_qwen38_nodes --measure noderuns its tier server with the requestedBLOOMERY_HOST_ROOMinstead of a fixed 20G.Code shape
node1_commandis the only place that builds node 1's command. The room is read by the existingnvtier_leversowner. The five functional-gate calls shareGATE_HOST_ROOM.host: boolparameter ofnode1is replaced by the room, and the unusedcensus_specsimport in the tests is gone.?. No fallback replaces the chosen room with 20G.cargo fmtandcargo clippyare clean on what I touched.rustfmt --checkon the changed file ends with rc 0.cargo clippyhas not been run on this head.Duplication found or removed (
path:line): none. The duplicate scan reported no candidates.What I ran
The head is
8a24eb314a1907f90267168b3db60131f1386d95, two commits on main648dd751d9ed25f9a18d8a404e5f08e3fb52e512. The tests below are a std-only projection, not the crate's own test binary. I extractednode1,node1_command, the measurement call and the new tests from the source and compiled them withrustc --edition=2024 --test. Process spawn and the lever read are replaced by fixtures. No GPU was used and no model was loaded.Fail-first for the host room: on main, a 32G request reaches the server as 20G and the test fails (rc 101). On the head it reaches the server as 32G (rc 0).
The head also runs the command-builder test over unset, 0, the gate constant and 32G, with rc 0.
Census test, same projection, with the first census lookup of
census_plankept as written: the old test ends with rc 0 even with the lookup removed. The new test ends with rc 0 on the head and rc 101 once the lookup is removed.The fixture setup and the plan arithmetic after the lookup are stand-ins in this projection.
Other checks on the head:
rustfmt --edition 2024 --config skip_children=true --checkon the changed file ends with rc 0, and so doesgit diff --check. The duplicate scan ends with rc 0 and no candidates.What I ran into
This does not block the PR.
census_clause_requires_the_remote_censustest needs the Qwen model and corpus files thatCommon::newreads. I did not run it here, nor the GPU crate's own test binary or the functional gate, so the results above come from the projection only.cargo clippyandjust contrib-checkhave not been run on this head.Hardware
The projection ran on a DGX Spark host. This change touches only the gate binary and uses no GPU memory; the card line below is the machine's own report.
just gate-gpu-qwen38-nodesnot run: it needs the Qwen model and the gate workstation, which this check did not use.AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.