[Refactor] Move MM item count validation outside of processor (#33396)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-01-30 09:27:31 +00:00
committed by GitHub
parent f45870b53f
commit c87eac18f7
7 changed files with 46 additions and 51 deletions
+1 -3
View File
@@ -176,9 +176,7 @@ class LoRAModelManager:
)
mm_budget = MultiModalBudget(vllm_config, mm_registry)
limit_per_prompt: int = max(
self.mm_processor_info.get_allowed_mm_limits().values()
)
limit_per_prompt = max(self.mm_processor_info.allowed_mm_limits.values())
num_encoder_tokens = self.model.get_num_mm_encoder_tokens(
mm_budget.get_encoder_budget()
)