Add HF chat template to the tokenizer_config.json for inkbot's format.
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -37,6 +37,7 @@
|
|
37 |
},
|
38 |
"additional_special_tokens": [],
|
39 |
"bos_token": "<s>",
|
|
|
40 |
"clean_up_tokenization_spaces": false,
|
41 |
"eos_token": "</s>",
|
42 |
"legacy": false,
|
|
|
37 |
},
|
38 |
"additional_special_tokens": [],
|
39 |
"bos_token": "<s>",
|
40 |
+
"chat_template": "<#meta#>\n- Date: {{ date }}\n- Task: {{ task }}\n<#system#>\n{{ system_message }}\n<#chat#>\n{% for message in messages %}{% if message['role'] == 'user' %}<#user#>\n{{ message['content'] }}{% elif message['role'] == 'bot' %}<#bot#>\n{{ message['content'] }}{% elif message['role'] == 'user_context' %}<#user_context#>\n{{ message['content'] }}{% endif %}{% endfor %}",
|
41 |
"clean_up_tokenization_spaces": false,
|
42 |
"eos_token": "</s>",
|
43 |
"legacy": false,
|