Skip to content

Commit

Permalink
[Bugfix] fixing sonnet benchmark bug in benchmark_serving.py (vllm-pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
KuntaiDu authored Sep 19, 2024
1 parent 02c9afa commit c52ec5f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmarks/benchmark_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down Expand Up @@ -963,4 +963,4 @@ def main(args: argparse.Namespace):
)

args = parser.parse_args()
main(args)
main(args)

0 comments on commit c52ec5f

Please sign in to comment.