Repository navigation
Conversation
`impl FolderMap` for nemotron_h reads nvidia's Lightning NVFP4 folder into the GGUF twin's names and dims: NVFP4 routed experts as stacks of planes, FP8_B128 mamba projections, F32 router and bias, MTP and the KV-cache scales skipped by name. The wrapper configs (Super, Nano-VL), the puzzle inner model, dense configs, latent MoE, unknown keys and mixers, and an expert stack other than 0..128 are refused by name. Fixtures: the real shard headers of layers 0, 1 and 5 with the head, the UD-Q4_K_XL twin's header, and the folder's config and hf_quant_config. FAIL-first on the box: swapping in_proj/out_proj, the conv squeeze or the norm reshape each turns three map tests red. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Verdict: CLEAN: no failure path survived; the map refuses every bad input I built by name, and the twin-header test pins names, dims, types, sources and keys.
Non-blocking
⚠ The map is not in MAPS: arch/mod.rs:25. MODEL_TYPES and the two wrapper names are not reachable from folder::open yet, so a Lightning folder is still refused as an unknown model_type. The PR body says "body sites (next PR)" but not that the registration is also deferred. Say so, or add the row.
Checked
- Duplicates: about 30 new items checked by Grep. The dryer pair
mover(nemotron_h.rs:1028, minimaxm3.rs:668) was read: two short copies, and a shared helper adds a name, so no finding.neg_exp,module_class,Sectionandtrunk::sizedare reused, not copied.flaghas no existing owner. - Complexity (crapper):
Checkpoint::item(30) andPart::of(27) are even growth, one arm a tensor name.Checkpoint::read(23) is a straight list of config reads and checks.Checkpoint::map(18) is one loop with a skip, a one, an expert and a duplicate-id arm. No split needed. - Silent failure: 14 sites followed (
parse().ok()?inPart::ofanditem,is_some_andonmoe_latent_size,get(l).copied(), theKindandLayermatches, therope_dimsfilter,countsviaSection::countwhich refuses zero). Each ends in a named refusal. No default is taken. Zero divisors (groups) cannot reachexpected()becausecountis positive. - Tests: the twin test checks the sources and the steps of every tensor. Mutants: the
in_projandout_projswap fails the dims or the sources check. A droppedNegExpfailsm.steps. A flippedOrigin::File(F32)on the router failsm.origin. The counts in the test comments (401, 93, 282) match their derivations [derived]. - Gates: none moved. No
PINneeded. - Escape catalog: no shell or script change; C1 to C4 do not apply.
Notes
gpu.jsonevidence is false: the PR body saysjust gate-model-hfpassed (98) but has nonvidia-smiline, commit hashes or command output. This crate does not need a card.- dryer ran and crapper ran (complexity only).
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
…type_complexity) Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Verdict: CLEAN: the new commit only moves one inline map type into a Stacks alias; behavior is unchanged.
Since the last review
- ⚠ (non-blocking) The map is not in
MAPS: still open. arch/mod.rs:25 lists nonemotron_h::Checkpoint, and the PR body still says only "body sites (next PR)". A Lightning folder is refused as an unknownmodel_typeuntil a row is added. Say in the body that the registration is also deferred, or add the row.
Checked
- Duplicates: 1 new item checked (
Stacks). It replaces the one inline type at nemotron_h.rs:961; no otherStacksor same-shaped alias incrates/model-hf. The earlier dryer pair (mover) was read in the last review: no finding. - Complexity (crapper): the flagged functions are the same as in the last review.
Checkpoint::mapis unchanged in complexity (a type annotation moved). No new growth. - Silent failure: no new sites. The lifetime
'aon the alias matches themap<'a>signature, so the borrow of the tensor names is the same as before. - Tests: no test change; no new test needed for a type alias.
- Gates: none moved.
- Escape catalog: no shell or script change; C1 to C4 do not apply.
Notes
gpu.jsonevidence is false: the PR body has nonvidia-smiline, commit hashes or command output. This crate does not need a card.- dryer ran and crapper ran (complexity only).
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
nvidia's Nemotron 3.5 Lightning-30B-A3B NVFP4 folder (ModelOpt, safetensors) maps onto the GGUF twin's names and dims, so the existing Nemotron-H MoE engine can read it once the body sites (next PR) admit its NVFP4 dense and FP8 tensors.
crates/model-hf/src/arch/nemotron_h.rs:impl FolderMap. NVFP4 routed experts become plane stacks, FP8_B128 mamba projections keep their role, router and bias stay F32, and MTP and KV-cache scales are skipped by name.config.jsonandhf_quant_config.json.Proof:
just gate-model-hfon the box, 98 passed. Swapping in_proj/out_proj, the conv squeeze or the norm reshape each turns three map tests red. The fixture-tier landing batch: 10 items, 0 red, 6 deferred by name.This was written with AI help (Claude) and reviewed by the maintainer's lead session.
🤖 Generated with Claude Code