[Bug] Fix status update address for non-MOE model within external dp mode (#40839)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -135,8 +135,10 @@ class ParallelConfig:
|
||||
data_parallel_external_lb: bool = False
|
||||
"""Whether to use "external" DP LB mode. Applies only to online serving
|
||||
and when data_parallel_size > 0. This is useful for a "one-pod-per-rank"
|
||||
wide-EP setup in Kubernetes. Set implicitly when --data-parallel-rank
|
||||
is provided explicitly to vllm serve."""
|
||||
wide-EP setup in Kubernetes. Supported only for MoE deployments; non-MoE
|
||||
models should use independent vLLM instances without --data-parallel-*
|
||||
arguments. Set implicitly when --data-parallel-rank is provided explicitly
|
||||
to vllm serve."""
|
||||
data_parallel_hybrid_lb: bool = False
|
||||
"""Whether to use "hybrid" DP LB mode. Applies only to online serving
|
||||
and when data_parallel_size > 0. Enables running an AsyncLLM
|
||||
|
||||
@@ -962,7 +962,9 @@ class EngineArgs:
|
||||
"-dpn",
|
||||
type=int,
|
||||
help="Data parallel rank of this instance. "
|
||||
"When set, enables external load balancer mode.",
|
||||
"When set, enables external load balancer mode for MoE "
|
||||
"data-parallel deployments. Unsupported for non-MoE models; "
|
||||
"launch independent vLLM instances instead.",
|
||||
)
|
||||
parallel_group.add_argument(
|
||||
"--data-parallel-start-rank",
|
||||
@@ -1793,6 +1795,16 @@ class EngineArgs:
|
||||
data_parallel_external_lb = (
|
||||
self.data_parallel_external_lb or self.data_parallel_rank is not None
|
||||
)
|
||||
if (
|
||||
self.data_parallel_size > 1
|
||||
and data_parallel_external_lb
|
||||
and not model_config.is_moe
|
||||
):
|
||||
raise ValueError(
|
||||
"Non-MoE models do not support external data parallel mode. "
|
||||
"For external load balancing, launch independent vLLM "
|
||||
"instances without --data-parallel-* arguments."
|
||||
)
|
||||
# Local DP rank = 1, use pure-external LB.
|
||||
if data_parallel_external_lb:
|
||||
assert self.data_parallel_rank is not None, (
|
||||
|
||||
Reference in New Issue
Block a user