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
81992474
Unverified
Commit
81992474
authored
Apr 07, 2025
by
HAI
Committed by
GitHub
Apr 07, 2025
Browse files
Fix refactor error - fp8.py (#5106)
Co-authored-by:
Lianmin Zheng
<
lianminzheng@gmail.com
>
parent
f04c80dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/layers/quantization/fp8.py
python/sglang/srt/layers/quantization/fp8.py
+1
-1
No files found.
python/sglang/srt/layers/quantization/fp8.py
View file @
81992474
...
@@ -860,7 +860,7 @@ class Fp8MoEMethod:
...
@@ -860,7 +860,7 @@ class Fp8MoEMethod:
layer
.
w13_weight_scale1
[
expert_id
]
*=
max_w13_scales
[
expert_id
]
layer
.
w13_weight_scale1
[
expert_id
]
*=
max_w13_scales
[
expert_id
]
layer
.
w2_weight_scale1
[
expert_id
]
*=
layer
.
w2_weight_scale
[
expert_id
]
layer
.
w2_weight_scale1
[
expert_id
]
*=
layer
.
w2_weight_scale
[
expert_id
]
def
process_weights_hip_scale_padding
(
self
,
layer
:
Module
,
padding_size
:
int
):
def
process_weights_hip_scale_padding
(
self
,
layer
:
Module
):
from
sglang.srt.layers.moe.fused_moe_triton.fused_moe
import
(
from
sglang.srt.layers.moe.fused_moe_triton.fused_moe
import
(
padding_size
,
# Avoid circular import
padding_size
,
# Avoid circular import
)
)
...
...
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