Repository navigation
atlas-core: treat W4A16_NVFP4 as NVFP4 in quant detection (#88) - #90
Merged
Merged
Conversation
The current nvidia/Qwen3.6-35B-A3B-NVFP4 revision failed to load (reiner job 297, main and merge train alike): "Expected FP8E4M3 for ...shared_expert.gate_proj.weight, got UInt8". Its modelopt MIXED_PRECISION map labels NVFP4 layers W4A16_NVFP4 (FP8 x130, W4A16_NVFP4 x161), and the mixed-map detector matched only the exact string NVFP4. It saw only FP8, routed the pack to Fp8Dequanted, and then expected FP8 experts. The Flash-Next and 27B packs say NVFP4; Nemotron-3.5-Lightning also uses W4A16_NVFP4. is_nvfp4_quant_algo (NVFP4 or *_NVFP4, case-insensitive) is now the single predicate in the mixed-map and global modelopt arms of nvfp4_detect, in weight_manifest, and in canonicalize_model_quant. W4A16 NVFP4 is exactly the path Atlas serves. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This was referenced Sep 26, 2026
Contributor
Author
|
Merged as part of the GB10 merge train (main Gates on the combined tree:
Tree check: |
AzeezIsh
added a commit
that referenced
this pull request
Sep 26, 2026
qsa_score_tc / qsa_attn_tc{,2,3} / moe_persist_marker are lazy
try_kernel probes introduced by main's #90/#92 campaign; none is built
for gfx1151. Without declarations the new boot kernel gate fails the
serve with '5 unresolved kernel lookup(s)'.
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Fixes #88. The current
nvidia/Qwen3.6-35B-A3B-NVFP4revision failed to load withExpected FP8E4M3 for ...shared_expert.gate_proj.weight, got UInt8. Reiner job 297 saw the same failure on main66 and on the merge-train tree.Root cause
The pack's modelopt
MIXED_PRECISIONper-layer map labels its NVFP4 layersW4A16_NVFP4(FP8 ×130, W4A16_NVFP4 ×161).mixed_precision_variant(weight_map/nvfp4_detect.rs:385) matched only the exact stringNVFP4, so it saw only FP8 layers and routed the whole pack toFp8Dequanted. The loader then skipped the NVFP4 experts and expected an FP8 shared expert.On this box the Flash-Next and 27B packs use
NVFP4, while Nemotron-3.5-Lightning usesW4A16_NVFP4. Atlas's NVFP4 path is exactly W4A16 (BF16 activations over NVFP4 weights).Change
One predicate,
atlas_core::config::is_nvfp4_quant_algo(NVFP4or*_NVFP4, case-insensitive), is used at every site that matches an NVFP4 algo label:nvfp4_detect;weight_manifest;canonicalize_model_quant.All other
quant_algosites were audited and left alone: they are pass-through, display, fingerprint, or a different field (kv_cache_quant_algo). The nemotron_h loader detects NVFP4 per tensor, so it does no label matching.Validation
cargo test -p atlas-core(177 pass, including the newnvfp4_quant_algo_label_family). A new spark-model test,mixed_precision_w4a16_nvfp4_labels_resolve_standard, compiles here and runs on the CUDA host.