Repository navigation
gpu, placement: every family's prompt ring pass reads the ring's half through one common view, so an NVFP4 folder splits, and a plan with no host expert reserves no stream staging - #1111
Conversation
…ing pass reads the ring's half through the common view, NVFP4 planes included Qwen3.8, Qwen3.5/3.6 and Muse Spark walked the expert stream's ring with their own windows (with_ring_windows), which held the half as K-quant words only: a Qwen3.8 load whose card route reads NVFP4 planes refused split by name (XSTREAM_FORM) and fell to admit, and a Qwen3.5 placed load with a common-leg layer refused it too. DeepSeek-V4.1 and MiniMax already read the half through card_leg::with_ring. - card_leg::with_ring hands the half to every family as one RouteBlock in the card stacks' forms (LegStacks::block), and RingLayer::with_union lends the union row: CardExperts::enqueue_rows_ring, Qwen3.8's card route (wide38), the Qwen3.5 placed ring pass (dispatch and common-leg layers) and Muse Spark's prompt ring pass all take it. Muse's block takes the file's types, not a fixed IQ2_XXS. - with_ring_windows, RingStacks, XSTREAM_FORM, wide::ffn_ring and the SiteWeight::Words arm go; the Qwen3.8 and Qwen3.5 refusals of NVFP4 and common-leg layers go with them, and qwen35moe::PlanInputs::stream_slot counts an NVFP4 planes stack's slot. An NVFP4 file's split is priced as every file's is, from the detected card and the expert's shape and bytes (host::costs).
…on its cards keeps no stream staging, one owner asked by the Qwen3.8 seat, the CLI and the tiered seats The Qwen3.8 serve seat and generate_qwen3moe reserved the lane's pinned staging (up to 64 ring slots, 255.7 MB on UD-Q4_K_XL) before the plan whenever the stream rule asked for split, even where the plan then held every expert on the card and nothing could stream; the tiered seats asked the same question inline (plain.plan.host.experts > 0). - workstation::plan_streams is the one answer: the plan leaves a routed expert on no card. The tiered seats' ringed choice reads it. - The Qwen3.8 seat's Place38::machine_read, every machine of its placement, plans without the staging where the staged plan streams nothing; generate_qwen3moe's machine38 asks the plan its callers make (plan38, with the draft where one runs) the same way.
… one part source's read, and every seat probes them through one owner at the least context The least host bytes a folder's load reads were asked two ways: a bloomery_gpu::folder::Folder through its part source's read at no room, and parts::least_reads over a source and an InPlace the tiered seat and the gates' folder wrapper each built from the header. The probe walk (plan at PART_READ_CONTEXT, read the parts) was written out in the tiered, Nemotron and Qwen3.8 seats, and the placement test that guards the short-context probe rewrote it rather than calling it. - parts::least_reads takes the source and its header and asks a PlacedSource's read at no room, the read Folder::least_reads asks; the gates' folder::least_reads takes the header and the source, and the tiered seat calls it. - workstation::least_part_reads plans at PART_READ_CONTEXT and reads the plan's parts, None where the plan is refused; the three seats and the placement test take it.
… its arena slot FileSwap::matrix reads a located matrix from the NVMe arena's slot when the lane's open read finds the id filled, else where the folder keeps it. The located-stack test in host::nvtier checked the slot's bytes without going through FileSwap, so a source that always read the mapping stayed green: both hold the same bytes. The new test fills one id, changes the folder's bytes under the mapping, and reads both ids' codes and block scales through FileSwap::source: the filled id reads what the fill wrote, the unfilled one the folder's new bytes. The nvtier test's tier is one helper both tests build.
There was a problem hiding this comment.
Verdict: CLEAN: No must-fix finding survives validation.
Non-blocking
⚠ Supply the move proof: crates/gpu/src/arch/qwen3moe/placed.rs:2486. The dispatch ring now calls RouteBlock::enqueue. The PR evidence lacks the identical ptx-scan or successful canon-check output required by the base AGENTS.md move class. Attach it and the preserved host-dispatch structural counts to establish that the shared implementation preserves this path.
Checked
Validated both cited lines against the diff, followed the routed block's quantization calls, and checked the base move-class contract and axis E. No escape-catalog pattern or ledger lesson changes the retained item's classification. This is a full review; revert, mirror and incremental exclusions do not apply.
Notes
The PR contains RTX 5090 gate output. Builds and hardware tests were not rerun during validation.
Card check: gpu-evidence. This pull request changes crates/gpu-gates/src/bin/generate_qwen3moe.rs, crates/gpu-gates/src/bin/shared/minimaxm3_seat.rs, crates/gpu-gates/src/bin/shared/serve_seats/folder.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. |
NVFP4 폴더도 expert stream의 ring pass를 쓰게 하고, host expert가 없는 계획이 staging을 잡지 않게 공용 owner 하나로 맞춘 PR입니다.
What and why
The expert stream's prompt ring pass read the card's expert stacks through a copy in each model family, and only as words. A load whose card route reads NVFP4 planes was refused by name, so the Qwen3.8 NVFP4 folder always fell back to
xstream=admit. Qwen3.5/3.6's common-leg layers were refused the same way.This change gives the ring pass one owner,
card_leg::with_ring. It reads the ring's half in the card stacks' own format (words or NVFP4 planes) and hands the route GEMM its block. DeepSeek-V4.1, MiniMax-M3.1, Qwen3.8, Qwen3.5/3.6 and Muse Spark all call it, and the per-family walks and the NVFP4 refusals are gone. Around it:workstation::plan_streams, one owner asked by the Qwen3.8 seat, the CLI and the tiered seats).parts::least_reads), and every seat probes them at the least context throughworkstation::least_part_reads.XSTREAM_FORMand keeps its previousadmitoutcome when the stream rule is unset.Before, on the RTX 5090 below, the Qwen3.8 NVFP4 folder served with:
After, the same serve:
Release notes: Changed: an NVFP4 Qwen3.8 folder and the common-leg layers of Qwen3.5/3.6 now stream experts through the prompt ring like other formats, and a load that keeps every routed expert on its card no longer reserves stream staging.
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): the per-family ring walks (RingStacks,with_ring_windows,XSTREAM_FORMinhost/xstream.rs;ffn_ring,slot_siteinwide.rs;SiteWeight::Wordsinsite.rs) are replaced bycard_leg::with_ring. The mapped-row window is one privatewith_rowinhost/xstream.rs. The staging decision isworkstation::plan_streams, and part reads areparts::least_readsandworkstation::least_part_reads. The two pairs the duplicate scan reports are different code:serve_seats/folder.rsleast_readsis a pair of builds with and without thecheckpointfeature, andwith_unionandwith_mapare one-line accessors overwith_row.What I ran
Base is
fa38e3a1fc61ed5fcf9ba4860f35a20f4de14128(upstream/main). Head is3b62cc53e217b7ee6d75e57877350e0d1f7e1fea.Models (greedy decoding,
--ctx-size 8192):nvidia/Qwen3.8-Flash-Next-NVFP4atfc694b54fb0174e0913e6adf86691ef85a4ead47;Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf;unsloth/MiniMax-M3.1-Flash-GGUFatb17b7f5459c0b8f127ea12ee774409b282521d6a,UD-Q2_K_XL/MiniMax-M3.1-Flash-UD-Q2_K_XL-00001-of-00004.gguf;unsloth/Muse-Spark-Open-816B-A42B-GGUFatc00670568b6ce5e56a247f67091247984df2a01e,UD-IQ2_XXS/Muse-Spark-Open-816B-A42B-UD-IQ2_XXS-00001-of-00006.gguf;nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4atbee7596271d1495f6992ae224aefde4410e816b8; the Qwen3.8 fixtureqwen38-fixture-00001-of-00001.gguf.Card gates, run with
BLOOMERY_ARCH=sm_120a BLOOMERY_BOX_LOCAL=1 BLOOMERY_GATE_CARD=anyon the head tree:The same Qwen3.6 residency gate and the Muse Spark stream arm also ran on upstream/main: 21 and 121 clause lines, 20 and 120 equal with timings masked; the one differing line in each is the measured versus stored lane rate and its source.
Card tests of the changed modules (
--include-ignored, two passes):bloomery-serve(--model <seat> -m <file> --port 18451 --ctx-size 8192, greedy/completionrequests of 128 and 16 ids), head against upstream/main:xstream: baseadmit(ring refused), headsplit xstream_half=128 xstream_staging=64.need ... pinned=: base 282579552, head 26989152.generate_qwen3moeon the fixture (--place a),need ... pinned=: base 255590400, head 0.xstream:split xstream_half=78 xstream_staging=64on both.BLOOMERY_CARD_BUDGET=8G BLOOMERY_HOST_ROOM=8G: equal plan lines,ids equal for 16 of 16/16 (all equal).Qwen3.8 UD-Q4_K_XL answered three requests with equal first-id top-5 probabilities and
ids equal for 128 of 128/128,128 of 128/128and16 of 16/16. MiniMax-M3.1 UD-Q2_K_XL loads and answers on both sides withxstream_half=47 xstream_staging=47.Unit tests on the changed owners (
bash tools/gate.sh --oxide ...orcargo test), alltest result: ok:Three boundary tests, each run with its production line reverted (fails) and with it restored (passes):
Lint:
bash tools/mac-check.sh lintgavelint rc 0 (^warning: 0, the ratchet 0 in tools/lint-ratchet.txt).Hardware (if the change is for a machine)
NVIDIA GeForce RTX 5090, driver 595.99.02, CUDA 13.2, 32607 MiB, power limit 400 W. The card gates, card tests and
bloomery-serveruns above ran on it.AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.