teknium commited on
Commit
2cc1db8
1 Parent(s): 708a153

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -2053,7 +2053,7 @@
2053
  "chat_template": [
2054
  {
2055
  "name": "default",
2056
- "template": "{{bos_token}}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"
2057
  },
2058
  {
2059
  "name": "tool_use",
 
2053
  "chat_template": [
2054
  {
2055
  "name": "default",
2056
+ "template": "{{bos_token}}{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"
2057
  },
2058
  {
2059
  "name": "tool_use",