MIDIstral_pixtral / chat_template.json
asigalov61's picture
Upload processor
61919f8 verified
raw
history blame
488 Bytes
{
"chat_template": "\n{%- for message in messages %} \n{%- if message.role == \"user\" %} \n<s>[INST] \n{%- for item in message.content %} \n{%- if item.type == \"text\" %} \n{{ item.text }} \n{%- elif item.type == \"image\" %} \n\n[IMG] \n{%- endif %} \n{%- endfor %} \n[/INST] \n{%- elif message.role == \"assistant\" %} \n{%- for item in message.content %} \n{%- if item.type == \"text\" %} \n{{ item.text }} \n{%- endif %} \n{%- endfor %} \n</s>\n{%- endif %} \n{%- endfor %} \n"
}