RonanMcGovern commited on
Commit
e3f690a
1 Parent(s): 73c15a9

Upload tokenizer

Browse files
Files changed (1) hide show
  1. 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": "[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]\n\n{% 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]\n\n{% elif message['role'] == 'user' and loop.index0 != 1 %}{{ message['content'] }} [/INST]\n\n{% endif %}{% endfor %}",
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,