[Bugfix] Reject removed pooling parameters (#48984)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
Taneem Ibrahim
2026-07-19 05:18:03 -07:00
committed by GitHub
parent ac5f38a0f7
commit e6d1310b2a
9 changed files with 108 additions and 17 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ import msgspec
from vllm.config import ModelConfig, PoolerConfig
from vllm.logger import init_logger
from vllm.sampling_params import RequestOutputKind
from vllm.tasks import PoolingTask
from vllm.tasks import PoolingTask, check_removed_pooling_task
logger = init_logger(__name__)
@@ -229,6 +229,7 @@ class PoolingParams(
)
def __post_init__(self) -> None:
check_removed_pooling_task(self.task)
if self.output_kind != RequestOutputKind.FINAL_ONLY:
raise ValueError(
"For pooling output_kind has to be FINAL_ONLY, "