[Platform] Custom ops support for FusedMoe (#22509)

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan
2025-08-13 04:12:00 -07:00
committed by GitHub
parent d94e3026de
commit 0b1bdac6af
3 changed files with 11 additions and 8 deletions
@@ -682,7 +682,8 @@ def determine_expert_map(
return (local_num_experts, expert_map)
class FusedMoE(torch.nn.Module):
@CustomOp.register("fused_moe")
class FusedMoE(CustomOp):
"""FusedMoE layer for MoE models.
This layer contains both MergedColumnParallel weights (gate_up_proj /