Upload folder using huggingface_hub
Browse files- chat_template.jinja +3 -2
chat_template.jinja
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{% set has_system = messages|selectattr('role', 'equalto', 'system')|list|length > 0 %}{% if not has_system %}{{ '<|im_start|>system
|
| 2 |
-
You are a helpful AI assistant.<|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|>
|
|
@@ -13,4 +13,5 @@ You are a helpful AI assistant.<|im_end|>
|
|
| 13 |
' }}{% else %}{{ eos_token }}{% endif %}{% elif message['role'] == 'environment' %}{{ '<|im_start|>environment
|
| 14 |
' + message['content'] + '<|im_end|>
|
| 15 |
' }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|im_start|>assistant
|
| 16 |
-
<think>' }}{% endif %}{% endfor %}
|
|
|
|
|
|
| 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|>
|
|
|
|
| 13 |
' }}{% else %}{{ eos_token }}{% endif %}{% elif message['role'] == 'environment' %}{{ '<|im_start|>environment
|
| 14 |
' + message['content'] + '<|im_end|>
|
| 15 |
' }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|im_start|>assistant
|
| 16 |
+
<think>' }}{% endif %}{% endfor %}
|
| 17 |
+
|