mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-27 00:17:23 +08:00
[Bugfix] Fix MultiprocessingGPUExecutor.check_health when world_size == 1 (#5254)
This commit is contained in:
parent
89ec06c33b
commit
2e02311a1b
@ -46,6 +46,7 @@ class MultiprocessingGPUExecutor(DistributedGPUExecutor):
|
|||||||
|
|
||||||
if world_size == 1:
|
if world_size == 1:
|
||||||
self.workers = []
|
self.workers = []
|
||||||
|
self.worker_monitor = None
|
||||||
else:
|
else:
|
||||||
result_handler = ResultHandler()
|
result_handler = ResultHandler()
|
||||||
self.workers = [
|
self.workers = [
|
||||||
@ -127,7 +128,8 @@ class MultiprocessingGPUExecutor(DistributedGPUExecutor):
|
|||||||
|
|
||||||
def check_health(self) -> None:
|
def check_health(self) -> None:
|
||||||
"""Raises an error if engine is unhealthy."""
|
"""Raises an error if engine is unhealthy."""
|
||||||
if not self.worker_monitor.is_alive():
|
if self.worker_monitor is not None and not self.worker_monitor.is_alive(
|
||||||
|
):
|
||||||
raise RuntimeError("Worker processes are not running")
|
raise RuntimeError("Worker processes are not running")
|
||||||
|
|
||||||
def _wait_for_tasks_completion(self, parallel_worker_tasks: Any) -> None:
|
def _wait_for_tasks_completion(self, parallel_worker_tasks: Any) -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user