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
55f6005f
Unverified
Commit
55f6005f
authored
May 22, 2025
by
fzyzcjy
Committed by
GitHub
May 21, 2025
Browse files
Fix bench_one_batch_server (#6503)
parent
7222e1da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/bench_one_batch_server.py
python/sglang/bench_one_batch_server.py
+2
-1
No files found.
python/sglang/bench_one_batch_server.py
View file @
55f6005f
...
@@ -149,7 +149,7 @@ def run_one_case(
...
@@ -149,7 +149,7 @@ def run_one_case(
response
=
requests
.
post
(
response
=
requests
.
post
(
url
+
"/generate"
,
url
+
"/generate"
,
json
=
{
json
=
{
"input_ids"
:
[
input_ids
for
input_ids
,
_
,
_
in
input_requests
],
"input_ids"
:
[
req
.
prompt
for
req
in
input_requests
],
"sampling_params"
:
{
"sampling_params"
:
{
"temperature"
:
temperature
,
"temperature"
:
temperature
,
"max_new_tokens"
:
output_len
,
"max_new_tokens"
:
output_len
,
...
@@ -268,6 +268,7 @@ def run_benchmark(server_args: ServerArgs, bench_args: BenchArgs):
...
@@ -268,6 +268,7 @@ def run_benchmark(server_args: ServerArgs, bench_args: BenchArgs):
input_len_step_percentage
=
bench_args
.
input_len_step_percentage
,
input_len_step_percentage
=
bench_args
.
input_len_step_percentage
,
run_name
=
bench_args
.
run_name
,
run_name
=
bench_args
.
run_name
,
result_filename
=
bench_args
.
result_filename
,
result_filename
=
bench_args
.
result_filename
,
tokenizer
=
tokenizer
,
)
)
)
)
finally
:
finally
:
...
...
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