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
If you are using local checkpoint (i.e., you are specifying a local model path instead of a huggingface url for xxxx.from_pretrained), then please pull the latest content from the corresponding huggingface model repo. You should see that either 1) there's a chat_template attribute in the tokenizer_config.json file, or 2) there's a chat_template.json file in your checkpoint folder.
Try upgrading the transformers library by python -m pip install --upgrade transformers.
If the error is still there after these two steps, feel free to open an issue and describe your specific case in detail.
The text was updated successfully, but these errors were encountered:
zjysteven
changed the title
ValueError: No chat template is set for this processor.
Fix for "ValueError: No chat template is set for this processor."
Jul 30, 2024
zjysteven
changed the title
Fix for "ValueError: No chat template is set for this processor."
Fixing "ValueError: No chat template is set for this processor."
Jul 30, 2024
Repository owner
locked and limited conversation to collaborators
Jul 30, 2024
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
chat_template
attribute in thetokenizer_config.json
file, or 2) there's achat_template.json
file in your checkpoint folder.python -m pip install --upgrade transformers
.If the error is still there after these two steps, feel free to open an issue and describe your specific case in detail.
The text was updated successfully, but these errors were encountered: