Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
b6fbb9a5
Unverified
Commit
b6fbb9a5
authored
Jul 08, 2023
by
Woosuk Kwon
Committed by
GitHub
Jul 08, 2023
Browse files
Sort the outputs before return (#402)
parent
2179e4f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vllm/entrypoints/llm.py
vllm/entrypoints/llm.py
+4
-0
No files found.
vllm/entrypoints/llm.py
View file @
b6fbb9a5
...
...
@@ -155,4 +155,8 @@ class LLM:
pbar
.
update
(
1
)
if
use_tqdm
:
pbar
.
close
()
# Sort the outputs by request ID.
# This is necessary because some requests may be finished earlier than
# its previous requests.
outputs
=
sorted
(
outputs
,
key
=
lambda
x
:
int
(
x
.
request_id
))
return
outputs
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