[ModelRunnerV2] Avoid pipeline parallel bubbles (#42187)
Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
+7
-3
@@ -498,9 +498,13 @@ class VllmConfig:
|
||||
# PP requires PP-size concurrent batches to fill the pipeline.
|
||||
# Async scheduling requires 2 concurrent batches to overlap.
|
||||
pp_size = self.parallel_config.pipeline_parallel_size
|
||||
if pp_size > 1:
|
||||
return pp_size
|
||||
return 2 if self.scheduler_config.async_scheduling else 1
|
||||
if self.scheduler_config.async_scheduling:
|
||||
if self.use_v2_model_runner:
|
||||
return pp_size + 1
|
||||
# V1 Model Runner does not fully support async scheduling with PP.
|
||||
if pp_size <= 1:
|
||||
return 2
|
||||
return pp_size
|
||||
|
||||
@property
|
||||
def num_speculative_tokens(self) -> int:
|
||||
|
||||
Reference in New Issue
Block a user