Repository navigation
gpu, placement, gpu-gates: a tier node on a second DGX Spark pages its experts from its own NVMe, and Qwen3.8 keeps its output - #411
Conversation
There was a problem hiding this comment.
Verdict: CLEAN: No proven behavior or quality defect remains in the changed code.
Non-blocking
⚠ Supply reproducible GPU evidence: crates/gpu-gates/src/bin/gate_qwen38_nodes.rs:1683.
The body reports runs on 4f56cfef; the reviewed head is ba275e0e.
Attach current resident and --host gate output, the nvidia-smi card/driver line, both commit hashes and the model path. This verifies the final callback and protocol paths before merge.
Checked
Duplicates: 38 added declarations checked against existing owners; no actionable duplicate. Dryer reported zero pairs; gpu-gates was checked by hand.
Complexity: new run_history (24) handles plan selection, capacity and history; new lower_routed (22) handles validation, row rebuilding and totals. Existing branch growth covers open_tier, NodeOpen::read, open_bound, parse_args, card_heaps, NodeCensus::read, rows_on, run, symlink_bind, attach_tiers, Session::handle, totals and violations_beside. The growth adds assignment validation and executor dispatch; complexity alone supplies no finding.
Silent failure: seven default, sentinel and clamp sites followed. Resident fill counters remain zero; HOST slots retain their rows; clamps bound room, grants and ownership; callback failures remain latched and poison outputs.
Tests, static mutation review: accepting host decode fails the parser assertion; restoring pooled waiting fails the scalar-wait contract; omitting the OS reserve fails the budget assertions. Wrong slot translation, skipped refills, freed callback storage and cleared callback errors fail the CPU contract. Removing remote ownership or pool exclusions fails the placement contracts. Missing/repeated stacks, invalid arena grants and resident-only open deadlines fail the protocol assertions. The remote replay test still checks reset exchanges and recovered logits.
Gates: the removed resident-weight requirement and increased unsafe counts have dated PIN reasons; no tolerance moved.
Adversarial checks: missing stacks are refused; pending callbacks retain storage; host-room shrinkage is checked against the arena floor; empty interior layers remain valid.
Escape catalog: no C1–C4 pattern matched.
Notes
Static review only. Builds and hardware gates were not executed.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_qwen38_nodes.rs, crates/gpu-gates/src/bin/shared/q38_history.rs, crates/gpu-gates/src/bin/tier_server.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. |
|
Reran the recipes on the reviewed commit, Model: One DGX Spark, built for
The host run was interrupted during the stopped-node fault case, after the history comparison. It did not reach its final summary or return a gate exit code; the supervising command ended with rc 143. This is partial host evidence, not a full host-gate pass. Both paths use a loopback tier server on one card. This was not a physical two-Spark RDMA run. |
Part of #53 (P5, on the plan in #127).
What and why
A second DGX Spark can serve explicitly assigned routed experts from its own file and page them through its own host room and NVMe arena. The assignment is lowered into file-backed rows before node 0's host-memory split, so remote weights and tier overhead do not consume node 0's pool. Existing resident GPU assignments keep their device executor and do not enter the host split.
The comparison uses the same build's local CPU tier as the oracle, with the same expert ranges and Qwen3.8 history. On one DGX Spark, the loopback node matches the local tier's token ids, logits bits and stage graph counts.
Release notes: Added: a tier node on another DGX Spark can own routed experts by explicit id range and page them from its own NVMe, with Qwen3.8 output unchanged from the local CPU tier.
What changes
The NVMe request carries host room, planned and granted arena bytes, and assigned overhead. The connection and device identify its destination; the payload carries no second node ordinal.
NodeOpen::projectselects host execution only from explicitly file-backed rows. It clears an earlier projection before checking the assignment. An unpaged host assignment still uses the CPU executor. The node reconstructs its host/NVMe split against its own room and grant; attention and row tables stay on node 0. Both reconstruction paths include the OS reserve thatHostNeedlater deducts. The protocol version is 5 at both ends.PlanInputs::plan_nodesmakes a stage-only seed, lowers the explicit global-id ranges, then applies the row-table and expert splits. File-backed ranges are built directly. Only the stage's kept prefix needs a GPU upload format, so IQ3_XXS, IQ4_XS and IQ4_NL still plan when the stage keeps no expert. The original tier and device validation still runs. Remote host tiers have zero stage-device allocations and KV entries, and do not inherit a resident-card capacity check. Pool-accounting tests give the remote tier nonzero scratch so an accidental charge is visible.The server refuses missing or repeated routed stacks before it hashes or loads the assignment. The local host loader shares that row-set check. A set may exclude host-only layers at either end and keep empty rows in its interior.
The local and remote CPU tiers share the host expert executor and Qwen history, including the 2, 3 and 4-column verification chains. A local CPU tier leaves the worker pool available while its step port waits. Resident GPU tiers and separate-process tiers keep the parallel wait. Unsupported prompt blocks remain named errors. A failed CPU callback stays latched. Both ordinary and bounded fault clearing return its stored cause. A settled reset requires reloading the failed executor.
just gate-gpu-qwen38-nodes --hostruns the host-mode gate through the existing recipe, which now forwards optional arguments. It checks remote NVMe fills, graph shape, capture/replay counts and the existing routing precondition. The removed resident-weight clause has a dated PIN explaining why a host executor has no device weights. No CUDA kernel or expert arithmetic is added.--host --decode0is refused by name before opening the model or card:--host is not supported with --decode0; use --history. The parser contract checks every mode with and without--host. The wire contract checks the exact NVMe budget payload, independently of the round-trip reader.Node 0's open deadline counts the file data the node reads. A HostFile row has zero resident bytes, but the node still hashes and loads its assigned file data before answering.
open_boundtakes, for each row, the larger of its assigned file bytes (the listed experts' share of the file, or the whole file) and its resident bytes. The 120 s base and the 100 MiB/s rate are unchanged. Invalid or overflowing sums are named errors. The protocol contract checks an expert subset, a whole file, a larger resident upload and invalid sums.What this PR does not do
HostResidencyorHostSetintegration for mmap rows.Comparison with the reference
Both paths used build
4f56cfef, the same expert ranges and the same history on one DGX Spark. The prompt is the first 32 ids of the same head's README, encoded by the model's tokenizer; the gate then runs its greedy steps and 2, 3 and 4-column verification chains.The stage graph counts also match:
[1343, 1427, 1427, 1427].The node owns 12288 expert instances against 4671 in the conservative resident-tier plan, with 0 B charged as resident tier weights. The node tier made 3025 NVMe fills reading 9500057600 file bytes. Its four graphs hold 481 nodes each. Its chains were captured 4 times and replayed 82 times. This is a loopback functional comparison, not a two-machine timing or RDMA check.
What I ran
The submission head is
f04179496f87fa38aeb1788cfe5f9240ece6c55f, nine commits based on8e05ce8f28f115450902a8214047b543bc1d97df. The hardware results below were measured at4f56cfef396c5911f9ca88b33f7ce6342ba14890and carried forward: the intervening rebases and checker fixes leave the Qwen node runtime path unchanged. The fixture now takes routed stack names from the model's architecture owner. The thread registry names the scalar-wait test's helper, and the defaults registry records why the host gate pins 20G: the machine's default room can hide paging. The node gates include the stopped and killed-node loss/drain checks.4f56cfefjust gate-gpu-qwen38-nodesjust gate-gpu-qwen38-nodes --hostjust gate-gpu-qwen38-nodes --hostBefore the fixes, or with the earlier reserve/reset defects restored, each contract below exits 101. The hardware runs above used the unmodified measured tree.
host_modes_never_ignore_the_requested_tiermessages_read_back_as_writtennode_nvme_host_budget_keeps_the_os_reservehw_held_node_nvme_host_run_keeps_eager_and_captured_rowsOn
f0417949,bash tools/check-arch.shandpython3 tools/check-defaults.py checkboth pass on Linux. Both checks failed before the checker fixes. The synthetic host-budget contract and scalar-wait contract each pass on the new head, usingbash tools/gate.sh --oxide -p bloomery-gpu --release --lib -- <test-name> --nocaptureon a DGX Spark. Full contrib-check has not run on this head.The hardware checks use loopback. I did not run a physical two-Spark RDMA check on this head. The broad affected-gate union, the repository-wide format check, lint and comment checks have not run on the submission head.
To reproduce the functional comparison, set
BLOOMERY_REF_MODELto the first shard of Qwen3.8-Flash-Next UD-Q4_K_XL,BLOOMERY_DATAto a writable test-data folder andBLOOMERY_LOCK_DIRto the machine's shared gate-lock folder. The gate owns the loopback server and compares it with the local tier.Code shape
host_tieralso owns the resident-capacity boundary. No new RPC operation is added.cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up. The changed Rust files were formatted with rustfmt. Clippy has not run.Duplication found or removed (
path:line), or "none": none.What I ran into
These implementation problems are fixed and do not block this PR. Checks not run are listed above.
HostNeedsubtracted it. In the synthetic A6000 case, 53,451,264 B of assigned experts were hidden by a 6,694,629,376 B OS deduction. Both projection paths now preserve the assigned need and refuse zero host room.Hardware (if the change is for a machine)
The comparison table uses one DGX Spark,
NVIDIA GB10, driver 595.84, aarch64 Linux, withsm_121builds in the CUDA 13.3.1 development container. The additional discrete-card checks use an RTX 5090, driver 595.99.02, x86_64 Linux, withsm_120node-gate builds. Both have the same Qwen3.8-Flash-Next UD-Q4_K_XL model in four local shards. The node gates use loopback.AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.