[AMD] Fix Kimi-K2.6 Quark MXFP4 loading prefix and packed module mapping#23408
Merged
HaiShaw merged 2 commits intosgl-project:mainfrom Apr 27, 2026
Merged
[AMD] Fix Kimi-K2.6 Quark MXFP4 loading prefix and packed module mapping#23408HaiShaw merged 2 commits intosgl-project:mainfrom
HaiShaw merged 2 commits intosgl-project:mainfrom
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Collaborator
|
@ColinZ22 could you please add the server command you use along with the gsm8k benchmark results? Thanks. |
Contributor
Author
Added |
BowenBao
approved these changes
Apr 22, 2026
Collaborator
|
/tag-and-rerun-ci |
HaiShaw
approved these changes
Apr 27, 2026
vguduruTT
pushed a commit
to vguduruTT/sglang
that referenced
this pull request
May 2, 2026
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.
Motivation
Fix Kimi-K2.6 Quark MXFP4 checkpoint loading.
Two issues:
KimiK25ForConditionalGenerationwas only given the "language_model" prefix when the quant config was "ModelSlimConfig". For Quark MXFP4 checkpoints, theexclude_layerslist contains entries prefixed with language_model. (e.g., language_model.model.layers.0.self_attn.q_a_proj). Without passingprefix="language_model", layer prefixes during model construction fail to match the exclude list, causing layers that should be kept unquantized to be incorrectly quantized.used q_a_proj+kv_a_proj_with_mqalayers.Modifications
isinstancecheck so DeepseekV3ForCausalLM receivesprefix="language_model"for both ModelSlimConfig and QuarkConfig.fused_qkv_a_proj_with_mqato the Quarkpacked_modules_mapping.Server Command and Accuracy Verification
Serving Command:
Accuracy Verification via lm_eval:
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ci