Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
ad47749b
Unverified
Commit
ad47749b
authored
Nov 23, 2024
by
Yineng Zhang
Committed by
GitHub
Nov 23, 2024
Browse files
fix: resolve bench_serving args (#2139)
parent
751c3a03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
python/sglang/bench_serving.py
python/sglang/bench_serving.py
+4
-0
No files found.
python/sglang/bench_serving.py
View file @
ad47749b
...
@@ -1107,6 +1107,10 @@ def run_benchmark(args_: argparse.Namespace):
...
@@ -1107,6 +1107,10 @@ def run_benchmark(args_: argparse.Namespace):
global
args
global
args
args
=
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 global environments
set_ulimit
()
set_ulimit
()
random
.
seed
(
args
.
seed
)
random
.
seed
(
args
.
seed
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment