Skip to content

Commit

Permalink
use ray for hpu distributed inference
Browse files Browse the repository at this point in the history
  • Loading branch information
kzawora-intel committed Sep 23, 2024
1 parent e00ab5a commit 3bb593a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,13 @@ def __init__(
raise ValueError(
"TPU backend only supports Ray for distributed inference.")

if current_platform.is_hpu() and self.world_size > 1:
if self.distributed_executor_backend is None:
self.distributed_executor_backend = "ray"
if self.distributed_executor_backend != "ray":
raise ValueError(
"HPU backend only supports Ray for distributed inference.")

if self.distributed_executor_backend is None and self.world_size > 1:
# We use multiprocessing by default if world_size fits on the
# current node and we aren't in a ray placement group.
Expand Down

0 comments on commit 3bb593a

Please sign in to comment.