RonanMcGovern
commited on
Commit
•
8fba5be
1
Parent(s):
6a58368
update tokenizer.chat_format
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
}
|
27 |
},
|
28 |
"bos_token": "<s>",
|
29 |
-
"chat_template": "{% if
|
30 |
"clean_up_tokenization_spaces": false,
|
31 |
"eos_token": "</s>",
|
32 |
"legacy": false,
|
|
|
26 |
}
|
27 |
},
|
28 |
"bos_token": "<s>",
|
29 |
+
"chat_template": "{{ bos_token }}[INST] {% for message in messages %}{% if message['role'] == 'system' %}<<SYS>>\n{{ message['content'] }}\n<</SYS>>\n\n{% elif message['role'] == 'function_metadata' %}You have access to the following functions. Use them if required:\n\n{{ message['content'] }}\n\n{% elif message['role'] == 'user' and loop.index0 == 1 %}{{ message['content'] }} [/INST]{% elif message['role'] == 'assistant' %}{{ message['content'] }}{{ eos_token }}{{ bos_token }}[INST] {% elif message['role'] == 'function_call' %}Function call: {{ message['content'] }}{{ eos_token }}{{ bos_token }}[INST] {% elif message['role'] == 'function_response' %}Here is the response to the function call. If helpful, use it to respond to my question:\n\n{{ message['content'] }} [/INST]{% elif message['role'] == 'user' and loop.index0 != 1 %}{{ message['content'] }} [/INST]{% endif %}{% endfor %}",
|
30 |
"clean_up_tokenization_spaces": false,
|
31 |
"eos_token": "</s>",
|
32 |
"legacy": false,
|