Skip to content

Commit 03a60f2

Browse files
committed
fix output_lens
1 parent ae76754 commit 03a60f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/benchmark_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ def gen_random_data(
5454
) -> Tuple[List[str], List[int], List[int]]:
5555
prompts = []
5656
input_lens = []
57-
output_lens = []
57+
output_lens = get_output_length(input_num, output_len)
5858
for i in range(input_num):
5959
input_text = gen_random_input_text(input_len, tokenizer)
6060
prompts.append(input_text)
6161
input_lens.append(input_len)
62-
output_lens.append(output_len)
6362
print("Generate random data finish.")
6463
return prompts, input_lens, output_lens
6564

0 commit comments

Comments
 (0)