fix(models): support nvidia/Qwen3.8-Flash-Next-NVFP4 in qwen4_exp - #404
Open
Eng-Ahmd wants to merge 1 commit into
Open
fix(models): support nvidia/Qwen3.8-Flash-Next-NVFP4 in qwen4_exp#404Eng-Ahmd wants to merge 1 commit into
Eng-Ahmd wants to merge 1 commit into
Conversation
Detect NVFP4 experts behind MIXED_PRECISION via quantized_layers/config_groups. Probe self_attn on a full_attention layer and linear_attn on a linear layer instead of hardcoded layers.0, which has no self_attn and misrouted attn_quant to nvfp4.
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.
Problem: nvidia/Qwen3.8-Flash-Next-NVFP4 fails to load. First with missing MoE expert sources on every layer, and after working around the quant flag, with KeyError on model.layers.0.linear_attn.out_proj.weight_scale. RadixArk/Qwen3.8-Flash-Next-NVFP4 loads fine.
Root cause (python/freetoken/models/qwen4_exp/config.py):
Change:
Verification:
Scope: qwen4_exp only. No Laguna changes.