Skip to content

Commit 4f35be1

Browse files
[BugFix] Fix topk_softmax assert (#19764)
Signed-off-by: Luka Govedic <[email protected]>
1 parent 2b61d2e commit 4f35be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csrc/moe/topk_softmax_kernels.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ void topk_softmax(
573573
stream);
574574
}
575575
else {
576-
assert(topk_indices.scalar_type() == at::ScalarType::Int64);
576+
TORCH_CHECK(topk_indices.scalar_type() == at::ScalarType::Long);
577577
vllm::moe::topkGatingSoftmaxKernelLauncher(
578578
gating_output.data_ptr<float>(),
579579
topk_weights.data_ptr<float>(),

0 commit comments

Comments
 (0)