mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 18:45:35 +08:00
[TPU] Use Ray for default distributed backend (#8389)
This commit is contained in:
parent
f842a7aff1
commit
b71c956deb
@ -869,6 +869,13 @@ class ParallelConfig:
|
|||||||
f"distributed executor backend "
|
f"distributed executor backend "
|
||||||
f"'{self.distributed_executor_backend}'.")
|
f"'{self.distributed_executor_backend}'.")
|
||||||
|
|
||||||
|
if current_platform.is_tpu() 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(
|
||||||
|
"TPU backend only supports Ray for distributed inference.")
|
||||||
|
|
||||||
if self.distributed_executor_backend is None and self.world_size > 1:
|
if self.distributed_executor_backend is None and self.world_size > 1:
|
||||||
# We use multiprocessing by default if world_size fits on the
|
# We use multiprocessing by default if world_size fits on the
|
||||||
# current node and we aren't in a ray placement group.
|
# current node and we aren't in a ray placement group.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user