Add `chat_template` to `tokenizer_config.json`
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -51,6 +51,7 @@
|
|
51 |
},
|
52 |
"additional_special_tokens": [],
|
53 |
"bos_token": "<s>",
|
|
|
54 |
"clean_up_tokenization_spaces": false,
|
55 |
"eos_token": "</s>",
|
56 |
"legacy": true,
|
|
|
51 |
},
|
52 |
"additional_special_tokens": [],
|
53 |
"bos_token": "<s>",
|
54 |
+
"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 %}",
|
55 |
"clean_up_tokenization_spaces": false,
|
56 |
"eos_token": "</s>",
|
57 |
"legacy": true,
|