[Misc] Make SchedulerConfig.max_model_len init-only (#28733)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-11-15 01:59:31 -08:00
committed by GitHub
parent 1ec978c209
commit 638e4196d1
17 changed files with 22 additions and 45 deletions
+1 -1
View File
@@ -339,7 +339,7 @@ class CpuPlatform(Platform):
)
vllm_config.scheduler_config.enable_chunked_prefill = False
vllm_config.scheduler_config.max_num_batched_tokens = max(
vllm_config.scheduler_config.max_model_len,
vllm_config.model_config.max_model_len,
vllm_config.scheduler_config.DEFAULT_MAX_NUM_BATCHED_TOKENS,
)