RonanMcGovern commited on
Commit
f8701f9
1 Parent(s): 8fba5be

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -26,7 +26,7 @@
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,
 
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]\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,