We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae76754 commit 03a60f2Copy full SHA for 03a60f2
test/benchmark_client.py
@@ -54,12 +54,11 @@ def gen_random_data(
54
) -> Tuple[List[str], List[int], List[int]]:
55
prompts = []
56
input_lens = []
57
- output_lens = []
+ output_lens = get_output_length(input_num, output_len)
58
for i in range(input_num):
59
input_text = gen_random_input_text(input_len, tokenizer)
60
prompts.append(input_text)
61
input_lens.append(input_len)
62
- output_lens.append(output_len)
63
print("Generate random data finish.")
64
return prompts, input_lens, output_lens
65
0 commit comments