[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 -2
View File
@@ -234,8 +234,8 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
if self.model_config.is_encoder_decoder:
# Maximum length of the encoder input, only for encoder-decoder
# models.
self.max_encoder_len = self.mm_registry.\
get_encdec_max_encoder_len(model_config)
self.max_encoder_len = scheduler_config.\
max_num_encoder_input_tokens
else:
self.max_encoder_len = 0