update bench
This commit is contained in:
2
bench.py
2
bench.py
@@ -21,7 +21,7 @@ def main():
|
||||
|
||||
llm.generate(["Benchmark: "], SamplingParams())
|
||||
t = time.time()
|
||||
llm.generate(prompt_token_ids, sampling_params)
|
||||
llm.generate(prompt_token_ids, sampling_params, use_tqdm=False)
|
||||
t = (time.time() - t)
|
||||
total_tokens = sum(sp.max_tokens for sp in sampling_params)
|
||||
throughput = total_tokens / t
|
||||
|
||||
Reference in New Issue
Block a user