add chat template
Browse files- tokenizer_config.json +2 -1
tokenizer_config.json
CHANGED
@@ -158,7 +158,8 @@
|
|
158 |
"<empty_output>"
|
159 |
],
|
160 |
"bos_token": "<|endoftext|>",
|
161 |
-
"
|
|
|
162 |
"eos_token": "<|endoftext|>",
|
163 |
"model_max_length": 1000000000000000019884624838656,
|
164 |
"tokenizer_class": "GPT2Tokenizer",
|
|
|
158 |
"<empty_output>"
|
159 |
],
|
160 |
"bos_token": "<|endoftext|>",
|
161 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
162 |
+
"clean_up_tokenization_spaces": false,
|
163 |
"eos_token": "<|endoftext|>",
|
164 |
"model_max_length": 1000000000000000019884624838656,
|
165 |
"tokenizer_class": "GPT2Tokenizer",
|