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
a220c14f
Unverified
Commit
a220c14f
authored
Sep 16, 2025
by
scut-cbq
Committed by
GitHub
Sep 16, 2025
Browse files
fix crash of DeepSeek-V3 update_weights_from_disk (#8863)
Co-authored-by:
parkeychen
<
parkeychen@tencent.com
>
parent
35ef3f29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/layers/quantization/fp8.py
python/sglang/srt/layers/quantization/fp8.py
+2
-2
No files found.
python/sglang/srt/layers/quantization/fp8.py
View file @
a220c14f
...
@@ -358,8 +358,8 @@ class Fp8LinearMethod(LinearMethodBase):
...
@@ -358,8 +358,8 @@ class Fp8LinearMethod(LinearMethodBase):
return
return
else
:
else
:
weight
,
weight_scale
=
layer
.
weight
.
data
,
layer
.
weight_scale_inv
.
data
weight
,
weight_scale
=
layer
.
weight
.
data
,
layer
.
weight_scale_inv
.
data
layer
.
weight
=
Parameter
(
weight
,
requires_grad
=
False
)
layer
.
weight
.
data
=
weight
.
data
layer
.
weight_scale_inv
=
Parameter
(
weight_scale
,
requires_grad
=
False
)
layer
.
weight_scale_inv
.
data
=
weight_scale
.
data
else
:
else
:
layer
.
weight
=
Parameter
(
layer
.
weight
.
data
,
requires_grad
=
False
)
layer
.
weight
=
Parameter
(
layer
.
weight
.
data
,
requires_grad
=
False
)
...
...
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