add chat_template.
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -66,6 +66,7 @@
|
|
66 |
"▁<EOT>"
|
67 |
],
|
68 |
"bos_token": "<s>",
|
|
|
69 |
"clean_up_tokenization_spaces": false,
|
70 |
"eos_token": "</s>",
|
71 |
"eot_token": "▁<EOT>",
|
|
|
66 |
"▁<EOT>"
|
67 |
],
|
68 |
"bos_token": "<s>",
|
69 |
+
"chat_template": "{{bos_token}}{{'You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions.\n\n'}}\n{%- for message in messages %}\n {%- if message['role'] == 'system' %}\n {{ raise_exception('System messages are not allowed in this template.') }}\n {%- else %}\n {%- if message['role'] == 'user' %}\n{{'@@ Instruction\n' + message['content'] + '\n\n'}}\n {%- else %}\n{{'@@ Response\n' + message['content'] + eos_token + '\n\n'}}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{{'@@ Response\n'}}",
|
70 |
"clean_up_tokenization_spaces": false,
|
71 |
"eos_token": "</s>",
|
72 |
"eot_token": "▁<EOT>",
|