Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c52ec5f0
Unverified
Commit
c52ec5f0
authored
Sep 18, 2024
by
Kuntai Du
Committed by
GitHub
Sep 19, 2024
Browse files
[Bugfix] fixing sonnet benchmark bug in benchmark_serving.py (#8616)
parent
02c9afa2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
benchmarks/benchmark_serving.py
benchmarks/benchmark_serving.py
+5
-5
No files found.
benchmarks/benchmark_serving.py
View file @
c52ec5f0
...
...
@@ -626,9 +626,9 @@ def main(args: argparse.Namespace):
prefix_len
=
args
.
sonnet_prefix_len
,
tokenizer
=
tokenizer
,
)
input_requests
=
[(
prompt
,
prompt_len
,
output_len
)
input_requests
=
[(
prompt
,
prompt_len
,
output_len
,
None
)
for
prompt
,
prompt_formatted
,
prompt_len
,
output_len
in
input_requests
]
output_len
,
_
in
input_requests
]
else
:
assert
(
tokenizer
.
chat_template
or
tokenizer
.
default_chat_template
...
...
@@ -641,9 +641,9 @@ def main(args: argparse.Namespace):
prefix_len
=
args
.
sonnet_prefix_len
,
tokenizer
=
tokenizer
,
)
input_requests
=
[(
prompt_formatted
,
prompt_len
,
output_len
)
input_requests
=
[(
prompt_formatted
,
prompt_len
,
output_len
,
None
)
for
prompt
,
prompt_formatted
,
prompt_len
,
output_len
in
input_requests
]
output_len
,
_
in
input_requests
]
elif
args
.
dataset_name
==
"hf"
:
input_requests
=
sample_hf_requests
(
...
...
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