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
a4c402a7
Unverified
Commit
a4c402a7
authored
Feb 19, 2025
by
Nick Hill
Committed by
GitHub
Feb 20, 2025
Browse files
[BugFix] Avoid error traceback in logs when V1 `LLM` terminates (#13565)
Signed-off-by:
Nick Hill
<
nhill@redhat.com
>
parent
550d97eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
vllm/v1/engine/core_client.py
vllm/v1/engine/core_client.py
+12
-8
No files found.
vllm/v1/engine/core_client.py
View file @
a4c402a7
...
@@ -252,14 +252,18 @@ class SyncMPClient(MPClient):
...
@@ -252,14 +252,18 @@ class SyncMPClient(MPClient):
outputs_queue
=
self
.
outputs_queue
outputs_queue
=
self
.
outputs_queue
def
process_outputs_socket
():
def
process_outputs_socket
():
while
True
:
try
:
(
frame
,
)
=
output_socket
.
recv_multipart
(
copy
=
False
)
while
True
:
outputs
=
decoder
.
decode
(
frame
.
buffer
)
(
frame
,
)
=
output_socket
.
recv_multipart
(
copy
=
False
)
if
outputs
.
utility_output
:
outputs
=
decoder
.
decode
(
frame
.
buffer
)
_process_utility_output
(
outputs
.
utility_output
,
if
outputs
.
utility_output
:
utility_results
)
_process_utility_output
(
outputs
.
utility_output
,
else
:
utility_results
)
outputs_queue
.
put_nowait
(
outputs
)
else
:
outputs_queue
.
put_nowait
(
outputs
)
except
zmq
.
error
.
ContextTerminated
:
# Expected when the class is GC'd / during process termination.
pass
# Process outputs from engine in separate thread.
# Process outputs from engine in separate thread.
Thread
(
target
=
process_outputs_socket
,
daemon
=
True
).
start
()
Thread
(
target
=
process_outputs_socket
,
daemon
=
True
).
start
()
...
...
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