This commit is contained in:
Lianmin Zheng authored and GitHub committed 2025-08-09 16:00:10 -07:00
1 parent a886564a18
commit ef48d5547e
9 files changed
+120 -75

No files matched your search

+2
View File
@@ -449,7 +449,9 @@ def grouped_topk_cpu(
routed_scaling_factor: Optional[float] = None,
num_token_non_padded: Optional[torch.Tensor] = None,
expert_location_dispatch_info: Optional[ExpertLocationDispatchInfo] = None,
apply_routed_scaling_factor_on_output: Optional[bool] = False,
):
assert not apply_routed_scaling_factor_on_output
assert expert_location_dispatch_info is None
return torch.ops.sgl_kernel.grouped_topk_cpu(
hidden_states,