huseinzol05
commited on
Commit
•
29b71c5
1
Parent(s):
fba9e4c
Upload tokenizer
Browse files- special_tokens_map.json +1 -7
- tokenizer_config.json +1 -1
special_tokens_map.json
CHANGED
@@ -10,13 +10,7 @@
|
|
10 |
"rstrip": false,
|
11 |
"single_word": false
|
12 |
},
|
13 |
-
"eos_token":
|
14 |
-
"content": "<eos>",
|
15 |
-
"lstrip": false,
|
16 |
-
"normalized": false,
|
17 |
-
"rstrip": false,
|
18 |
-
"single_word": false
|
19 |
-
},
|
20 |
"pad_token": {
|
21 |
"content": "<pad>",
|
22 |
"lstrip": false,
|
|
|
10 |
"rstrip": false,
|
11 |
"single_word": false
|
12 |
},
|
13 |
+
"eos_token": "<end_of_turn>",
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
"pad_token": {
|
15 |
"content": "<pad>",
|
16 |
"lstrip": false,
|
tokenizer_config.json
CHANGED
@@ -58,7 +58,7 @@
|
|
58 |
"bos_token": "<bos>",
|
59 |
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
|
60 |
"clean_up_tokenization_spaces": false,
|
61 |
-
"eos_token": "<
|
62 |
"legacy": null,
|
63 |
"model_max_length": 1000000000000000019884624838656,
|
64 |
"pad_token": "<pad>",
|
|
|
58 |
"bos_token": "<bos>",
|
59 |
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
|
60 |
"clean_up_tokenization_spaces": false,
|
61 |
+
"eos_token": "<end_of_turn>",
|
62 |
"legacy": null,
|
63 |
"model_max_length": 1000000000000000019884624838656,
|
64 |
"pad_token": "<pad>",
|