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
12d68183
"tutorial/gcn/vscode:/vscode.git/clone" did not exist on "d87fea827378f6954026860ad765be133e4b610c"
Unverified
Commit
12d68183
authored
Oct 02, 2025
by
fzyzcjy
Committed by
GitHub
Oct 02, 2025
Browse files
Tiny fix ep_gather behavior different in CI (#11130)
parent
b65db028
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 @
12d68183
...
@@ -1104,10 +1104,10 @@ def ep_gather(
...
@@ -1104,10 +1104,10 @@ def ep_gather(
input_index
:
torch
.
Tensor
,
input_index
:
torch
.
Tensor
,
output_tensor
:
torch
.
Tensor
,
output_tensor
:
torch
.
Tensor
,
):
):
BLOCK_D
=
1024
if
not
is_in_ci
()
else
128
# block size of quantization
num_warps
=
2
num_warps
=
2
num_tokens
=
output_tensor
.
shape
[
0
]
num_tokens
=
output_tensor
.
shape
[
0
]
hidden_size
=
input_tensor
.
shape
[
1
]
hidden_size
=
input_tensor
.
shape
[
1
]
BLOCK_D
=
128
if
hidden_size
%
1024
!=
0
else
1024
# block size of quantization
assert
hidden_size
%
BLOCK_D
==
0
assert
hidden_size
%
BLOCK_D
==
0
grid
=
(
triton
.
cdiv
(
hidden_size
,
BLOCK_D
),
min
(
num_tokens
,
1024
))
grid
=
(
triton
.
cdiv
(
hidden_size
,
BLOCK_D
),
min
(
num_tokens
,
1024
))
_fwd_kernel_ep_gather
[
grid
](
_fwd_kernel_ep_gather
[
grid
](
...
...
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