Skip to content

Commit

Permalink
Update ray_hpu_executor.py (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkuligowski authored Nov 25, 2024
1 parent c79982d commit a9b9e23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vllm/executor/ray_hpu_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ def _init_executor(self) -> None:
Optional[List[SamplerOutput]])

def shutdown(self) -> None:
for worker in self.workers:
worker.__ray_terminate__.remote()
if hasattr(self, "forward_dag") and self.forward_dag is not None:
self.forward_dag.teardown()
import ray
for worker in self.workers:
worker.__ray_terminate__.remote()
ray.kill(worker)
self.forward_dag = None

def finish_measurements(self):
Expand Down

0 comments on commit a9b9e23

Please sign in to comment.