LLaVA-VL / LLaVA-NeXT

1.01k stars 55 forks source link

No Attribute 'apply_chat_template' #51

Closed CharlotteZKHu closed 2 weeks ago

CharlotteZKHu commented 3 weeks ago

Do anyone encounter this error when running llama3-llava-next-8b?

File "/LLaVA-NeXT/llava/conversation.py", line 107, in get_prompt return self.tokenizer.apply_chat_template(chat_template_messages, tokenize=False, add_generation_prompt=True) AttributeError: 'str' object has no attribute 'apply_chat_template'

I am so confused that I've already use the latest version of transformers.