Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d3c18c9c
Unverified
Commit
d3c18c9c
authored
Aug 04, 2025
by
Yuxuan Zhang
Committed by
GitHub
Aug 03, 2025
Browse files
fuse fp32 for GLM-4.5 e_score_correction_bias (#22143)
Signed-off-by:
zRzRzRzRzRzRzR
<
2448370773@qq.com
>
parent
83f7bbb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
vllm/model_executor/models/glm4_moe.py
vllm/model_executor/models/glm4_moe.py
+2
-3
No files found.
vllm/model_executor/models/glm4_moe.py
View file @
d3c18c9c
...
...
@@ -125,9 +125,8 @@ class Glm4MoE(nn.Module):
quant_config
=
None
,
prefix
=
f
"
{
prefix
}
.gate"
)
# noaux_tc is not set in transformers new config now
self
.
gate
.
e_score_correction_bias
=
(
nn
.
Parameter
(
torch
.
empty
(
config
.
n_routed_experts
)))
self
.
gate
.
e_score_correction_bias
=
nn
.
Parameter
(
torch
.
empty
(
config
.
n_routed_experts
,
dtype
=
torch
.
float32
))
# Load balancing settings.
vllm_config
=
get_current_vllm_config
()
...
...
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