reduce moe_align_block_size_kernel small batch mode overhead (#5086)

This commit is contained in:
Xiaoyu Zhang authored and GitHub committed 2025-04-09 17:59:35 -07:00
1 parent e3c4bd3153
commit f730362ee2
4 files changed
+139 -52

No files matched your search

@@ -702,7 +702,7 @@ def moe_align_block_size(
num_tokens_post_pad,
)
else:
token_cnts_buffer = torch.zeros(
token_cnts_buffer = torch.empty(
(num_experts + 1) * num_experts,
dtype=torch.int32,
device=topk_ids.device,