mirror of https://github.com/vllm-project/vllm
Add tqdm `dynamic_ncols=True` (#3242)
This commit is contained in:
parent
a33ce60c66
commit
4cb3b924cd
|
@ -191,7 +191,9 @@ class LLM:
|
|||
# Initialize tqdm.
|
||||
if use_tqdm:
|
||||
num_requests = self.llm_engine.get_num_unfinished_requests()
|
||||
pbar = tqdm(total=num_requests, desc="Processed prompts")
|
||||
pbar = tqdm(total=num_requests,
|
||||
desc="Processed prompts",
|
||||
dynamic_ncols=True)
|
||||
# Run the engine.
|
||||
outputs: List[RequestOutput] = []
|
||||
while self.llm_engine.has_unfinished_requests():
|
||||
|
|
Loading…
Reference in New Issue