Repository navigation
Conversation
…5 file Family::Qwen35Hf is the dense Qwen3.5 class as ModelOpt exports it, picked by the config's quantization_config.quant_method. It reads transformers' names, gammas without the +1 and conv taps [c,1,k] (one hf() owner of those facts, shared with Qwen3.8); FP8 attention and delta-rule projections convert to Q8_0 at load, the NVFP4 feed-forward blocks and head stay NVFP4. The dense next-token layer is left out by the name of each of its 15 tensors; any other mtp. name is refused. The header fixture is nvidia/Qwen3.8-27B-NVFP4 @ 482ca0f3 layers 0 and 3 plus the globals. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Verdict: CLEAN: no failure path survived; the new family only adds a map for a folder that was refused before, and the existing families map as they did.
Checked
- Duplicates: about 14 new items checked (
Family::hf,projection,next_token,dense_next_token,DTYPE,LANGUAGE_MODEL_ONLY,IMAGE_TOKEN_UNREAD,ROOT_HF_DENSE, themadeandprojectionclosures). None duplicated.nemotron_h.rs:61andminimaxm3.rs:41still hold their own copy of thedtypetext; that code is outside the diff. - dryer: 4 pairs, all in
text,lm_headandvision. Each is the sameif self.hf() { a } else { b }shape over different strings, so they are not the same knowledge. No finding. - crapper:
map75 → 78. The growth is oneelse iffor the error text and one branch for the output norm's+1. Harmless.layerhas the same kind of growth. - Silent failure: 6 sites followed (
Family::ofwith a non-string or missingquant_method;dense_next_tokenwith an unknownmtp.name; the draft refusal;Use::Q8_0on a format with no source type,type_ofreturnsNone; the conv tap shape; the output norm). Each ends in a named refusal or in the old behavior. A ModelOpt Qwen3.6 or text-only folder stays on its MLX family and is refused by tensor name. - Regression check:
mlx()→hf(),exp→hfinplus_oneand the taps, andmlx &&→!exp &&on the block norms select the same families as before for Qwen3.8, Qwen3.6 and the MLX dense ones. - Tests: mutants checked in words.
if modelopt→false(the PR's own FAIL-first, 5 tests red). The output norm'sPlusOnedropped turns red atoutput_norm.weight(test lines 406-409).Squeezeandhfswapped in the taps are caught by the tap-shape refusal row.dense_next_token's.containsdropped fortrueis caught bymtp.zzz.weightandmtp.fc.bias. - Gates: no pin moved, no test removed.
- Escape catalog: no match (no shell code in the diff).
Notes
- The PR body has no
nvidia-smiline. The change is a host-side map and needs no card.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
ModelOpt's
nvidia/Qwen3.8-27B-NVFP4checkpoint folder now maps to the denseqwen35file layout. This is the firststep to running that folder on the card. Body support follows in later PRs. The folder's config names the same class as
the dense MLX folder, so the map picks the new family by
quantization_config.quant_method == "modelopt".Release notes: internal — the host-side map for a model the card cannot run yet.
Family::Qwen35Hfreads transformers' names, the gammas without the+1, and conv taps[c,1,k]. Onehf()method owns those facts for Qwen3.8 and this family.
Use::Q8_0). The NVFP4 feed-forward blocks andthe head stay NVFP4.
mtp.name is refused by name.nvidia/Qwen3.8-27B-NVFP4@ 482ca0f3, layers 0 and 3 plus the globals, cut by HTTP Range. The realFP8 scales are F32 scalars, which
Format::Fp8Tensoralready reads.Code shape
trunk::DTYPEis one row now; the name, gamma and tap facts have one owner (hf()).mtp.names are refused by name.cargo fmtandcargo clippyclean; lint count unchanged.Duplication found or removed (
path:line): thedtyperoot row (trunk.rs), once per family before.What I ran
🤖 Generated with Claude Code