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
c5d2b01c
Unverified
Commit
c5d2b01c
authored
Sep 12, 2025
by
zk-lover
Committed by
GitHub
Sep 11, 2025
Browse files
[LongCat] Optimize zero_experts_compute_triton by changing mask (#10303)
parent
46ccbed2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/layers/moe/ep_moe/kernels.py
python/sglang/srt/layers/moe/ep_moe/kernels.py
+1
-1
No files found.
python/sglang/srt/layers/moe/ep_moe/kernels.py
View file @
c5d2b01c
...
@@ -1416,7 +1416,7 @@ def zero_experts_compute_triton(
...
@@ -1416,7 +1416,7 @@ def zero_experts_compute_triton(
zero_expert_scales
[
zero_expert_mask
]
=
0.0
zero_expert_scales
[
zero_expert_mask
]
=
0.0
normal_expert_mask
=
expert_indices
>=
num_experts
normal_expert_mask
=
expert_indices
>=
num_experts
expert_indices
[
normal_expert_mask
]
=
0
expert_indices
[
normal_expert_mask
]
=
-
1
expert_scales
[
normal_expert_mask
]
=
0.0
expert_scales
[
normal_expert_mask
]
=
0.0
output
=
torch
.
zeros_like
(
hidden_states
).
to
(
hidden_states
.
device
)
output
=
torch
.
zeros_like
(
hidden_states
).
to
(
hidden_states
.
device
)
...
...
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