From 013d3ac2b5924058c78f4df943339b403714ef9a Mon Sep 17 00:00:00 2001 From: Diogo Miguel Silva <43959937+dmgcsilva@users.noreply.github.com> Date: Mon, 14 Oct 2024 09:30:35 +0100 Subject: [PATCH] Fixed error message in mllama (#34106) --- src/transformers/models/mllama/processing_mllama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/models/mllama/processing_mllama.py b/src/transformers/models/mllama/processing_mllama.py index eb092f021f6368..eea98f5bd66ac2 100644 --- a/src/transformers/models/mllama/processing_mllama.py +++ b/src/transformers/models/mllama/processing_mllama.py @@ -302,7 +302,7 @@ def __call__( raise ValueError("No image were provided, but there are image tokens in the prompt") else: raise ValueError( - f"The number of image token ({sum(n_images_in_images)}) should be the same as in the number of provided images ({sum(n_images_in_images)})" + f"The number of image token ({sum(n_images_in_text)}) should be the same as in the number of provided images ({sum(n_images_in_images)})" ) if images is not None: