Skip to content

Commit da4f028

Browse files
committed
also reject DP>1 for now
Signed-off-by: Will Eaton <[email protected]>
1 parent 3589ca7 commit da4f028

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vllm/entrypoints/openai/cli_args.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ def validate_parsed_serve_args(args: argparse.Namespace):
339339
raise ValueError(
340340
"--shutdown-mode=drain is not supported with --api-server-count > 1"
341341
)
342+
if getattr(args, "data_parallel_size", 1) > 1:
343+
raise ValueError(
344+
"--shutdown-mode=drain is not supported with --data-parallel-size > 1"
345+
)
342346

343347

344348
def create_parser_for_docs() -> FlexibleArgumentParser:

0 commit comments

Comments
 (0)