From 3284af6bf1be8429c332bd5fafba579c2d7557da Mon Sep 17 00:00:00 2001 From: Taneem Ibrahim Date: Fri, 4 Sep 2026 14:59:29 -0500 Subject: [PATCH] [Bugfix] Reject 0 or non-positive max concurrency (#54887) Signed-off-by: Taneem Ibrahim --- vllm/benchmarks/serve.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vllm/benchmarks/serve.py b/vllm/benchmarks/serve.py index 70d13770d5..aef7c7e7b4 100644 --- a/vllm/benchmarks/serve.py +++ b/vllm/benchmarks/serve.py @@ -2014,6 +2014,9 @@ def main(args: argparse.Namespace) -> dict[str, Any]: async def main_async(args: argparse.Namespace) -> dict[str, Any]: print(args) + if args.max_concurrency is not None and args.max_concurrency <= 0: + raise ValueError("--max-concurrency must be greater than 0") + random.seed(args.seed) np.random.seed(args.seed)