Matt
commited on
Commit
•
69a339b
1
Parent(s):
75452ce
Add chat template
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -48,6 +48,7 @@
|
|
48 |
"<|pad_0|>"
|
49 |
],
|
50 |
"bos_token": "<s>",
|
|
|
51 |
"clean_up_tokenization_spaces": false,
|
52 |
"eos_token": "<|end_of_turn|>",
|
53 |
"legacy": true,
|
|
|
48 |
"<|pad_0|>"
|
49 |
],
|
50 |
"bos_token": "<s>",
|
51 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{{ 'GPT4 Correct ' + message['role'].title() + ': ' + message['content'] + '<|end_of_turn|>'}}{% endfor %}{% if add_generation_prompt %}{{ 'GPT4 Correct Assistant:' }}{% endif %}",
|
52 |
"clean_up_tokenization_spaces": false,
|
53 |
"eos_token": "<|end_of_turn|>",
|
54 |
"legacy": true,
|