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
084a01fd
Unverified
Commit
084a01fd
authored
Jul 26, 2024
by
Anthony Platanios
Committed by
GitHub
Jul 25, 2024
Browse files
[Bugfix] [Easy] Fixed a bug in the multiprocessing GPU executor. (#6770)
parent
062a1d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vllm/executor/multiproc_gpu_executor.py
vllm/executor/multiproc_gpu_executor.py
+4
-2
No files found.
vllm/executor/multiproc_gpu_executor.py
View file @
084a01fd
import
asyncio
import
asyncio
import
os
import
os
import
signal
import
signal
import
threading
import
weakref
import
weakref
from
functools
import
partial
from
functools
import
partial
from
typing
import
Any
,
List
,
Optional
from
typing
import
Any
,
List
,
Optional
...
@@ -115,8 +116,9 @@ class MultiprocessingGPUExecutor(DistributedGPUExecutor):
...
@@ -115,8 +116,9 @@ class MultiprocessingGPUExecutor(DistributedGPUExecutor):
if
executor
:
=
ref
():
if
executor
:
=
ref
():
executor
.
shutdown
()
executor
.
shutdown
()
signal
.
signal
(
signal
.
SIGINT
,
shutdown
)
if
threading
.
current_thread
()
is
threading
.
main_thread
():
signal
.
signal
(
signal
.
SIGTERM
,
shutdown
)
signal
.
signal
(
signal
.
SIGINT
,
shutdown
)
signal
.
signal
(
signal
.
SIGTERM
,
shutdown
)
self
.
driver_worker
=
self
.
_create_worker
(
self
.
driver_worker
=
self
.
_create_worker
(
distributed_init_method
=
distributed_init_method
)
distributed_init_method
=
distributed_init_method
)
...
...
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