Repository navigation
Conversation
… routed layer's coldest host ids, not the id tail; the plan line and record carry the nvme pick; gate-gpu-ds41-nvtier's rank clause Round nvmerank (GLM-5.3, cut once by the plan limit and resumed). `expert_nvme_tier`'s one splice (room.rs) takes `ExpertRank::cold_split(layer, experts, ids, len - n)` when the plan has a rank, else the same two slices as before; a rank that orders no layer of the split is refused by name. The PLAN record kind gains an optional `nvme` part after `paged` (schemas regenerated). FAIL-first on the box: `a_rank_gives_the_nvme_tier_the_coldest_host_ids` red (`layer 0 NVMe ids left: [3, 4, 5] right: [1, 2, 3]`) and the refusal test red before the cut; after, placement lib 244, record tests 28, gate-levers 60, gate-gpu-ds41-nvtier's rank clause on the fixture tier green; mutants hottest and no-host-filter red. Found: `NvTier::of_paged` (crates/gpu/src/host/nvtier.rs) refuses a paged layer whose host segment is not one id run, so the RAM-arena path cannot load a rank-paged plan yet; the gate's arms take the file-mapping path. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X1hsQfyQxXKXsQ6LVTcsx5
…ild), so the shared clause names no identifier rank; deepseek41 sets BLOOMERY_EXPERT_RANK to the rank file, and defaults-twins names that row Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017hHKUrZnzeEHMiSWRFagxQ
There was a problem hiding this comment.
Verdict: MUST_FIX: the cut itself (ExpertRank::cold_split, split_nvme_tier), its refusal, its tests and the gate's new rank clause read correct; the diff lands second copies of two owners that already exist in gate_deepseek41_tier.rs.
Must fix
1. The diff copies two owners from gate_deepseek41_tier.rs instead of sharing one
crates/gpu-gates/src/bin/shared/nvtier_family.rs:126 Rows::write and :156 Rows::read are line-for-line gate_deepseek41_tier.rs:1459 write_rows and :1489 read_rows: the same rows-file format (two LE u32 counts, the tokens, the rows' f32s), the same size check 8 + 4n + 4nw, only the error wording differs. And gate_ds41_nvtier.rs:166 write_rank reimplements gate_deepseek41_tier.rs:1541 write_rank: the same gcd, the same stride search (3..n).find(coprime), the same BTreeSet layer walk, the same TSV text; only sets= and the error prefix differ. Each now has two owners, so the next format change edits two bins — and the PR body reports the rows pair but not the rank-writer pair. Folding now is one move; later it is two bins per format change.
Fix: one owner in the gpu-gates lib, which both bins already link. Beside logits_band::Positions move the codec, bodies = today's Rows::write/Rows::read under one wording:
pub fn write_rows(path: &Path, tokens: &[u32], rows: &[Vec<f32>], n: usize) -> Result<(), GateError>
pub fn read_rows(path: &Path) -> Result<(Vec<u32>, Vec<Vec<f32>>), GateError>Rows keeps push/positions and calls logits_band::write_rows(path, &self.tokens, &self.logits, n); the rank child reads through logits_band::read_rows. The stride writer becomes one lib fn holding today's body:
pub fn stride_rank(dir: &Path, n: u64, n_used: u64, sets: &str, layers: &BTreeSet<usize>) -> Result<PathBuf, GateError>Both write_ranks keep their own refusal plus the gathering of (n, n_used, layers) and call it. gate_deepseek41_tier.rs's three functions go (its read site maps to Run { …, stage_nodes: None }). Net: −3 names, about −100 lines.
Non-blocking
⚠ Stale clause counts: nvtier_family.rs:1 "the six clauses every family … proves" and :1145 "the six clauses judged" — the bullet list below line 1 now holds seven and a family that takes rank proves seven (the ds41 header already says so). Reword both, e.g. "the clauses every family … proves (six, seven where [Family::takes_rank])".
⚠ The rank lever's refusal list does not name the arena: registry.rs:399 lists the rank file's own refusals, but under BLOOMERY_EXPERT_RANK + an NVMe arena the load now stops at nvtier.rs:2202 with "the host segment's N ids are not one run", which does not point at the rank. Add that combination to the lever doc's "Refused by name" list so the release note's "refused by name" holds at the lever too.
Checked
Duplicates: 8 new items Grep-checked (cold_split, HostLayer::layer, Rows, PagedIds, with_nvme_pick, write_rank, rank_child, run_rows); hits in must-fix 1, and rank_lists re-derives the pick independently, which is its job. Complexity: crapper did not run; by hand split_nvme_tier grew one match arm (even growth), write_rank/rank_clause are new and single-purpose. Silent failure: 4 sites followed (remove_dir_all on cleanup only; map_or(0) width backed by the equal-width check; cold_split's binary_search skip proven a partition of of; the arena refusal names the tensor) — none swallows an error. Tests: both mutants red in words ("hottest" flips the unit test's coldest expectation and rank_lists; "no host filter" trips the plan's overlap refusal); FAIL-first lines quoted in the body. Gates: no band or pin moved; the new clause carries its own precondition (moved == 0 fails it). Escape catalog: C1–C4 are shell patterns; this diff touches no script under tools/.
Notes
- dryer and crapper both failed to run (
ModuleNotFoundError); the duplicate scan and complexity kinds above are by hand (Grep + read), so their silence was not evidence. - Gate evidence: the body names card, driver and clause outcomes but carries no
nvidia-smiline, no commit hashes, no verbatim command output.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_ds41_nvtier.rs, crates/gpu-gates/src/bin/shared/nvtier_family.rs, crates/gpu-gates/src/record.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)
|
Lead self-review: merged by admin rebase. Box, fixture tier, one union batch over this branch and #1177 ( |
BLOOMERY_EXPERT_RANK아래에서 NVMe 전문가 티어가 각 라우팅 레이어의 id 꼬리가 아니라 호스트에서 가장 차가운 id 를 페이지한다 — plan 줄과 레코드에nvme=coldest|id-tail, nvtier 게이트의 rank 절.What and why
#1175 put the stage card's experts and an expert-tier node's by a router-rank file, but the NVMe expert tier (
expert_nvme_tier,crates/placement/src/placement/room.rs) still cut each host layer's list asids[..n]kept /ids[n..]paged, so the ids the host kept in RAM were the lowest-numbered, not the hottest of the host's share. This lands the one cut: withplan.expert_rankset, the splice takesExpertRank::cold_split(layer, experts, host_ids, n_paged)(the coldestnof the host's ids page, the rest stay, both ascending; a rank that orders no layer of the split is refused by name); unset, the same two slices as before. The countnis the split's own, somoved,expert_bytes,nvme_expert_bytes,nvme_arena_bytesandHostNeedaccount bytes only (a unit test pins both arms' byte totals equal). The plan line and the PLAN record gain an optionalnvmepart afterpaged(coldest/id-tail, no part when nothing pages); schemas regenerated.gate-gpu-ds41-nvtiergains therankclause (nvtier_family.rs:Family::{takes_rank, write_rank, run_rows}): a child plans under a rank file and holds every paged layer's NVMe list to be its coldest host ids and moved off the id tail, and the rows band against the reference (max |Δlogit| 1.42 of 16).Found, not done here:
NvTier::of_paged(crates/gpu/src/host/nvtier.rs) refuses a paged layer whose host segment is not one id run, so the RAM-arena path cannot load a rank-paged plan yet; the clause's arms page through the file mapping (arena 0 both sides, the pick isolated). Lifting the pick into the arena (LayerArena.hostfrom aRange<u32>to an id set, ~20 membership sites,host_ids/UnionBook,attach_tier) is a round of its own; the tok/s projection of a ranked arena is that round's, so no timed number here.Release notes: Changed — under
BLOOMERY_EXPERT_RANK, the NVMe expert tier pages each layer's coldest host experts instead of the highest ids; the plan line names the pick (nvme=coldest). The RAM arena (BLOOMERY_NVME_ARENA) does not take a ranked plan yet (refused by name).Code shape
ExpertRank::cold_split) besidesplit; the planner's one cut changed.tools/check-comments.shrc 0.cargo fmt, clippy;just mac-checkrc 0 after the rebase onto main.Duplication found or removed:
write_rows/read_rowsingate_deepseek41_tier.rsduplicate the family'sRows::write/read(reported, not folded here).What I ran
Box (RTX A6000 + RTX 3090, driver 580), fixture tier, round nvmerank (GLM-5.3, effort max): FAIL-first red before the cut (
layer 0 NVMe ids left: [3, 4, 5] right: [1, 2, 3]; the gate's rank childlayers [0..8] are not their coldest host ids→ GPU GATE RED); after: placement lib 244 passed, record tests 28 passed (schemas current),just gate-levers60 passed,just gate-gpu-ds41-nvtier7 clauses, every clause passed (rank clause: 9 of 9 paged layers' NVMe lists their coldest host ids, moved off the id tail; band max |Δlogit| 1.423). Mutantsnvmerank-hottest(unit + gate red) andnvmerank-no-host-filter(the plan's overlap refusal:put expert 0 twice) red.Union batch: pending (runs with the next landing batch on this branch's affected set).
Lead review (2026-11-11)
BLOOMERY_EXPERT_RANK, a lever whose default the identifier rank does not resolve. The rank child's environment is now the family's (Family::rank_child, deepseek41 sets the lever), andtools/defaults-twins.tsvnames that row.ExpertRank::cold_split,split_nvme_tier) reads correct. Both.mutants/nvmerank-*.patchapply, and neither is left in the tree.Hardware
Box: AMD 64-core, 256 GB, RTX A6000 48 GB + RTX 3090 24 GB.
🤖 Generated with Claude Code
https://claude.ai/code/session_01X1hsQfyQxXKXsQ6LVTcsx5