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
a4b0d5c9
Unverified
Commit
a4b0d5c9
authored
Aug 05, 2025
by
Yuxuan Zhang
Committed by
GitHub
Aug 05, 2025
Browse files
GLM-4.5 and GLM-4.5-Air both support (#8804)
parent
40e3b2be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
python/sglang/srt/models/glm4_moe.py
python/sglang/srt/models/glm4_moe.py
+1
-2
No files found.
python/sglang/srt/models/glm4_moe.py
View file @
a4b0d5c9
...
...
@@ -785,7 +785,7 @@ class Glm4MoeForCausalLM(DeepseekV2ForCausalLM):
)
def
determine_num_fused_shared_experts
(
self
,
architecture
:
str
=
"
DeepseekV3
ForCausalLM"
self
,
architecture
:
str
=
"
Glm4Moe
ForCausalLM"
):
self
.
num_fused_shared_experts
=
0
if
global_server_args_dict
[
"disable_shared_experts_fusion"
]:
...
...
@@ -797,7 +797,6 @@ class Glm4MoeForCausalLM(DeepseekV2ForCausalLM):
not
_is_cuda
or
torch
.
cuda
.
get_device_capability
(
"cuda"
)
<
(
8
,
0
)
or
self
.
config
.
architectures
[
0
]
!=
architecture
or
self
.
config
.
n_routed_experts
!=
128
or
self
.
config
.
n_shared_experts
!=
1
):
disable_reason
=
"Only GLM-4.5 on NV-platform with capability >= 80 can use shared experts fusion optimization."
...
...
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