Repository navigation
gpu, gpu-gates: the NVFP4 gate's split stages host experts through the residency machine, every part checked - #1036
Conversation
…e residency machine, every part checked
There was a problem hiding this comment.
Verdict: CLEAN: No merge-blocking defect found in the host peak accounting or NVFP4 residency verification.
Checked
Duplicates: 3 new definitions checked against existing owners; none duplicated. dryer reported 0 candidate pairs.
Complexity: reseeded is new at 23, with plan/open, reseed/compare and replay phases. split grows 18→20 by adding the residency clause. HostShort::fmt grows 21→24 through diagnostic formatting arms.
Silent failure: 4 paths followed: saturated read room, empty source parts, missing matrices and invalid code groups. Exact admission or named errors handle them. Part readers join and the upload ring drains before the churn pool is populated.
Tests: Mutation inspection of crates/placement/src/placement/workstation.rs:1097: summing pool and reads makes the new peak test fail. Its fixture arithmetic and one-byte boundary were checked separately.
Mutation inspection of crates/gpu/src/model.rs:2300: subtracting the pool from read room makes the changed part-plan test fail.
Mutation inspection of crates/placement/src/placement/workstation.rs:1597: counting both phases makes the page-class test fail. Restoring the unconditional residency hint also fails the new peak test.
Gates: No bands or pins moved. The new residency clause has a reported FAIL-first run with unconverted codes. The shared comparison now visits every source part and requires a staged expert.
Escape catalog: No C1–C4 pattern matched. Production changes affect loading and verification, with no new decode or prefill work.
Notes
dryer excluded gpu-gates; those changes were searched manually.
Rust tests and GPU gates were not run in this review. The reported GPU run names be0462ecd/904266cfc, rather than the current head/base.
Card check: gpu-evidence. This pull request changes crates/gpu-gates/src/bin/gate_glm5next_residency.rs, crates/gpu-gates/src/bin/gate_qwen38_residency.rs, crates/gpu-gates/src/bin/gate_qwen4exp_nvfp4.rs … and carries a gate run on the author's card, which counts as verified.
🔨 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 NVFP4 폴더를 60G 카드 예산으로 카드와 호스트에 나눠 띄울 때 호스트 메모리 부족으로 거부되던 문제를 고쳤고, NVFP4 gate가 호스트 expert의 staging을 카드에서 모든 part까지 확인하게 했습니다.
What and why
Serving a Qwen3.8 NVFP4 checkpoint folder split between the card and the host under
BLOOMERY_CARD_BUDGET=60G, with residency unset, was refused at load: the host need counted the part read-ahead and the residency churn pool together, 9,689,875,288 B over the room. A load never holds both at once, because the churn pool is read in after the card upload, when the part reads are done. The need now counts the larger of the two, and the part read plan gets the room the pool does not use.Part of #1022. The NVFP4 gate gained a clause, (rs), that stages host experts onto the card through the residency machine on the folder split, and its
transform_checknow compares every part the source stages (it compared a fixed 3 of an NVFP4 stack's 9). To let that run on a folder,FileSwap::card_bytesnow returns the bytes a static load uploads for a located NVFP4 plane instead of refusing it.Release notes: Fixed: a Qwen3.8 NVFP4 checkpoint folder now loads split between the card and the host under a card budget with residency unset, instead of being refused for host room.
Code shape
HostNeed, which the check, the page classes and the refusal text all read; the newread_roomreplaces a room computed at the call site.transform_checkis removed from it and its three callers.cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line): none.What I ran
Head
be0462ecdon904266cfc, on a DGX Spark (hardware below).crates/placement/src/placement/workstation.rshas a test,a_load_never_holds_its_part_reads_and_its_churn_pool_at_once, built from the byte counts of the refused load below.Before, serving the folder (
bloomery-serve-qwen38 --place a --ctx-size 4096,BLOOMERY_CARD_BUDGET=60G,BLOOMERY_DRAFT=off, residency unset), on4e0b0411, the head of #1034 this change builds on:After, on
be0462ecd, the same command and a 128 token greedy/completion:The gates, from the same run:
With the folder's codes staged as stored instead of converted (
dst.copy_from_slice(src)incrates/gpu/src/host/swap.rs), the same gate prints:Hardware (if the change is for a machine)
DGX Spark:
nvidia-smi --query-gpu=name,driver_version,compute_capprintsNVIDIA GB10, 595.84, 12.1. The serve binary was built withcargo oxide build --arch sm_121.AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.