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
760286e3
Unverified
Commit
760286e3
authored
Aug 04, 2025
by
Yuxuan Zhang
Committed by
GitHub
Aug 03, 2025
Browse files
use fp32 for e_score_correction_bias in GLM-4.5 (#8729)
parent
3435a24e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/models/glm4_moe.py
python/sglang/srt/models/glm4_moe.py
+1
-1
No files found.
python/sglang/srt/models/glm4_moe.py
View file @
760286e3
...
@@ -343,7 +343,7 @@ class Glm4MoeGate(nn.Module):
...
@@ -343,7 +343,7 @@ class Glm4MoeGate(nn.Module):
torch
.
empty
((
config
.
n_routed_experts
,
config
.
hidden_size
))
torch
.
empty
((
config
.
n_routed_experts
,
config
.
hidden_size
))
)
)
self
.
e_score_correction_bias
=
nn
.
Parameter
(
self
.
e_score_correction_bias
=
nn
.
Parameter
(
torch
.
empty
((
config
.
n_routed_experts
))
torch
.
empty
((
config
.
n_routed_experts
)
,
dtype
=
torch
.
float32
)
)
)
if
_is_cpu
and
_is_cpu_amx_available
:
if
_is_cpu
and
_is_cpu_amx_available
:
self
.
quant_method
=
PackWeightMethod
(
weight_names
=
[
"weight"
])
self
.
quant_method
=
PackWeightMethod
(
weight_names
=
[
"weight"
])
...
...
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