We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2179e4f commit b6fbb9aCopy full SHA for b6fbb9a
vllm/entrypoints/llm.py
@@ -155,4 +155,8 @@ def _run_engine(self, use_tqdm: bool) -> List[RequestOutput]:
155
pbar.update(1)
156
if use_tqdm:
157
pbar.close()
158
+ # Sort the outputs by request ID.
159
+ # This is necessary because some requests may be finished earlier than
160
+ # its previous requests.
161
+ outputs = sorted(outputs, key=lambda x: int(x.request_id))
162
return outputs
0 commit comments