Add `chat_template` to `tokenizer_config.json`
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -203,6 +203,7 @@
|
|
203 |
}
|
204 |
},
|
205 |
"bos_token": "<|endoftext|>",
|
|
|
206 |
"clean_up_tokenization_spaces": true,
|
207 |
"eos_token": "<|endoftext|>",
|
208 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
203 |
}
|
204 |
},
|
205 |
"bos_token": "<|endoftext|>",
|
206 |
+
"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 %}",
|
207 |
"clean_up_tokenization_spaces": true,
|
208 |
"eos_token": "<|endoftext|>",
|
209 |
"model_max_length": 1000000000000000019884624838656,
|