Apollo icon indicating copy to clipboard operation
Apollo copied to clipboard

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

Open enviz opened this issue 1 year ago • 0 comments

Chat template is throwing error

from transformers import pipeline messages = [ {"role": "user", "content": "Who are you?"}, ] pipe = pipeline("text-generation", model="FreedomIntelligence/Apollo-7B") output = pipe(messages)

print(output)

enviz avatar Oct 28 '24 14:10 enviz