Upload tokenizer
Browse files- tokenizer_config.json +1 -3
tokenizer_config.json
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
{
|
2 |
-
"add_bos_token": true,
|
3 |
-
"add_eos_token": false,
|
4 |
"added_tokens_decoder": {
|
5 |
"0": {
|
6 |
"content": "<unk>",
|
@@ -48,7 +46,7 @@
|
|
48 |
"<|pad_0|>"
|
49 |
],
|
50 |
"bos_token": "<s>",
|
51 |
-
"chat_template": "{{
|
52 |
"clean_up_tokenization_spaces": false,
|
53 |
"eos_token": "</s>",
|
54 |
"legacy": true,
|
|
|
1 |
{
|
|
|
|
|
2 |
"added_tokens_decoder": {
|
3 |
"0": {
|
4 |
"content": "<unk>",
|
|
|
46 |
"<|pad_0|>"
|
47 |
],
|
48 |
"bos_token": "<s>",
|
49 |
+
"chat_template": "{{bos_token}}{% for message in messages %}{% if message['role'] == 'user' %}{{ '[|Umano|] ' + message['content'] + '\n' }}{% elif message['role'] == 'assistant' %}{{ '[|Assistente|] ' + message['content'] + '\n' }}{% elif message['role'] == 'system' %}{{ message['content'] + '\n' }}{% else %}{{ raise_exception('Only system, user and assistant roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '[|Assistente|] ' }}{% endif %}\n",
|
50 |
"clean_up_tokenization_spaces": false,
|
51 |
"eos_token": "</s>",
|
52 |
"legacy": true,
|