Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
4cb3b924
Unverified
Commit
4cb3b924
authored
Mar 06, 2024
by
Chujie Zheng
Committed by
GitHub
Mar 06, 2024
Browse files
Add tqdm `dynamic_ncols=True` (#3242)
parent
a33ce60c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/entrypoints/llm.py
vllm/entrypoints/llm.py
+3
-1
No files found.
vllm/entrypoints/llm.py
View file @
4cb3b924
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment