Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
9c53dad8
Unverified
Commit
9c53dad8
authored
Sep 22, 2025
by
Jue WANG
Committed by
GitHub
Sep 22, 2025
Browse files
Fix MTP MoE weight loading with NVFP4 target model. (#10758)
parent
7ca1bea6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
python/sglang/srt/layers/moe/fused_moe_triton/layer.py
python/sglang/srt/layers/moe/fused_moe_triton/layer.py
+4
-1
No files found.
python/sglang/srt/layers/moe/fused_moe_triton/layer.py
View file @
9c53dad8
...
@@ -575,7 +575,10 @@ class FusedMoE(torch.nn.Module):
...
@@ -575,7 +575,10 @@ class FusedMoE(torch.nn.Module):
)
)
# Flashinfer assumes w31 format for w13_weight. Same for the scales.
# Flashinfer assumes w31 format for w13_weight. Same for the scales.
if
should_use_flashinfer_trtllm_moe
():
if
(
should_use_flashinfer_trtllm_moe
()
and
self
.
quant_method
.
__class__
.
__name__
==
"ModelOptNvFp4FusedMoEMethod"
):
shard_id
=
{
"w1"
:
"w3"
,
"w3"
:
"w1"
,
"w2"
:
"w2"
}[
shard_id
]
shard_id
=
{
"w1"
:
"w3"
,
"w3"
:
"w1"
,
"w2"
:
"w2"
}[
shard_id
]
WEIGHT_SCALE_SUPPORTED
=
[
e
.
value
for
e
in
FusedMoeWeightScaleSupported
]
WEIGHT_SCALE_SUPPORTED
=
[
e
.
value
for
e
in
FusedMoeWeightScaleSupported
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment