[Core] Support async scheduling with uniproc executor (#24219)
Signed-off-by: Nick Hill <nhill@redhat.com> Signed-off-by: Ronald1995 <ronaldautomobile@163.com> Co-authored-by: Ronald1995 <ronaldautomobile@163.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
This commit is contained in:
@@ -1296,11 +1296,8 @@ class EngineArgs:
|
||||
# Async scheduling does not work with the uniprocess backend.
|
||||
if self.distributed_executor_backend is None:
|
||||
self.distributed_executor_backend = "mp"
|
||||
logger.info("Using mp-based distributed executor backend "
|
||||
"for async scheduling.")
|
||||
if self.distributed_executor_backend == "uni":
|
||||
raise ValueError("Async scheduling is not supported with "
|
||||
"uni-process backend.")
|
||||
logger.info("Defaulting to mp-based distributed executor "
|
||||
"backend for async scheduling.")
|
||||
if self.pipeline_parallel_size > 1:
|
||||
raise ValueError("Async scheduling is not supported with "
|
||||
"pipeline-parallel-size > 1.")
|
||||
|
||||
Reference in New Issue
Block a user