[Bugfix] Fix for the condition to accept empty encoder inputs for mllama (#17732)

Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
This commit is contained in:
Gregory Shtrasberg 2025-05-06 15:59:06 -04:00 committed by GitHub
parent d456aea71f
commit de906b95f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2021,7 +2021,7 @@ class LLMEngine:
if not prompt_ids:
if prompt_type == "encoder" and model_config.is_multimodal_model:
pass # Mllama may have empty encoder inputs for text-only data
if prompt_inputs["type"] == "embeds":
elif prompt_inputs["type"] == "embeds":
pass
else:
raise ValueError(f"The {prompt_type} prompt cannot be empty")