Skip to content

Commit

Permalink
Add tqdm dynamic_ncols=True (#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
chujiezheng authored Mar 6, 2024
1 parent a33ce60 commit 4cb3b92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vllm/entrypoints/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def _run_engine(self, use_tqdm: bool) -> List[RequestOutput]:
# 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():
Expand Down

0 comments on commit 4cb3b92

Please sign in to comment.