RonanMcGovern
commited on
Commit
•
6b12c9d
1
Parent(s):
e12ab31
Add tokenizer.chat_template
Browse filesFor some reason, the chat template is missing here.
Indeed there are newer versions of the openchat 3.5 model, but - oddly - they underperform on specific tasks (like function calling and data extraction).
Appreciate if this can be merged.
- 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,
|