Repository navigation
Conversation
Sites35 gains its own dense feed-forward list (the projections' types and NVFP4); NVFP4 stays out of the attention and delta-rule projections. HEAD_TY takes NVFP4. The q8_1 quantize before a down or shared down runs where the site's gemv reads q8_1 (reads_q8_1, one owner for the four sites and the MTP pack), not where the type is a K-quant: an NVFP4 down no longer reads a stale act_h. The coverage pins and hf-arch-check's mirror take the new list; Metal's lists keep what they admitted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the card through Body35, and the qwen3 seat serves it Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and oracle sets, and the dense gate's G3/G4 clauses Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…_folder; the recipe builds with checkpoint Co-Authored-By: Claude Opus 5.5 <[email protected]>
…fixture tier requires of a folder Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t and holds each side's weights under it Co-Authored-By: Claude Opus 5.5 <[email protected]>
…le's row, not from the tier's architecture lookup Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s layer Mainline's converter writes ModelOpt's activation scale beside each NVFP4 weight. The load quantizes activations from their own blocks and never reads it, as the folder map lists it unread. One beside a tensor of another type is still refused by name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… folder's table as stored The folder open keeps a BF16 matrix as stored; the embedding gather now takes it through q38's embed_rows_bf16, which the body already loads, so no kernel is added. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nsor is the folder map's bytes Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ch their gather reads Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ion gives file_format turns a BF16 tensor into Bf16AsF32, while the model's description (ModelTensors::card_format, which the plan and the whole-fit verdict size) can keep it as BF16 words. Weights::load and PartsLoad::load_whole now take the description's format and fall back to the type's own where it gives none. Body35 passes its description's formats; the other bodies pass none, so their bytes are unchanged. Host-only load path; no kernel or launch moved. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… derived term The oracle's floor on the 4-layer NVFP4 twin (mainline CPU against CUDA, 0.001-0.003) holds no term for our activation rule (q8 per 128 on NVFP4 gemvs, f32 on Q8_0) against mainline's q8 per 32. A host simulation on mainline's own activations derives that term: 0.0049 median from the head, FFN and output sites, up to 0.0109 with the q/k/v inputs at gain one. Each band is that PIN in quadrature with the floor's term. Measured 0.0053 and 0.0049 medians sit inside the derivation. FAIL-first: blk.0.ffn_down's scale set to 1.0 reads median 0.44, FAIL; clean PASS. G4 is 0 lanes on both sets, and the same dropped-scale mutant on the twin path turns it red. Co-Authored-By: Claude Opus 5.5 <[email protected]>
clippy's type_complexity flagged the tuple parameter of load_blocks_from. One alias in weights.rs owns the type; model.rs and parts.rs use it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Verdict: MUST_FIX: the new G3 clause copies the existing dense oracle clause, the fixture tier loses clauses (a) to (f) with no dated reason, and one Python guard is dead code.
Must fix
1. nv::g3 duplicates dense_e2e::oracle and STABLE_K
gate_qwen35_dense.rs:380 is the per-row loop of dense_e2e.rs:343: the norms call, the worst row, the stability bound K · min(2·max, √2·l2), the top2 flips, the median and p90 checks and the print line. gate_qwen35_dense.rs:186 nv::STABLE_K = 1.3 is the constant at line 94, same value and same meaning, in the same file.
The copy is also weaker than its owner. oracle fails when under != other_rows (the pinned count of rows at or under the bound). G3 prints that count and never checks it. A moved set or twin passes G3 unnoticed.
Cost: the next band or rule change lands in two places, and the two clauses drift.
Fix: split oracle so it takes the rows and a Bands (rows_of stays in the caller). Make it pub. In nv::g3 build Bands { rel, median, p90, stable_k: super::gate::STABLE_K, other_rows } from the floor and call it per set. Make gate::STABLE_K pub(super). Delete nv::STABLE_K and the loop. Add the measured other_rows for the twin's sets with a PIN(2026-10-29): line. This removes about 45 lines and one constant.
2. The fixture tier no longer runs clauses (a) to (f), with no dated reason
gate_qwen35_dense.rs:126: on the base, dense_e2e::run ran in both tiers (tools/fixture-dirs.tsv had qwen38d self). Now Tier::Fixture calls only nv::run. Graph = eager, reset, the checkpoint cut, and two slots in one pass lose their fixture-tier run. The new doc line 16 states that (a) to (f) are the real tier's, with no date and no reason. Line 5 still says "the gate holds the same clauses in both tiers", which is now false. The PR body gives no reason.
Cost: a landing batch now goes green with no check of the resident-slot and checkpoint paths on any card in the fixture tier.
Fix: either run (a) to (f) on the twin, or state the removal. For the second, replace the sentence at line 5 and add above pub fn run:
// PIN(2026-10-29): the fixture tier runs G3 and G4 only; (a) to (f) are the real file's and run in the real tier. <name what covers graph = eager, reset, checkpoint and slots in the fixture tier now>3. unpinned is dead code
dense-logits.py:115 with its guards at line 125 and line 680, and the self-test at line 850 to 857. Every TARGETS entry (lines 46 to 87), the twin's included, has its size and sha256. No entry has None, so no run reaches a guard.
Fix: delete unpinned, both if unpinned(...) blocks and the pinned_by_hand loop. Keep target_identity and the identity command, which the docs name. In the self-test keep assert target_identity(model) == target. Drop "the unpinned-target refusal" from the final print (line 1162).
Non-blocking
⚠ qwen3_folder::open is one line over folder::open(dir, ARCH): qwen3_folder.rs:21. A new file and a new mod line in two bins hold this wrapper and model_at. Callers could use folder::open(path, refset::arch::qwen35::ARCH) and keep model_at in folder.rs. Small; fold it in when you touch the file.
⚠ Question: the body lists gate-gpu-qwen4exp-e2e@q38dense (the BF16 streams) as red on main, with "its re-pin lands separately". Name the main commit where it was red and its first failing clause.
Checked
- Duplicates: 38 new items checked. Hits:
g3andSTABLE_K(#1).reads_q8_1replacesquantizes_packand its test moved (one owner). dryer found 0 pairs and did not searchgpu-gates; I grepped that crate by hand. - Complexity:
nv::run24 andnv::g316 are new functions complex on their own (g3 is #1).qwen3::run77 to 81,Pre35::read20 to 21 andopen_placed_residency17 to 18 are one added branch each, harmless. - Silent failure: 9 sites followed (
card_formatfallback tofile_format,formatslookup,folder_choice,placed_split,refuse_partial_folder,whole_origin, G4differlane zip, NaN rows innorms,--only). Each ends in a named error or a red clause. - Tests: mutants checked. The
DENSE_FFNlist test turns red when NVFP4 is dropped.a_dense_ffn_launches_by_its_site_typesturns red whenreads_q8_1goes back tokquant().a_folder_loads_every_layer_and_a_head_of_its_ownturns red on a<range compare. G4 turns red on a dropped scale (bitwise compare). - Gates: new
ACT_*bands carry a dated PIN with the derivation.Q35_DENSE_FFNis widened with a dated PIN. The fixture-tier removal is #2. - Hot path: the decode launch count of a dense FFN changes only for NVFP4 sites, with the same quantizer rule as a Q5_K site (tested). No allocation or sync is added per step.
- Escape catalog: none matched.
Notes
- The PR body has no
nvidia-smiline, no commit hashes and no gate output, so no card evidence counts. The whole-model run on the community GGUF is listed as still to run.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_qwen35_dense.rs, crates/gpu-gates/src/bin/shared/dense_e2e.rs, crates/gpu-gates/src/bin/shared/serve_seats/mod.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)
…o holds the twin's rows under the stability bound dense_e2e::oracle takes the rows and a Bands; nv::g3 builds its bands from the floor and calls it, so the copied loop and nv::STABLE_K go. G3 now checks the count of rows at or under their bound against OTHER_ROWS (PIN(2026-10-29), 1 and 2 of 32, read from G3's own lines). The doc states that the fixture tier never ran (a) to (f): fixture-dirs had `qwen38d self`, so they were deferred to the real tier. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s size and sha256 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Verdict: CLEAN: the three earlier must-fix items are fixed or answered, and the new commit adds no defect.
Since the last review:
- #1
nv::g3duplicate: fixed.dense_e2e::oracleis nowpub, takesoursandBands, andtwin_ofowns the twin check.nv::g3calls both.nv::STABLE_Kand the loop are gone. G3 now checks the count of rows under the bound againstOTHER_ROWS(gate_qwen35_dense.rs:188, dated PIN). - #2 fixture tier: answered. On the base,
check_filein the fixture tier refuses a file without the fixture version key, and the real file has none. So (a) to (f) never ran in that tier. The doc at line 21 now says so, and the false "same clauses in both tiers" sentence is gone. - #3
unpinned: fixed. Guards, loop and the print text are removed.target_identitystays. - ⚠
qwen3_folder::openwrapper: not part of the new commit, not raised again. - ⚠ Question on the red
gate-gpu-qwen4exp-e2e@q38dense: answered in the PR body (first red b825b64, clausegemm freeflip).
Checked
- Duplicates: 2 new items checked in the new commit (
twin_of,OTHER_ROWS), none duplicated.oracleis the one owner of the per-row rule. dryer found 0 pairs and did not searchgpu-gates. - Complexity:
nv::run24 is a new function, complex on its own. It was read last round and the new commit only removes code from it. The other flagged functions are unchanged since the last review. - Silent failure: 3 sites followed (
twin_ofrefusal by name, the row-length error kept inoracle, theset_atindex intoother_rows). Each ends in a named error or a red clause. Theiing3follows the order ofsetsandOTHER_ROWS(p64, then p4096). - Tests: mutant on
under == otherinoracle. The pin[1, 2]against a changed twin turns the p64 or p4096 line red. A flipped stable-bound compare turns a flip count red in both gates. - Gates:
OTHER_ROWSfor the twin is new with a dated PIN. No band moved. - Escape catalog: none matched.
Notes
- The PR body has no
nvidia-smiline, no commit hashes and no gate output, so no card evidence counts. The whole-model run on the community GGUF is still listed as to run.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_qwen35_dense.rs, crates/gpu-gates/src/bin/shared/dense_e2e.rs, crates/gpu-gates/src/bin/shared/serve_seats/mod.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)
…s the oracle Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Verdict: CLEAN: the new commit changes one data row and adds no defect.
Since the last review:
- No must-fix or ⚠ item was open. Nothing to carry over.
The new commit changes one line: tools/model-tax.tsv lowers the qwen count for crates/gpu-gates/src/bin/shared/dense_e2e.rs from 16 to 15. The row keeps its dated PIN(2026-10-26) and its reason. The count goes down, so the tax is not relaxed.
Checked
- Duplicates: 0 new items in the new commit. dryer found 0 pairs.
- Complexity: the new commit touches no function. The flagged functions are unchanged since the last review.
- Silent failure: no code changed, 0 sites.
- Tests: no test changed.
- Gates: no band or threshold moved. The tax row went down by one with its pin kept.
tools/check-model-tax.shis the check that holds the exact count. - Escape catalog: none matched.
Notes
- The PR body has no
nvidia-smiline, no commit hashes and no gate output, so no card evidence counts. The whole-model run on the community GGUF is still listed as to run.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_qwen35_dense.rs, crates/gpu-gates/src/bin/shared/dense_e2e.rs, crates/gpu-gates/src/bin/shared/serve_seats/mod.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)
There was a problem hiding this comment.
Verdict: CLEAN: every failure scenario I built is blocked by a named refusal, a pin test or an existing guard; three non-blocking items follow.
Non-blocking
⚠ G3 bands have no FAIL-first run: gate_qwen35_dense.rs:182. The PR body gives a FAIL-first only for OTHER_ROWS. ACT_MEDIAN, ACT_P90, ACT_ROW and the three factors are a new gate too. Question to the author: which planted fault (a dropped tensor scale, a layer off by one) turns the rel, median or p90 line red, with the output?
⚠ nv::run does five jobs: gate_qwen35_dense.rs:214. It reads the card budget, resolves the cut and the twin, parses --only, runs both clauses and prints the tally (new function, crapper 24). Direction: move the budget, folder and twin resolution into one fn setup() -> Result<(u64, PathBuf, &'static Path), GateError>. This is its own piece of work.
⚠ Pre35::formats is built by every Pre35::read caller and used by one: body35.rs:796. Body35::load drops it (formats: _); open_lanes takes it with mem::take. This is load-time work, so the cost is small. Computing the map in open_lanes would remove the field and the take, if that costs fewer lines than it adds.
Also 1 minor: gate_qwen35_dense declares required-features = ["gpu"] (Cargo.toml:694) but its fixture tier needs checkpoint. A build without it fails at run time, by name. The bin at line 494 declares both.
Checked
- Duplicates: 24 new items checked, none duplicated. dryer found 0 pairs; a hand grep of
gpuandgpu-gatesfound none. - Complexity:
nv::run(see ⚠).dense_e2e::run32→34,Pre35::read20→21,open_placed_residency17→18: one branch or arm each, harmless. - Silent failure: 7 sites followed; each refuses by name.
- Tests (mutation): the dense-FFN pin, q8_1 and folder-head tests go red on the plausible mutant.
- Performance: no new allocation, lock or sync in the decode step.
- Gates:
PIN(2026-10-29)on the new bands. No gate removed. Escape catalog: no match.
Notes
- The PR body has no
nvidia-smiline, commit hashes or gate output. The whole model against mainline is "still to run".
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_qwen35_dense.rs, crates/gpu-gates/src/bin/shared/dense_e2e.rs, crates/gpu-gates/src/bin/shared/serve_seats/mod.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)
What and why
ModelOpt's Qwen3.8-27B NVFP4 checkpoint folder now opens whole on the card through Body35, as downloaded. The dense
feed-forward sites and the head run NVFP4. The embedding is read as the folder's BF16 words. An NVFP4 tensor's
input_scaleis a named, unread tensor. Each tensor uploads in the card format its description gives.Release notes: Added — Qwen3.8-27B's NVFP4 checkpoint folder (ModelOpt) runs on CUDA cards as downloaded.
Code shape
CardOf) throughWeights::load_as,load_blocks_fromandload_whole.ACT_MEDIAN/P90/ROWwithPIN(2026-10-29):. Each band is the activation rule's derived term in quadrature with the floor.cargo fmtandcargo clippyare clean; the lint count did not go up.Duplication found or removed: none.
What I ran
gate-qdot(fixed by qdot: the IQ3_XXS and MXFP4 gates read files the box keeps; gate-deepseek4-meta retires #950) andgate-gpu-qwen4exp-e2e@q38dense(the BF16 streams; its re-pin lands separately).just remote-static: ok.Review answers
dense_e2e::oracle, one owner, and also holds the count of rows at or under the stability bound (OTHER_ROWSPIN(2026-10-29), 1 and 2 of 32, read from G3's own lines). FAIL-first: a pin of [2, 2] turns the p64 line red.tools/fixture-dirs.tsvhadqwen38d self, andgate-batch --tier fixtureon main's tree defersgate-gpu-qwen38dasreal-file(the target reachesTier::check_fileatdense_e2e.rs:139). (a) to (f) stay in the real tier, scheduled by the rotation. The fixture tier now also runs G3 and G4 on the cut.unpinnedis gone fromdense-logits.py.gate-gpu-qwen4exp-e2e@q38denseis red on main from b825b64 (first red; bd9afe0 is the last green), at thegemm freeflip clause. gate_qwen4exp_e2e: a flip past an earlier flip is capped with the earlier flips undone #955 re-derives that rule.🤖 Generated with Claude Code