wukaixingxp commited on
Commit
a3db496
1 Parent(s): a8ba4d7

fix the chat_template by using the one in 90B instruct (#5)

Browse files

- fix the chat_template by using the one in 90B instruct (86bcf3a3acc45a596a38f535f6b16a1a38caa83d)

Files changed (1) hide show
  1. chat_template.json +1 -1
chat_template.json CHANGED
@@ -1,3 +1,3 @@
1
  {
2
- "chat_template": "{% for message in messages %} {% if loop.index0 == 0 %} {{ bos_token }} {% endif %} {{ '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n' }} {% if message['content'] is string %} {{ message['content'] }} {% else %} {% for content in message['content'] %} {% if content['type'] == 'image' %} {{ '<|image|>' }} {% elif content['type'] == 'text' %} {{ content['text'] }} {% endif %} {% endfor %} {% endif %} {{ '<|eot_id|>' }} {% endfor %} {% if add_generation_prompt %} {{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }} {% endif %}"
3
  }
 
1
  {
2
+ "chat_template": "{% for message in messages %}{% if loop.index0 == 0 %}{{ bos_token }}{% endif %}{{ '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n' }}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<|image|>' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{ '<|eot_id|>' }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}"
3
  }