From 48649096482d6b68055366cea6bedadea55102ec Mon Sep 17 00:00:00 2001 From: Shanshan Shen <467638484@qq.com> Date: Tue, 25 Nov 2025 20:36:16 +0800 Subject: [PATCH] [MM][Bugfix] Minor fix for VL model verification (#4384) ### What this PR does / why we need it? To fix ops test, where `model_config` has been set to `None` and doesn't has `hf_config` attribute, we have added a check for `model_config` to guarantee it is not `None_Type`. - vLLM main: https://github.com/vllm-project/vllm/commit/2918c1b49c88c29783c86f78d2c4221cb9622379 Signed-off-by: shen-shanshan <467638484@qq.com> --- vllm_ascend/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm_ascend/utils.py b/vllm_ascend/utils.py index a539c5a3..2ae0da31 100644 --- a/vllm_ascend/utils.py +++ b/vllm_ascend/utils.py @@ -810,7 +810,7 @@ def _is_contain_expert(config: Any): def is_vl_model(vllm_config: VllmConfig): """Checks if the model is a VL model by config""" global _IS_VL_MODEL - if _IS_VL_MODEL is None: + if _IS_VL_MODEL is None and vllm_config.model_config: model_configs = vllm_config.model_config.hf_config.to_dict() _IS_VL_MODEL = "VL" in model_configs["architectures"][0] return _IS_VL_MODEL