Why does the "llava-hf / llava-v1.6-mistral-7b-hf " not support system role?
code:
prompt = [
{"role": "system", "content": [{"type": "text", "text": "You are helpful assistant"}, ], },
{"role": "user", "content": [{"type": "text", "text": "Who are you?"}, ], },
]
error:
jinja2.exceptions.TemplateError: Only user and assistant roles are supported!
Oops, yes, the current template doesn't support system messages. I can update templates later this week :)
Meanwhile you can pass your own chat template as follows, making sure the template can process system messages:processor.apply_chat_template(dialogue, chat_template=MY_OWN_TEMPLATE)
Oh, thanks for your reply. I have been troubled by this problem for a long time. I will be waiting for your update. Thank you so much!
@Yujie-AI I updated the template, please try :)
Yes, it works now. Thank you very much :)