You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the example in inference/notebooks/01_single_image_understanding.ipynb, but I get this error:
text = processor.apply_chat_template(messages, add_generation_prompt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/transformers/src/transformers/processing_utils.py", line 1096, in apply_chat_template
raise ValueError(
ValueError: No chat template is set for this processor. Please either set the `chat_template` attribute, or provide a chat template as an argument. See https://huggingface.co/docs/transformers/main/en/chat_templating for more information.
@aymeric-roucher Thanks for pointing out this, could you kindly share some more detailed environments to reproduce this error? We just test it with transformers 4.45.0 and it seems errorless in our environment.
I'm trying to run the example in
inference/notebooks/01_single_image_understanding.ipynb
, but I get this error:However, using:
Fixes it. I can open a PR if that helps!
The text was updated successfully, but these errors were encountered: