8000 Fix moe align kernel test (#8531) · sgl-project/sglang@5973675 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5973675

Browse files
authored
Fix moe align kernel test (#8531)
1 parent 4d16c88 commit 5973675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sgl-kernel/tests/test_moe_align.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def test_moe_align_block_size_compare_implementations(
229229
matching_indices = torch.where(expert_ids_cuda == expert_idx)[0]
230230
block_sorted_start = matching_indices[0].item() * block_size
231231
block_sorted_end = min(
232-
(matching_indices[-1].item() + 1) * block_size, max_num_tokens_padded
232+
(matching_indices[-1].item() + 1) * block_size, num_tokens_post_pad_cuda.item()
233233
)
234234

235235
selected_sorted_ids_cuda = sorted_ids_cuda[

0 commit comments

Comments
 (0)
0