Error with tokenizer.chat_template is not set

#8
by nikich340 - opened

transformers\tokenization_utils_base.py", line 1805, in get_chat_template
raise ValueError(
ValueError: Cannot use chat template functions because tokenizer.chat_template is not set and no template argument was passed! For information about writing templates and setting the tokenizer.chat_template attribute, please see the documentation at https://huggingface.co/docs/transformers/main/en/chat_templating

Cohere Labs org

@nikich340 what version of transformers are you using? Can you share the code snippet to reproduce the issue?

Sign up or log in to comment