buzzcraft commited on
Commit
c5c28d7
1 Parent(s): 5fbbfdd

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -0
tokenizer_config.json CHANGED
@@ -2058,5 +2058,7 @@
2058
  ],
2059
  "model_max_length": 1000000000000000019884624838656,
2060
  "pad_token": "<|end_of_text|>",
 
2061
  "tokenizer_class": "PreTrainedTokenizerFast"
 
2062
  }
 
2058
  ],
2059
  "model_max_length": 1000000000000000019884624838656,
2060
  "pad_token": "<|end_of_text|>",
2061
+ "chat_template": "{% 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']}}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '<|im_end|>' + '\n'}}{% endif %}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ '<|im_start|>assistant\n' }}{% endif %}",
2062
  "tokenizer_class": "PreTrainedTokenizerFast"
2063
+
2064
  }