Skip to content

gpu host: a node tier skips the round trip on a layer with no node pick — the host raises the tier's go itself at the pi - #1177

Merged
midagedev merged 10 commits into
mainfrom
nodeskip
Nov 11, 2026
Merged

midagedev merged 10 commits into
mainfrom
nodeskip

Conversation

@midagedev

@midagedev midagedev commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

노드 티어가 노드 픽이 없는 레이어의 왕복을 건너뛴다 — 호스트가 픽 시점에 티어의 go 를 직접 올리고 노드 픽이 없는 레이어에는 프레임을 보내지 않으며, 노드는 그 레이어의 그래프를 돌리지 않는다; HybridStats::node_skipped 와 plan/step 레코드가 그 수를 든다.

What and why

With an expert tier on a node (BLOOMERY_TIER_NODES), the chain enqueued a go and a wait per tier layer and the node served its captured graph every layer, picks or none: under a cold split (#1175) most layers name no expert of the node's for a given token, and each of those still paid the round trip (a frame out, the node's graph, a frame back). Now the chain enqueues only the boundary go/wait; inside the service, after reading the handoff, the host raises the tier's go itself (TierPage::add_go, the one writer) at NodePoint::Picks, and sends the node one enqueue frame, which names its layer, only for a layer whose picks name a slot of the node's. A layer that names none sends nothing; the host adds that layer's done unit itself once the tier is caught up (TierPage::add_unit), so the stage card's wait keeps its one fixed target. The decision is one function with a FAIL-first unit test (a_node_free_layer_sends_no_frame); HybridStats::node_skipped counts the layers, and the plan and step records carry it (node_skipped field; schemas regenerated; docs/contrib/dgx-spark.md states the rule).

Prediction [derived]: the term removed per skipped layer is one node round trip (a frame out, the node's empty graph, a frame back) on the TCP link; at the cold split's 128G node arm (#1175: ~10 node slots a token over 40 routed layers) most layers skip. The per-trip cost is not measured yet: the prediction card prices it before the A/B and the A/B at the #1175 node arm is the number (pending, below).

Release notes: Changed — an expert-tier node (BLOOMERY_TIER_NODES) is skipped on every layer that routes none of its experts; --plan and the step record report node_skipped.

Code shape

  • No second copy. One decision site; TierPage::add_go the one go writer.
  • Model code holds only architecture facts. Host tier code only; no family branch.
  • Dead code is gone. The per-layer go/wait enqueue is removed, not flagged off.
  • No silent failure. Each enqueue frame names its layer, and a node refuses by name a layer its set holds no expert of. The protocol change means a tier_server of another commit is refused by the handshake's commit, as before.
  • Comments state what is true now. tools/check-comments.sh rc 0.
  • No relaxed gate. gate-gpu-ds41-tier's node clause holds the bits equal to the unskipped tier.
  • cargo fmt; clippy pending in the union static run.

Incident, for the record: the round's compound command ran git checkout -- crates/gpu/src/host/tier.rs once and the file was reconstructed by hand before the gates below ran; the lead re-reads it in review.

What I ran

Box (RTX A6000 + RTX 3090, driver 580), fixture tier, round nodeskip (GLM-5.3, effort max): FAIL-first a_node_free_layer_sends_no_frame red with the decision disabled ("layer 6 names no slot of the node's: skipped"), green after; gate_deepseek41_tier --bnode --bnodeskip PASSED (245 skips, ≥ 1 a step, bits equal to the unskipped tier); mutants nodeskip-one-pick and nodeskip-tolerant-node red; tools/check-records.sh and records.py --self-test green. gate-gpu-lib phase 1: the known rank::dist red (#1171) and one load flake green twice alone; phase 2 hit the 900 s bound on a box at load 30 — rerun in the union batch.
Lead, box, fixture tier, at 7f4ae71 on main f4b3994, list from just affected origin/main (150 gates):

DONE total=150 red=0 tier=fixture skipped=1 wall=2115s deferred=231 real_only=27 real_file=17 needs_env=4

Mutants at 7f4ae71, each applied and reverted: nodeskip-loss-old-rule turns gate-gpu-qwen38-nodes red ("FAIL stopped node 1: … node 1 ended None 45.0 s after", "FAIL lost node 0 (stopped)"); nodeskip-one-pick turns gate-gpu-lib red (a_node_free_layer_sends_no_frame, a_pass_that_sent_the_node_a_layer_ends_with_one_end_frame).

The Spark A/B (the tier_server rebuilt from this commit, just depth-gpu-ds41 at the #1175 node arm, prediction card) is not run. This PR claims no speed number.

Lead review (2026-11-11)

  • The branch carried the nodeskip-one-pick mutant (picks <= 1 in TierCard::send_layer): a layer with one node pick was sent no frame, and its expert was served by nobody. Fixed to picks == 0. The unit test's layer 7 (one pick) is the FAIL-first. The round's "a_node_free_layer load flake" was most likely this mutant.
  • Both .mutants/nodeskip-*.patch had hunk counts that did not match their bodies, so they did not apply. They are regenerated, and both apply.
  • The step service's node hook read the tier page on every serve, so every load without an expert tier failed its first serve ("Hybrid::serve: an expert tier (the node hook)"). The fixture batch at the rebased tree found it: 15 e2e and prefill gates red within seconds. The hook now does nothing on a layer no node tier holds experts of. Those gates are its FAIL-first.
  • hw_a_node_refuses_a_layer_it_holds_none_of enqueued a served layer whose go no test raises. Its stream parked, and every later hw test of gate-gpu-lib waited behind it until the 900 s bound. That was the round's "phase 2 timeout". The positive control now reads check_service without an enqueue.
  • Lint: a NodeHook alias for the hook type, a collapsed if, a redundant clone. tools/spawn-allow.txt allows two test peers in node.rs (the check-arch red).
  • A node's loss rule under per-layer frames (round nodeskip-loss, b00db3868). Node 1 knows only the layers it was sent, so a stalled node 0 mid-step looked idle. Each pass that sent the node a layer now ends with one End frame. A pass left open with no progress past GO_DEADLINE + TIER_GRACE loses node 0. Between passes a node waits with no bound. Cost [derived]: one 5-byte frame and its reply a pass, read with the next pass's first frame, about 2–5 µs of host time at the settle. gate_qwen38_nodes's relay holds an Enqueue frame, and its stopped and lost clauses name the new loss.
  • A layer shared by a node tier and a tier of this process gave the local tier no go. A failed service waited for a node tier at the host's count, which also holds the skipped layers, so after any skip every error read as a lost card. Both are fixed (5556a8e6c, rebased).
  • TierNode::capture and launch are reachable now only from an arm a node tier never takes. Removing them is a protocol change, so it is left for a later round.
  • The Spark A/B is not run. This PR claims no speed number.

Hardware

Box: AMD 64-core, 256 GB, RTX A6000 48 GB + RTX 3090 24 GB; DGX Spark (GB10) over TCP as the expert tier node.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X1hsQfyQxXKXsQ6LVTcsx5

@midagedev midagedev added the needs-gpu Changes code a card must check, and carries no gate run on a card label Nov 5, 2026
@github-actions github-actions Bot added dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation gpu The card engine: crates/gpu*, crates/app tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo labels Nov 5, 2026
@midagedev

Copy link
Copy Markdown
Owner Author

Held: gate-gpu-qwen38-nodes is red on the fixture tier at 3ee3026 + a3139f552.

The structure and lost-node-1 clauses now pass (a3139f552). Three loss clauses still assume the old protocol, where node 0 launched a captured graph:

  • stopped node 1: the step fails by the catch-up wait, not "passed its deadline". After -CONT, node 1 never ends: every layer it was sent has its go raised, so check_stopped sees nothing outstanding.
  • lost node 0 (killed) and (stopped): the relay waits for a launch frame. Node 0 now sends one enqueue frame a layer, so the relay times out ("node 0 sent no launch").

The open design question: how node 1 tells a stalled node 0 mid-step from an idle one, when it only knows the layers it was sent. One option is an end-of-step frame with a deadline after the first enqueue of a step. A follow-up round ports the three clauses and adds that rule.

Fixed on this branch: the one-pick mutant left in send_layer, the node hook that failed every load without a tier, the refusal test whose parked stream hung gate-gpu-lib, and two corrupt mutant patches. The rest of the union batch is green.

midagedev and others added 10 commits November 11, 2026 08:55
…ck — the host raises the tier's go itself at the picks point and sends the node no frame for a layer whose picks name none of its slots, adding that layer's done unit itself once the tier is caught up; HybridStats::node_skipped and the plan/step records carry the count

Round nodeskip (GLM-5.3, cut once by the plan limit and resumed; 638 tool calls). Before: the chain enqueued a go and a
wait per tier layer and the node served a captured graph every layer, picks or none. Now, for a tier on a node, the chain
enqueues only the boundary go/wait; inside the service, after reading the handoff, the host raises the go (`TierPage::add_go`,
the one writer) and sends the node a frame only for a layer whose picks name a slot of the node's; a layer that names
none is sent nothing and the host adds its done unit once the tier is caught up (`TierPage::add_unit`). FAIL-first on the box: `a_node_free_layer_sends_no_frame` red ("layer 6 names no slot of the
node's: skipped" with the decision disabled); after, green; `gate_deepseek41_tier --bnode --bnodeskip` PASSED (245 skips
≥ 1 a step, bits equal to the unskipped tier); mutants one-pick and tolerant-node red; schema refreshed. The gpu lib gate
did not finish green on the loaded box (its known `rank::dist` flake and a 10 s recv deadline under load 30); the lead's
union batch reruns it. Incident: the round's compound command ran `git checkout -- crates/gpu/src/host/tier.rs` once and
the file was reconstructed by hand before the gates above ran.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01X1hsQfyQxXKXsQ6LVTcsx5
…slot of the node's (picks == 0); the tree carried the nodeskip-one-pick mutant (picks <= 1), under which a layer with one node pick was sent no frame and its expert served by nobody, and a_node_free_layer_sends_no_frame's layer 7 clause is red

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrZnzeEHMiSWRFagxQ
…deHook alias, the drain's two conditions one if, the refusal test moves its set, and the B11 precondition walks the trace's picks by enumerate

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrZnzeEHMiSWRFagxQ
…e tier holds experts of; it read the tier page first on every serve, so every load without an expert tier failed its first serve with "Hybrid::serve: an expert tier (the node hook)" (the fixture batch's e2e and prefill reds)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrZnzeEHMiSWRFagxQ
…eck_service, not an enqueue; the enqueued layer's stream parked on a go no test raises, and every later hw test of gate-gpu-lib waited behind it until the 900 s bound

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrZnzeEHMiSWRFagxQ
…s — no graph of any chain, every pass of the history fed, none captured or replayed — and a lost tier on a node names the node's address in its loss, which the lost-node clause looks for (the batch's red: the tier named no page-word side, and the step's loss named only the card)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrZnzeEHMiSWRFagxQ
…1 tells a stalled node 0 from an idle one: a pass open (an enqueue taken, no End) that makes no progress past the go deadline and its grace loses node 0, and a node between passes waits with no bound; gate_qwen38_nodes's relay holds an Enqueue frame and its stopped and lost clauses name the new loss

Round nodeskip-loss (opus, design). Per pass one 5-byte End out and its reply read with the next pass's first frame [derived: ~2-5 us of host time at the settle, under the stage card's tail]. A lost node is left its pass open so it ends by its own rule; a released node's loss names the release. Six mutants under .mutants/nodeskip-loss-*.patch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrZnzeEHMiSWRFagxQ
…he local tier's go from the chain (only the node's go is the host's), and a failed service waits for a node tier's sent layers, not the host's count that also holds its skipped ones; send_layer's doc names the order the code keeps (the frame, then the go)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017hHKUrZnzeEHMiSWRFagxQ
@midagedev
midagedev merged commit bde0145 into main Nov 11, 2026
8 checks passed
@midagedev
midagedev deleted the nodeskip branch November 11, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation gpu The card engine: crates/gpu*, crates/app needs-gpu Changes code a card must check, and carries no gate run on a card tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant