RonanMcGovern
commited on
Commit
•
e3f690a
1
Parent(s):
73c15a9
Upload tokenizer
Browse files- tokenizer_config.json +3 -1
tokenizer_config.json
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
{
|
|
|
|
|
2 |
"added_tokens_decoder": {
|
3 |
"0": {
|
4 |
"content": "<unk>",
|
@@ -26,7 +28,7 @@
|
|
26 |
}
|
27 |
},
|
28 |
"bos_token": "<s>",
|
29 |
-
"chat_template": "
|
30 |
"clean_up_tokenization_spaces": false,
|
31 |
"eos_token": "</s>",
|
32 |
"legacy": false,
|
|
|
1 |
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
"added_tokens_decoder": {
|
5 |
"0": {
|
6 |
"content": "<unk>",
|
|
|
28 |
}
|
29 |
},
|
30 |
"bos_token": "<s>",
|
31 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'function_metadata' %}[INST] 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'] }}{% elif message['role'] == 'assistant' %} [/INST]{{ message['content'] }}{{ eos_token }}{% elif message['role'] == 'function_call' %}[INST] [FUNCTION_CALL] {{ message['content'] }}{{ eos_token }}{% elif message['role'] == 'function_response' %} [/INST][FUNCTION_RESPONSE] Here is the response to the function call. If helpful, use it to respond to the user's question:{{ message['content'] }}{% elif message['role'] == 'user' and loop.index0 != 1 %}[INST] {{ message['content'] }}{% endif %}{% endfor %}{% if add_generation_prompt %} [/INST]{% endif %}",
|
32 |
"clean_up_tokenization_spaces": false,
|
33 |
"eos_token": "</s>",
|
34 |
"legacy": false,
|