From 8914d5a4b27ba3e6c0b908e6acfcaa228e015e97 Mon Sep 17 00:00:00 2001 From: Mengqing Cao Date: Thu, 14 Aug 2025 09:17:50 +0800 Subject: [PATCH] [Quickfix] Add the missing `apply_router_weight_on_input` in FusedMoE init (#2348) ### What this PR does / why we need it? Add the missing `apply_router_weight_on_input` in FusedMoE init Quick fix on https://github.com/vllm-project/vllm-ascend/pull/2268#discussion_r2265828849 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? CI passed with existing test. - vLLM version: v0.10.0 - vLLM main: https://github.com/vllm-project/vllm/commit/6807af8f46acd184f99342ff38f2a1359f693b10 Signed-off-by: MengqingCao --- vllm_ascend/ops/fused_moe.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vllm_ascend/ops/fused_moe.py b/vllm_ascend/ops/fused_moe.py index aeb75cf..d1d3a3a 100644 --- a/vllm_ascend/ops/fused_moe.py +++ b/vllm_ascend/ops/fused_moe.py @@ -1258,6 +1258,7 @@ class AscendFusedMoE(FusedMoE): scoring_func=scoring_func, e_score_correction_bias=e_score_correction_bias, activation=activation, + apply_router_weight_on_input=apply_router_weight_on_input, ) AscendFusedMoE.moe_counter += 1 self.moe_instance_id = AscendFusedMoE.moe_counter