Repository navigation
gate_qwen38_serve: the props clause plans the card and host room the server's --place gate plan record names (a GB10 plans its unified pool) - #1018
Conversation
…steps (a plain load places more target experts on the card)
…server's --place gate plan record names (a GB10 plans its unified pool)
There was a problem hiding this comment.
Verdict: CLEAN: The gate compares the same loaded placement and preserves exact token checks.
Non-blocking
⚠ Complete the gate evidence: crates/gpu-gates/src/bin/gate_qwen38_serve.rs:908. The shared props_engine change also affects the plain arm; the supplied excerpts cover the drafted arm and isolated width_cost. Run just gate-gpu-qwen38-serve and attach the output, model files, both tested commit hashes and the nvidia-smi line. This verifies the shared path and makes the GB10 result reproducible.
Checked
Duplicates: 1 new item (steps_of) checked against the shared client and sibling gates; no duplicate owner. No dryer pairs were available.
Complexity: props_engine 54 → 57 adds fallible plan-input setup; drafted_main 17 → 19 adds reference checks; width_cost 23 → 24 adds a count check. These extend existing stages.
Silent failure: 5 record/response paths followed: plan room, card free bytes, HTTP/JSON, token decoding and draft counts. Required record/status/count errors propagate; the drafted reference length is checked before continuation slicing.
Tests, static mutation review: dropping !asks at crates/serve/src/genloop.rs:508 makes the new zero-draft checks fail. Taking proposal ids instead of verified ids at crates/runtime/src/speculative.rs:533 breaks the exact comparisons. Changing placement bytes still fails props_engine_bytes_are_the_plans.
Gates: both replacement token comparisons carry PIN(2026-10-30), reasons and before/after evidence. No numeric band moved.
Adversarial checks: fresh requests reset held state; the reference runs single-row steps; requests with no passes emit no width record; recorded free bytes rebuild the unified pool; given plan room avoids a second drift deduction.
Escape catalog: C1–C4 do not match. Performance: gate tooling only; no engine hot path changed.
Notes
Static review only; card gates were not run here. The supplied evidence lacks the nvidia-smi line and both tested commit hashes, so GPU evidence is false. Diagnostics report that dryer did not run.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_qwen38_serve.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. |
Qwen3.8 serve gate의 drafted arm이 DGX Spark에서 실패하던 비교 기준 두 곳을 고쳤습니다.
What and why
gate_qwen38_serve --arm draftedfailed on a DGX Spark in three clauses, and the engine was not at fault. Both defects were in what the gate compares against:generate_qwen3moe's ids. The draft's card bytes leave fewer target experts on the card, so the drafted load puts some experts on the host, where sums round another way, and a greedy id differs at a near tie. The drafted arm and thewidth_costclause (plain arm, draft on) now take their reference from the same server: one greedy/completionwithn_probs, which runs one row at a time and drafts nothing. A new check per clause pins that this request drafted nothing, and the comparison stays an exact match. The re-pin carriesPIN(2026-10-30)./propsclause planned with the RTX 3090's card spec and read host memory after the server had loaded, which sent a row-gathered table to NVMe that the server kept on the host. It now plans with the card--place gateresolves to, takes its free bytes from the server's plan record (a unified card's pool), and takes the host room the same record names. On a 3090 the spec and the room are the ones it used before.Release notes: internal: the Qwen3.8 serve gate's drafted and width chooser clauses compare a drafted load against its own steps and plan the card the server resolved, so the drafted arm passes on a DGX Spark.
Code shape
The review reads these first. A box left unticked needs one line of why.
copying it (
AGENTS.md"Common code first",docs/rust-quality.mdR14). Where I found an existing copy, Inamed it below.
(tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
tools/check-comments.sh).PIN(YYYY-MM-DD):and its reason.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line), or "none": none. Both clauses share one helper,steps_of, and the draft count is read throughserve_client::draft_counts.What I ran
All runs are
gate_qwen38_serveon a DGX Spark (GB10), Qwen3.8-Flash-Next UD-Q4_K_XL (four shards) with the MTP Q8_0 draft, promptThe capital of France is, 16 tokens. The drafted run isBefore, on the unchanged gate:
After, with the same commands:
The
width_costclause, run alone on the changed gate:Hardware (if the change is for a machine)
AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.