[BugFix] Use served model name in gemma4 audio-tower error message (#44828)

Signed-off-by: Sungjae Lee <33976427+llsj14@users.noreply.github.com>
Signed-off-by: Sungjae Lee <sung-jae.lee@navercorp.com>
This commit is contained in:
Sungjae Lee
2026-06-08 06:58:31 +00:00
committed by GitHub
parent 94fcdd007f
commit 469f3dcf1d
+5 -1
View File
@@ -34,6 +34,7 @@ from transformers.models.gemma4.configuration_gemma4 import (
)
from vllm.config import VllmConfig
from vllm.config.model import get_served_model_name
from vllm.config.multimodal import BaseDummyOptions, VideoDummyOptions
from vllm.inputs import MultiModalDataDict
from vllm.logger import init_logger
@@ -217,7 +218,10 @@ class Gemma4ProcessingInfo(BaseProcessingInfo):
and num_items > 0
and self.get_hf_config().audio_config is None
):
model = self.ctx.model_config.model
model_config = self.ctx.model_config
model = get_served_model_name(
model_config.model, model_config.served_model_name
)
raise ValueError(
f"Audio input was provided but the model "
f"'{model}' does not have an audio tower. "