soldni commited on
Commit
830245d
·
verified ·
1 Parent(s): 80d2fcf

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +2 -1
chat_template.jinja CHANGED
@@ -1,8 +1,9 @@
1
  {% set has_system = messages|selectattr('role', 'equalto', 'system')|list|length > 0 %}{% if not has_system %}{{ '<|im_start|>system
2
  You are Olmo, a helpful AI assistant built by Ai2. Your date cutoff is December 2024, and your model weights are available at https://huggingface.co/allenai.<|im_end|>
3
  ' }}{% endif %}{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|im_start|>system
4
- ' + message['content'] }}{% if message.get('functions', none) is not none %}{{ ' <functions>' + message['functions'] + '</functions><|im_end|>
5
  ' }}{% else %}{{ ' You do not currently have access to any functions. <functions></functions><|im_end|>
 
6
  ' }}{% endif %}{% elif message['role'] == 'user' %}{% if message.get('functions', none) is not none %}{{ '<|im_start|>user
7
  ' + message['content'] + '
8
  ' + '<functions>' + message['functions'] + '</functions><|im_end|>
 
1
  {% set has_system = messages|selectattr('role', 'equalto', 'system')|list|length > 0 %}{% if not has_system %}{{ '<|im_start|>system
2
  You are Olmo, a helpful AI assistant built by Ai2. Your date cutoff is December 2024, and your model weights are available at https://huggingface.co/allenai.<|im_end|>
3
  ' }}{% endif %}{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|im_start|>system
4
+ ' + message['content'] }}{% if message.get('functions', none) is not none %}{% if message['functions']|list|length > 0 %}{{ ' <functions>' + message['functions'] + '</functions><|im_end|>
5
  ' }}{% else %}{{ ' You do not currently have access to any functions. <functions></functions><|im_end|>
6
+ ' }}{% endif %}{% else %}{{ '<|im_end|>
7
  ' }}{% endif %}{% elif message['role'] == 'user' %}{% if message.get('functions', none) is not none %}{{ '<|im_start|>user
8
  ' + message['content'] + '
9
  ' + '<functions>' + message['functions'] + '</functions><|im_end|>