Apply torch.compile to fused_moe/grouped_topk (#12637)
This commit is contained in:
@@ -759,6 +759,7 @@ def fused_topk(
|
||||
|
||||
|
||||
# This is used by the Deepseek-V2 and Deepseek-V3 model
|
||||
@torch.compile(dynamic=True, backend=current_platform.simple_compile_backend)
|
||||
def grouped_topk(hidden_states: torch.Tensor,
|
||||
gating_output: torch.Tensor,
|
||||
topk: int,
|
||||
|
||||
Reference in New Issue
Block a user