Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
fbf25645
Unverified
Commit
fbf25645
authored
Jan 04, 2025
by
Kunshang Ji
Committed by
GitHub
Jan 04, 2025
Browse files
[V1] Add `RayExecutor` support for `AsyncLLM` (api server) (#11712)
parent
d1d49397
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
vllm/v1/engine/async_llm.py
vllm/v1/engine/async_llm.py
+6
-1
No files found.
vllm/v1/engine/async_llm.py
View file @
fbf25645
...
...
@@ -22,6 +22,7 @@ from vllm.v1.engine.core_client import EngineCoreClient
from
vllm.v1.engine.detokenizer
import
Detokenizer
from
vllm.v1.engine.processor
import
Processor
from
vllm.v1.executor.abstract
import
Executor
from
vllm.v1.executor.ray_utils
import
initialize_ray_cluster
logger
=
init_logger
(
__name__
)
...
...
@@ -131,7 +132,11 @@ class AsyncLLM(EngineClient):
executor_class
:
Type
[
Executor
]
distributed_executor_backend
=
(
vllm_config
.
parallel_config
.
distributed_executor_backend
)
if
distributed_executor_backend
==
"mp"
:
if
distributed_executor_backend
==
"ray"
:
initialize_ray_cluster
(
vllm_config
.
parallel_config
)
from
vllm.v1.executor.ray_executor
import
RayExecutor
executor_class
=
RayExecutor
elif
distributed_executor_backend
==
"mp"
:
from
vllm.v1.executor.multiproc_executor
import
MultiprocExecutor
executor_class
=
MultiprocExecutor
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment