Skip to content

Commit c52ec5f

Browse files
authored
[Bugfix] fixing sonnet benchmark bug in benchmark_serving.py (#8616)
1 parent 02c9afa commit c52ec5f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

benchmarks/benchmark_serving.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,9 @@ def main(args: argparse.Namespace):
626626
prefix_len=args.sonnet_prefix_len,
627627
tokenizer=tokenizer,
628628
)
629-
input_requests = [(prompt, prompt_len, output_len)
629+
input_requests = [(prompt, prompt_len, output_len, None)
630630
for prompt, prompt_formatted, prompt_len,
631-
output_len in input_requests]
631+
output_len, _ in input_requests]
632632
else:
633633
assert (
634634
tokenizer.chat_template or tokenizer.default_chat_template
@@ -641,9 +641,9 @@ def main(args: argparse.Namespace):
641641
prefix_len=args.sonnet_prefix_len,
642642
tokenizer=tokenizer,
643643
)
644-
input_requests = [(prompt_formatted, prompt_len, output_len)
644+
input_requests = [(prompt_formatted, prompt_len, output_len, None)
645645
for prompt, prompt_formatted, prompt_len,
646-
output_len in input_requests]
646+
output_len, _ in input_requests]
647647

648648
elif args.dataset_name == "hf":
649649
input_requests = sample_hf_requests(
@@ -963,4 +963,4 @@ def main(args: argparse.Namespace):
963963
)
964964

965965
args = parser.parse_args()
966-
main(args)
966+
main(args)

0 commit comments

Comments
 (0)