[Bugfix] Narrow AuxOutput KV restrictions to known PD connectors (#58150)
Signed-off-by: aoshen02 <aoshen@inferact.ai>
This commit is contained in:
+13
-8
@@ -1126,14 +1126,19 @@ class VllmConfig:
|
||||
)
|
||||
|
||||
kv_transfer_config = self.kv_transfer_config
|
||||
if (
|
||||
kv_transfer_config is not None
|
||||
and kv_transfer_config.is_kv_transfer_instance
|
||||
):
|
||||
raise ValueError(
|
||||
"--enable-return-routed-experts is incompatible with KV "
|
||||
"connectors (PD disaggregation and KV cache offload)."
|
||||
)
|
||||
if kv_transfer_config is not None:
|
||||
for connector_name in (
|
||||
"NixlConnector",
|
||||
"NixlPullConnector",
|
||||
"NixlPushConnector",
|
||||
"MoRIIOConnector",
|
||||
"MooncakeConnector",
|
||||
):
|
||||
if kv_transfer_config.has_connector(connector_name):
|
||||
raise ValueError(
|
||||
"--enable-return-routed-experts is incompatible with "
|
||||
f"{connector_name}; PD auxiliary output is not supported."
|
||||
)
|
||||
|
||||
def _verify_kv_transfer_compat(self) -> None:
|
||||
"""Reject configurations that silently corrupt KV transfers."""
|
||||
|
||||
Reference in New Issue
Block a user