Skip to content

Commit 5de2e70

Browse files
committed
[CustomOp] Register FusedMoe
Signed-off-by: Icey <1790571317@qq.com>
1 parent 103654c commit 5de2e70

File tree

3 files changed

+3
-115
lines changed

3 files changed

+3
-115
lines changed

vllm_ascend/ops/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import torch
1919

2020
import vllm_ascend.ops.activation # noqa
21-
import vllm_ascend.ops.common_fused_moe # noqa
2221
import vllm_ascend.ops.fused_moe # noqa
2322
import vllm_ascend.ops.layernorm # noqa
2423
import vllm_ascend.ops.rotary_embedding # noqa

vllm_ascend/ops/common_fused_moe.py

Lines changed: 0 additions & 114 deletions
This file was deleted.

vllm_ascend/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@ def register_ascend_customop():
479479
CustomOp.register_oot(_decorated_op_cls=AscendSiluAndMul,
480480
name="SiluAndMul")
481481

482+
from vllm_ascend.ops.fused_moe import AscendFusedMoE
483+
CustomOp.register_oot(_decorated_op_cls=AscendFusedMoE, name="FusedMoE")
484+
482485
# NOTE: Keep this at last to ensure all custom actions are registered
483486
_ASCEND_CUSTOMOP_IS_REIGISTERED = True
484487

0 commit comments

Comments
 (0)