bol20162021
commited on
Commit
•
2ed2242
1
Parent(s):
4ec76bb
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -50,6 +50,7 @@
|
|
50 |
"model_max_length": 1000000000000000019884624838656,
|
51 |
"pad_token": null,
|
52 |
"sp_model_kwargs": {},
|
|
|
53 |
"spaces_between_special_tokens": false,
|
54 |
"tokenizer_class": "LlamaTokenizer",
|
55 |
"unk_token": {
|
|
|
50 |
"model_max_length": 1000000000000000019884624838656,
|
51 |
"pad_token": null,
|
52 |
"sp_model_kwargs": {},
|
53 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
54 |
"spaces_between_special_tokens": false,
|
55 |
"tokenizer_class": "LlamaTokenizer",
|
56 |
"unk_token": {
|