File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2323from vllm .v1 .engine .detokenizer import Detokenizer
2424from vllm .v1 .engine .processor import Processor
2525from vllm .v1 .executor .abstract import Executor
26+ from vllm .v1 .executor .ray_utils import initialize_ray_cluster
2627
2728logger = init_logger (__name__ )
2829
@@ -150,7 +151,11 @@ def _get_executor_cls(cls, vllm_config: VllmConfig) -> Type[Executor]:
150151 executor_class : Type [Executor ]
151152 distributed_executor_backend = (
152153 vllm_config .parallel_config .distributed_executor_backend )
153- if distributed_executor_backend == "mp" :
154+ if distributed_executor_backend == "ray" :
155+ initialize_ray_cluster (vllm_config .parallel_config )
156+ from vllm .v1 .executor .ray_executor import RayExecutor
157+ executor_class = RayExecutor
158+ elif distributed_executor_backend == "mp" :
154159 from vllm .v1 .executor .multiproc_executor import MultiprocExecutor
155160 executor_class = MultiprocExecutor
156161 else :
You can’t perform that action at this time.
0 commit comments