Skip to content

Commit af35cf5

Browse files
wangxiyuanfhl2000
authored andcommitted
[Misc] Clean up useless code (vllm-project#19889)
Signed-off-by: wangxiyuan <[email protected]> Signed-off-by: fhl <[email protected]>
1 parent 35b8e96 commit af35cf5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

vllm/config.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,17 +1900,6 @@ def __post_init__(self) -> None:
19001900
os.environ["VLLM_ENABLE_V1_MULTIPROCESSING"] = "0"
19011901
logger.info("Disabling V1 multiprocessing for external launcher.")
19021902

1903-
ray_only_devices: list[str] = []
1904-
from vllm.platforms import current_platform
1905-
if (current_platform.device_type in ray_only_devices
1906-
and self.world_size > 1):
1907-
if self.distributed_executor_backend is None:
1908-
self.distributed_executor_backend = "ray"
1909-
if self.distributed_executor_backend != "ray":
1910-
raise ValueError(
1911-
f"{current_platform.device_type.upper()} backend only "
1912-
"supports Ray for distributed inference.")
1913-
19141903
if self.distributed_executor_backend is None and self.world_size > 1:
19151904
# We use multiprocessing by default if world_size fits on the
19161905
# current node and we aren't in a ray placement group.

0 commit comments

Comments
 (0)