Repository navigation
Conversation
HostRun keeps one Option<HostLayer> per model layer, built by build_at from the strictly ascending set of layers that carry a host share, so a body that interleaves MoE layers with others (Nemotron 3.5 Bolt) can place routed experts on the host. A layer with no host share is refused by name at its one lookup (view_of); a set out of order or a view count that differs is refused at load. model::host_run takes the set; V4.1, GLM-5.3 and placed Qwen3.8 pass the contiguous run they had, so for them this is a move: canon-check 922/922 identical against bc4bf07, and the owning gates green (fixture tier, plus gate-gpu-hybrid, qwen3moe-e2e and mimo2-flash on the real tier). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rompt run as steps is not read as wedged Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r in ff Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the whole model does not fit the card The seat picks the placed load by itself, so a 12 GiB card serves Bolt with no flag. gate_nemotron_h_moe_e2e gains host_tier_near_whole_card (card, mid, host and room12g arms). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s names.w without a reborrow (clippy) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Owning gates after the rebase (fixture tier, box, 3090 + A6000): |
There was a problem hiding this comment.
Verdict: MUST_FIX: the new gate can succeed after a device fault; duplicated scratch accounting and redundant API elements also need correction.
Must fix
1. Fail the gate when its reference walk faults
crates/gpu-gates/src/bin/gate_nemotron_h_moe_e2e.rs:1159 When earlier clauses pass and this reference walk raises a device fault, fresh reports it and returns None. Returning Ok(None) makes run skip the host-tier clause without clearing ok (lines 1400–1416), so the gate prints PASSED and exits successfully.
Fix this before using the clause as placement evidence. Replace the return with:
return Err(checks_failed());2. Give scratch byte accounting one owner
crates/gpu/src/arch/nemotron_h_moe/body.rs:362 duplicates the router and six buffer terms in crates/gpu/src/arch/nemotron_h_moe/body.rs:548 (R14). These totals drive both the load's budget check and resident-byte reporting.
Sharing the existing owner now prevents later buffer additions from updating only one total. Replace:
fn resident_bytes(&self) -> usize {
let stores: usize = self.layers.iter().map(|l| match l {
Layer::Mamba(m) => m.store.bytes(),
Layer::Attn(a) => a.bytes(),
Layer::Moe(_) => 0,
}).sum();
stores
+ self.prompt.as_ref().map_or(0, Prompt::bytes)
+ self.scratch_bytes()
}3. Remove redundant API elements
crates/gpu/src/arch/nemotron_h_moe/placed.rs:202 repeats the required crates/gpu/src/arch/nemotron_h_moe/placed.rs:234; the adjacent hosted_layers has no caller. crates/gpu-gates/src/bin/shared/serve_seats/nemotron.rs:195 only forwards step. crates/gpu-gates/src/generate.rs:683 accepts scratch bytes, but its sole caller passes zero.
Remove these elements before callers acquire unnecessary API contracts. Delete the two inherent accessors and prefill_bolt_placed; pass NemotronHMoeModel::step at that wrapper's caller. Remove the scratch argument from the method's documentation and change its caller to place.machine_placed()?(layers). Replace the method with:
pub fn machine_placed(self) -> Result<impl Fn(usize) -> Machine + Copy, GateError> {
self.serves("placed load", 0)?;
let stage = self.card_specs()?[0];
Ok(move |layers| workstation::placed_on(stage, layers, workstation::SCRATCH))
}Non-blocking
⚠ Supply the card proof: crates/gpu/src/arch/nemotron_h_moe/placed.rs:394 adds one latent-vector add launch per mixed layer per token and regroups the float sum. The float-sum-order class requires owning-gate output and a timed A/B. Attach the post-rebase run with the card/driver line, both hashes, model path, commands and output; the body supplies summaries only.
⚠ Cover the watchdog call site: crates/gpu/src/model.rs:1137 can be deleted while the new watchdog test remains green, because that test calls the helper directly. Add a recurrence check that exercises the prompt-as-steps path; this catches loss of the integration that prevents long prompts from being killed.
Checked
Duplicates: confirmed the repeated scratch terms and redundant accessors, wrapper and parameter above.
Complexity: the new host-tier clause combines planning, execution and comparison; load and serve add placement branches.
Silent failure: followed the reference fault through fresh, whole_card_run, run and the exit-code helper.
Tests: by inspection, the watchdog test asserts the helper's progress updates but cannot detect deletion of model.rs:1137. The PR body reports host-sum mutants as red.
Gates: no existing pins or clauses relaxed.
Escape catalog: no C1–C4 matches.
Notes
GPU gates were not executed during validation. The PR body supplies summaries rather than the required card-run output.
Card check: needs-gpu. This pull request changes crates/gpu-deepseek41/src/body.rs, crates/gpu-gates/src/bin/gate_nemotron_h_moe_e2e.rs, crates/gpu-gates/src/bin/shared/serve_seats/nemotron.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)
| &case.walk, | ||
| )? | ||
| else { | ||
| return Ok(None); |
There was a problem hiding this comment.
A reference-walk fault must fail the gate instead of skipping the host-tier clause.
| return Ok(None); | |
| return Err(checks_failed()); |
|
Superseded by #525, one train with the review fixes applied. |
Pull request was closed
Nemotron-H MoE (Bolt) loads placed when the whole model does not fit the card: card experts plus a host leg.
bloomery-serve -m <Bolt gguf>picks placed by itself. No flag is needed.crates/gpu/src/arch/nemotron_h_moe/placed.rs: the placed body. It has the front, shadow and back, plus the host sum.crates/gpu/src/host/run.rs: the common HostRun holds a sparse set of host layers, with one scratch for each feed-forward width (Bolt's layers differ in ff).crates/gpu/src/watchdog.rs: a token's pass inside a guarded call now moves progress. Before this, a prompt run as steps was read as wedged.serve_seats/nemotron.rspicks placed when whole-card does not fit.Place::machine_placedis ingenerate.rs.Evidence before the rebase (3090 at
BLOOMERY_CARD_BUDGET=12Gas a stand-in for a 12 GiB card):pass_donedisabled. Each one is red.The owning-gate batch after the rebase follows as a comment.
🤖 Generated with Claude Code