Add default chat template to tokenizer_config.json
#2
by
Xenova
HF staff
- opened
- tokenizer_config.json +3 -2
tokenizer_config.json
CHANGED
@@ -8,5 +8,6 @@
|
|
8 |
"model_max_length": 2048,
|
9 |
"name_or_path": "tiiuae/falcon_tokenizer",
|
10 |
"special_tokens_map_file": null,
|
11 |
-
"tokenizer_class": "PreTrainedTokenizerFast"
|
12 |
-
}
|
|
|
|
8 |
"model_max_length": 2048,
|
9 |
"name_or_path": "tiiuae/falcon_tokenizer",
|
10 |
"special_tokens_map_file": null,
|
11 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
12 |
+
"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 %}"
|
13 |
+
}
|