mirror of
https://github.com/vllm-project/vllm.git
synced 2025-10-20 23:03:52 +08:00
[Bugfix] Fix tqdm progress bar when SamplingParams.n > 1 (#12428)
Signed-off-by: Yuchen Yan <740987012@qq.com>
This commit is contained in:
@ -1394,7 +1394,9 @@ class LLM:
|
||||
pbar.postfix = (
|
||||
f"est. speed input: {in_spd:.2f} toks/s, "
|
||||
f"output: {out_spd:.2f} toks/s")
|
||||
pbar.update(1)
|
||||
pbar.update(len(output.outputs))
|
||||
else:
|
||||
pbar.update(1)
|
||||
|
||||
if use_tqdm:
|
||||
pbar.close()
|
||||
|
Reference in New Issue
Block a user