mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-20 12:07:17 +08:00
Add tqdm dynamic_ncols=True (#3242)
This commit is contained in:
parent
a33ce60c66
commit
4cb3b924cd
@ -191,7 +191,9 @@ class LLM:
|
|||||||
# Initialize tqdm.
|
# Initialize tqdm.
|
||||||
if use_tqdm:
|
if use_tqdm:
|
||||||
num_requests = self.llm_engine.get_num_unfinished_requests()
|
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.
|
# Run the engine.
|
||||||
outputs: List[RequestOutput] = []
|
outputs: List[RequestOutput] = []
|
||||||
while self.llm_engine.has_unfinished_requests():
|
while self.llm_engine.has_unfinished_requests():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user