[Core] Get num_encoder_tokens from scheduler config (#24989)

Signed-off-by: Russell Bryant <rbryant@redhat.com>
This commit is contained in:
Russell Bryant
2025-09-16 20:59:07 -07:00
committed by GitHub
parent ea3de5ef0d
commit 58d4c705a8
3 changed files with 6 additions and 8 deletions
+2 -3
View File
@@ -465,9 +465,8 @@ class Scheduler(SchedulerInterface):
in self.vllm_config.model_config.model.lower()), (
"Whisper is the only supported "
"encoder-decoder model.")
num_encoder_tokens = MULTIMODAL_REGISTRY.\
get_encdec_max_encoder_len(
self.vllm_config.model_config)
num_encoder_tokens =\
self.scheduler_config.max_num_encoder_input_tokens
else:
num_encoder_tokens = 0