Skip to content

Commit

Permalink
Fixed error message in mllama (#34106)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgcsilva authored Oct 14, 2024
1 parent cb5ca32 commit 013d3ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/mllama/processing_mllama.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 013d3ac

Please sign in to comment.