遇到这个bug
ValueError(
[rank0]: 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_templatingAssertionError: Expected code to be unreachable, but got: [{'role': 'system', 'content': "You are provided with a question and various references. Your task i...
显示没有聊天模版。研究了半天发现有两种解决方法。
1. 使用intruct版本,不要使用base版本
2. 将transformer包降级



被折叠的 条评论
为什么被折叠?



