fix: resolve bench_serving args (#2139)

This commit is contained in:
Yineng Zhang
2024-11-23 17:45:42 +08:00
committed by GitHub
parent 751c3a037c
commit ad47749b82

View File

@@ -1107,6 +1107,10 @@ def run_benchmark(args_: argparse.Namespace):
global args
args = args_
# Set default value for max_concurrency if not present
if not hasattr(args, "max_concurrency"):
args.max_concurrency = None
# Set global environments
set_ulimit()
random.seed(args.seed)