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
9bd4872a
Unverified
Commit
9bd4872a
authored
Aug 04, 2025
by
Trevor Morris
Committed by
GitHub
Aug 04, 2025
Browse files
[bugfix] Fix typo in modelopt quant: 'FusedMoE' object has no attribute 'local_num_experts' (#8768)
parent
2fa0462c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/layers/quantization/modelopt_quant.py
python/sglang/srt/layers/quantization/modelopt_quant.py
+1
-1
No files found.
python/sglang/srt/layers/quantization/modelopt_quant.py
View file @
9bd4872a
...
@@ -776,7 +776,7 @@ class ModelOptNvFp4FusedMoEMethod(FusedMoEMethodBase):
...
@@ -776,7 +776,7 @@ class ModelOptNvFp4FusedMoEMethod(FusedMoEMethodBase):
# GEMM 1
# GEMM 1
w13_weight
=
ModelWeightParameter
(
w13_weight
=
ModelWeightParameter
(
data
=
torch
.
empty
(
data
=
torch
.
empty
(
layer
.
local_
num_
experts
,
layer
.
num_
local_experts
,
2
*
intermediate_size_per_partition
,
2
*
intermediate_size_per_partition
,
# 2 fp4 items are packed in the input dimension
# 2 fp4 items are packed in the input dimension
hidden_size
//
2
,
hidden_size
//
2
,
...
...
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