[Bugfix] Fix no attribute error of SharedFusedMoE (DeepSeek-V3.1 as test model) (#33993)

Signed-off-by: xuebwang-amd <xuebwang@amd.com>
This commit is contained in:
xuebwang-amd
2026-02-06 19:11:32 +00:00
committed by GitHub
parent fe5438200b
commit 9e9acce577
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -335,6 +335,7 @@ class FusedMoE(CustomOp):
expert_mapping: list[tuple[str, str, int, str]] | None = None,
n_shared_experts: int | None = None,
router_logits_dtype: torch.dtype | None = None,
has_shared_experts: bool = False,
):
super().__init__()
@@ -564,7 +565,7 @@ class FusedMoE(CustomOp):
device=vllm_config.device_config.device,
routing_method=self.routing_method_type,
# TODO: in_dtype == out_dtype?
disable_inplace=disable_inplace() or self.shared_experts is not None,
disable_inplace=disable_inplace() or has_shared_experts,
)
if self.use_mori_kernels:
assert self.rocm_aiter_fmoe_enabled, (