[AMD][DSV4] Allow moe_a2a_backend='mori' with DSpark + dp attention (#39910)

This commit is contained in:
karverma-amd
2026-09-16 23:09:41 -07:00
committed by GitHub
parent 9d0a8d7536
commit fa8d22e665
@@ -559,10 +559,10 @@ def _handle_dspark(server_args: ServerArgs) -> None:
if cfg.enable_dp_attention and cfg.dp_size > 1:
if not cfg.enable_dp_lm_head:
raise ValueError("DSpark with dp attention requires --enable-dp-lm-head.")
if not _is_npu and cfg.moe_a2a_backend not in ("none", "megamoe"):
if not _is_npu and cfg.moe_a2a_backend not in ("none", "megamoe", "mori"):
raise ValueError(
"DSpark with dp attention supports moe_a2a_backend 'none' "
"(built-in TP MoE) or 'megamoe', got "
"(built-in TP MoE), 'megamoe', or 'mori', got "
f"{cfg.moe_a2a_backend!r}."
)
if not _is_npu and cfg.moe_a2a_backend != "none":