Add default chat template to tokenizer_config.json
Browse files[Automated] This PR adds the default chat template to the tokenizer config, allowing the model to be used with the new conversational widget (see [PR](https://github.com/huggingface/huggingface.js/pull/457)).
If the default is not appropriate for your model, please set `tokenizer.chat_template` to an appropriate template. See https://huggingface.co/docs/transformers/main/chat_templating for more information.
- tokenizer_config.json +40 -1
tokenizer_config.json
CHANGED
@@ -1 +1,40 @@
|
|
1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"errors": "replace",
|
3 |
+
"unk_token": {
|
4 |
+
"content": "</s>",
|
5 |
+
"single_word": false,
|
6 |
+
"lstrip": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"__type": "AddedToken"
|
10 |
+
},
|
11 |
+
"bos_token": {
|
12 |
+
"content": "</s>",
|
13 |
+
"single_word": false,
|
14 |
+
"lstrip": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"__type": "AddedToken"
|
18 |
+
},
|
19 |
+
"eos_token": {
|
20 |
+
"content": "</s>",
|
21 |
+
"single_word": false,
|
22 |
+
"lstrip": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"normalized": true,
|
25 |
+
"__type": "AddedToken"
|
26 |
+
},
|
27 |
+
"pad_token": {
|
28 |
+
"content": "<pad>",
|
29 |
+
"single_word": false,
|
30 |
+
"lstrip": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"normalized": true,
|
33 |
+
"__type": "AddedToken"
|
34 |
+
},
|
35 |
+
"add_prefix_space": false,
|
36 |
+
"add_bos_token": true,
|
37 |
+
"special_tokens_map_file": null,
|
38 |
+
"name_or_path": "patrickvonplaten/opt-30b",
|
39 |
+
"chat_template": "{% for message in messages %}{{ message.content }}{{ eos_token }}{% endfor %}"
|
40 |
+
}
|