[Bugfix] Reject 0 or non-positive max concurrency (#54887)
Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
Taneem Ibrahim committed
Sep 4, 2026 at 14:59 UTC
3284af6bf1be8429c332bd5fafba579c2d7557da
1 file changed
+3
vllm/benchmarks/serve.py
+3
@@ -2014,6 +2014,9 @@ def main(args: argparse.Namespace) -> dict[str, Any]:
2014
2015
async def main_async(args: argparse.Namespace) -> dict[str, Any]:
2016
print(args)
2017
+ if args.max_concurrency is not None and args.max_concurrency <= 0:
2018
+ raise ValueError("--max-concurrency must be greater than 0")
2019
+
2020
random.seed(args.seed)
2021
np.random.seed(args.seed)
2022