Add default chat template to tokenizer_config.json
#4
by
Xenova
HF staff
- opened
- tokenizer_config.json +3 -2
tokenizer_config.json
CHANGED
@@ -5,5 +5,6 @@
|
|
5 |
"eos_token": "<|endoftext|>",
|
6 |
"model_max_length": 2048,
|
7 |
"tokenizer_class": "GPTNeoXTokenizer",
|
8 |
-
"unk_token": "<|endoftext|>"
|
9 |
-
}
|
|
|
|
5 |
"eos_token": "<|endoftext|>",
|
6 |
"model_max_length": 2048,
|
7 |
"tokenizer_class": "GPTNeoXTokenizer",
|
8 |
+
"unk_token": "<|endoftext|>",
|
9 |
+
"chat_template": "{% for message in messages %}{{ message.content }}{{ eos_token }}{% endfor %}"
|
10 |
+
}
|