[Bugfix] Exclude language_model_only key from MM AOT compile hash but include in model one (#34508)

Signed-off-by: Roger Wang <hey@rogerw.io>
This commit is contained in:
Roger Wang
2026-02-13 05:59:00 -08:00
committed by GitHub
parent 5885e330ef
commit 1dae7b7843
3 changed files with 24 additions and 1 deletions

View File

@@ -357,6 +357,12 @@ class ModelConfig:
from vllm.config.utils import get_hash_factors, hash_factors
factors = get_hash_factors(self, ignored_factors)
# NOTE: For some models (e.g, Qwen3-VL), whether the MM code path is enabled
# affects the computation graph of the language model, therefore we add it
# here early.
if self.multimodal_config:
factors["language_model_only"] = self.multimodal_config.language_model_only
return hash_factors(factors)
def _update_nested(