add chat template
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -38,6 +38,7 @@
|
|
38 |
"sp_model_kwargs": {},
|
39 |
"spaces_between_special_tokens": false,
|
40 |
"tokenizer_class": "LlamaTokenizer",
|
|
|
41 |
"unk_token": "<unk>",
|
42 |
"use_default_system_prompt": true
|
43 |
}
|
|
|
38 |
"sp_model_kwargs": {},
|
39 |
"spaces_between_special_tokens": false,
|
40 |
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"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 %}",
|
42 |
"unk_token": "<unk>",
|
43 |
"use_default_system_prompt": true
|
44 |
}
|