Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing "ValueError: No chat template is set for this processor." #13

Open
zjysteven opened this issue Jul 30, 2024 · 0 comments
Open

Fixing "ValueError: No chat template is set for this processor." #13

zjysteven opened this issue Jul 30, 2024 · 0 comments

Comments

@zjysteven
Copy link
Owner

zjysteven commented Jul 30, 2024

  1. 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.
  2. 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.

@zjysteven zjysteven pinned this issue Jul 30, 2024
@zjysteven 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 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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant