[Chore] Rename SchedulerConfig.chunked_prefill_enabled (#28735)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-11-14 18:39:57 +00:00
committed by GitHub
parent 67187554dd
commit e2741f6cbc
9 changed files with 21 additions and 19 deletions
+8 -3
View File
@@ -8,7 +8,7 @@ from typing import TYPE_CHECKING, Any, ClassVar, Literal, cast
from pydantic import Field, field_validator, model_validator
from pydantic.dataclasses import dataclass
from typing_extensions import Self
from typing_extensions import Self, deprecated
from vllm.config.utils import config
from vllm.logger import init_logger
@@ -233,6 +233,11 @@ class SchedulerConfig:
)
@property
@deprecated(
"`SchedulerConfig.chunked_prefill_enabled` has been renamed to "
"`SchedulerConfig.enable_chunked_prefill`. "
"The old name will be removed in v0.12."
)
def chunked_prefill_enabled(self) -> bool:
return self.enable_chunked_prefill
@@ -244,7 +249,7 @@ class SchedulerConfig:
def _verify_args(self) -> Self:
if (
self.max_num_batched_tokens < self.max_model_len
and not self.chunked_prefill_enabled
and not self.enable_chunked_prefill
):
raise ValueError(
f"max_num_batched_tokens ({self.max_num_batched_tokens}) is "
@@ -271,7 +276,7 @@ class SchedulerConfig:
)
if self.max_num_partial_prefills > 1:
if not self.chunked_prefill_enabled:
if not self.enable_chunked_prefill:
raise ValueError(
"Chunked prefill must be enabled to set "
"max_num_partial_prefills > 1."