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
24d1dffb
Unverified
Commit
24d1dffb
authored
Aug 03, 2025
by
H
Committed by
GitHub
Aug 03, 2025
Browse files
[executor] feat: add supports_pp attr to executors (#21786)
Signed-off-by:
Haibin Lin
<
haibin.lin@bytedance.com
>
parent
7de45db9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
+17
-8
vllm/engine/arg_utils.py
vllm/engine/arg_utils.py
+12
-8
vllm/executor/executor_base.py
vllm/executor/executor_base.py
+1
-0
vllm/v1/executor/multiproc_executor.py
vllm/v1/executor/multiproc_executor.py
+2
-0
vllm/v1/executor/ray_distributed_executor.py
vllm/v1/executor/ray_distributed_executor.py
+2
-0
No files found.
vllm/engine/arg_utils.py
View file @
24d1dffb
...
@@ -1490,14 +1490,18 @@ class EngineArgs:
...
@@ -1490,14 +1490,18 @@ class EngineArgs:
and
_warn_or_fallback
(
"Engine in background thread"
)):
and
_warn_or_fallback
(
"Engine in background thread"
)):
return
False
return
False
if
(
self
.
pipeline_parallel_size
>
1
if
self
.
pipeline_parallel_size
>
1
:
and
self
.
distributed_executor_backend
supports_pp
=
getattr
(
self
.
distributed_executor_backend
,
not
in
(
ParallelConfig
.
distributed_executor_backend
,
"ray"
,
'supports_pp'
,
False
)
"mp"
,
"external_launcher"
)):
if
not
supports_pp
and
self
.
distributed_executor_backend
not
in
(
name
=
"Pipeline Parallelism without Ray distributed executor "
\
ParallelConfig
.
distributed_executor_backend
,
"ray"
,
"mp"
,
"or multiprocessing executor or external launcher"
"external_launcher"
):
_raise_or_fallback
(
feature_name
=
name
,
recommend_to_remove
=
False
)
name
=
"Pipeline Parallelism without Ray distributed "
\
return
False
"executor or multiprocessing executor or external "
\
"launcher"
_raise_or_fallback
(
feature_name
=
name
,
recommend_to_remove
=
False
)
return
False
# The platform may be supported on V1, but off by default for now.
# The platform may be supported on V1, but off by default for now.
if
not
current_platform
.
default_v1
(
# noqa: SIM103
if
not
current_platform
.
default_v1
(
# noqa: SIM103
...
...
vllm/executor/executor_base.py
View file @
24d1dffb
...
@@ -35,6 +35,7 @@ class ExecutorBase(ABC):
...
@@ -35,6 +35,7 @@ class ExecutorBase(ABC):
"""
"""
uses_ray
:
bool
# whether the executor uses Ray for orchestration.
uses_ray
:
bool
# whether the executor uses Ray for orchestration.
supports_pp
:
bool
=
False
# whether the executor supports PP
def
__init__
(
def
__init__
(
self
,
self
,
...
...
vllm/v1/executor/multiproc_executor.py
View file @
24d1dffb
...
@@ -41,6 +41,8 @@ logger = init_logger(__name__)
...
@@ -41,6 +41,8 @@ logger = init_logger(__name__)
class
MultiprocExecutor
(
Executor
):
class
MultiprocExecutor
(
Executor
):
supports_pp
:
bool
=
True
def
_init_executor
(
self
)
->
None
:
def
_init_executor
(
self
)
->
None
:
# Call self.shutdown at exit to clean up
# Call self.shutdown at exit to clean up
# and ensure workers will be terminated.
# and ensure workers will be terminated.
...
...
vllm/v1/executor/ray_distributed_executor.py
View file @
24d1dffb
...
@@ -43,6 +43,8 @@ class FutureWrapper(Future):
...
@@ -43,6 +43,8 @@ class FutureWrapper(Future):
class
RayDistributedExecutor
(
RayDistributedExecutorV0
,
Executor
):
class
RayDistributedExecutor
(
RayDistributedExecutorV0
,
Executor
):
"""Ray distributed executor using Ray Compiled Graphs."""
"""Ray distributed executor using Ray Compiled Graphs."""
supports_pp
:
bool
=
True
def
_init_executor
(
self
)
->
None
:
def
_init_executor
(
self
)
->
None
:
super
().
_init_executor
()
super
().
_init_executor
()
...
...
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