Skip to content

Commit

Permalink
Add tqdm dynamic_ncols=True (vllm-project#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
chujiezheng authored Mar 6, 2024
1 parent bd9ceee commit 63fa866
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 63fa866

Please sign in to comment.