[Core] Move max_concurrent_batches to VllmConfig (#44274)
Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
@@ -487,6 +487,15 @@ class VllmConfig:
|
||||
]
|
||||
return hash_str
|
||||
|
||||
@property
|
||||
def max_concurrent_batches(self) -> int:
|
||||
# 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
|
||||
|
||||
@property
|
||||
def num_speculative_tokens(self) -> int:
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user