Add default chat template to tokenizer_config.json
#2
by
Xenova
HF Staff
- opened
- tokenizer_config.json +3 -2
tokenizer_config.json
CHANGED
|
@@ -18,5 +18,6 @@
|
|
| 18 |
"model_max_length": 1024,
|
| 19 |
"pad_token": null,
|
| 20 |
"tokenizer_class": "GPT2Tokenizer",
|
| 21 |
-
"unk_token": "<|endoftext|>"
|
| 22 |
-
}
|
|
|
|
|
|
| 18 |
"model_max_length": 1024,
|
| 19 |
"pad_token": null,
|
| 20 |
"tokenizer_class": "GPT2Tokenizer",
|
| 21 |
+
"unk_token": "<|endoftext|>",
|
| 22 |
+
"chat_template": "{% for message in messages %}{{ message.content }}{{ eos_token }}{% endfor %}"
|
| 23 |
+
}
|