vananh0905
commited on
Commit
•
a80c8cb
1
Parent(s):
0386f50
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -140,7 +140,7 @@
|
|
140 |
}
|
141 |
},
|
142 |
"bos_token": "<|begin▁of▁sentence|>",
|
143 |
-
"chat_template": "{% for message in messages %}\n{% if message['
|
144 |
"eos_token": "<|EOT|>",
|
145 |
"legacy": true,
|
146 |
"model_max_length": 4096,
|
|
|
140 |
}
|
141 |
},
|
142 |
"bos_token": "<|begin▁of▁sentence|>",
|
143 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'human' %}\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 %}", "clean_up_tokenization_spaces": false,
|
144 |
"eos_token": "<|EOT|>",
|
145 |
"legacy": true,
|
146 |
"model_max_length": 4096,
|