optimize moe_align_kernel cuda (#3347)
This commit is contained in:
@@ -417,12 +417,12 @@ def moe_align_block_size(
|
||||
num_tokens_post_pad,
|
||||
)
|
||||
else:
|
||||
token_cnts_buffer = torch.empty(
|
||||
token_cnts_buffer = torch.zeros(
|
||||
(num_experts + 1) * num_experts,
|
||||
dtype=torch.int32,
|
||||
device=topk_ids.device,
|
||||
)
|
||||
cumsum_buffer = torch.empty(
|
||||
cumsum_buffer = torch.zeros(
|
||||
num_experts + 1, dtype=torch.int32, device=topk_ids.device
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user