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
5973675b
"tests/python/common/test_homophily.py" did not exist on "5ffd2a022c3bc2b37a47d460d5f32d034f61d81e"
Unverified
Commit
5973675b
authored
Jul 30, 2025
by
Ke Bao
Committed by
GitHub
Jul 29, 2025
Browse files
Fix moe align kernel test (#8531)
parent
4d16c88b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sgl-kernel/tests/test_moe_align.py
sgl-kernel/tests/test_moe_align.py
+1
-1
No files found.
sgl-kernel/tests/test_moe_align.py
View file @
5973675b
...
@@ -229,7 +229,7 @@ def test_moe_align_block_size_compare_implementations(
...
@@ -229,7 +229,7 @@ def test_moe_align_block_size_compare_implementations(
matching_indices
=
torch
.
where
(
expert_ids_cuda
==
expert_idx
)[
0
]
matching_indices
=
torch
.
where
(
expert_ids_cuda
==
expert_idx
)[
0
]
block_sorted_start
=
matching_indices
[
0
].
item
()
*
block_size
block_sorted_start
=
matching_indices
[
0
].
item
()
*
block_size
block_sorted_end
=
min
(
block_sorted_end
=
min
(
(
matching_indices
[
-
1
].
item
()
+
1
)
*
block_size
,
max_
num_tokens_p
added
(
matching_indices
[
-
1
].
item
()
+
1
)
*
block_size
,
num_tokens_p
ost_pad_cuda
.
item
()
)
)
selected_sorted_ids_cuda
=
sorted_ids_cuda
[
selected_sorted_ids_cuda
=
sorted_ids_cuda
[
...
...
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