Skip to content

Commit

Permalink
fix: resolve bench_serving args (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyncs authored Nov 23, 2024
1 parent 751c3a0 commit ad47749
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/sglang/bench_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ad47749

Please sign in to comment.