nroggendorff
commited on
Commit
•
b6a6b50
1
Parent(s):
669f1c7
8.066602401733398
Browse files- special_tokens_map.json +0 -23
- tokenizer.json +0 -0
- tokenizer_config.json +0 -30
special_tokens_map.json
CHANGED
@@ -1,27 +1,4 @@
|
|
1 |
{
|
2 |
-
"additional_special_tokens": [
|
3 |
-
{
|
4 |
-
"content": "<|user|>",
|
5 |
-
"lstrip": false,
|
6 |
-
"normalized": false,
|
7 |
-
"rstrip": false,
|
8 |
-
"single_word": false
|
9 |
-
},
|
10 |
-
{
|
11 |
-
"content": "<|bot|>",
|
12 |
-
"lstrip": false,
|
13 |
-
"normalized": false,
|
14 |
-
"rstrip": false,
|
15 |
-
"single_word": false
|
16 |
-
},
|
17 |
-
{
|
18 |
-
"content": "<|end|>",
|
19 |
-
"lstrip": false,
|
20 |
-
"normalized": false,
|
21 |
-
"rstrip": false,
|
22 |
-
"single_word": false
|
23 |
-
}
|
24 |
-
],
|
25 |
"bos_token": {
|
26 |
"content": "<s>",
|
27 |
"lstrip": false,
|
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
"bos_token": {
|
3 |
"content": "<s>",
|
4 |
"lstrip": false,
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -39,39 +39,9 @@
|
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
42 |
-
},
|
43 |
-
"5": {
|
44 |
-
"content": "<|user|>",
|
45 |
-
"lstrip": false,
|
46 |
-
"normalized": false,
|
47 |
-
"rstrip": false,
|
48 |
-
"single_word": false,
|
49 |
-
"special": true
|
50 |
-
},
|
51 |
-
"6": {
|
52 |
-
"content": "<|bot|>",
|
53 |
-
"lstrip": false,
|
54 |
-
"normalized": false,
|
55 |
-
"rstrip": false,
|
56 |
-
"single_word": false,
|
57 |
-
"special": true
|
58 |
-
},
|
59 |
-
"7": {
|
60 |
-
"content": "<|end|>",
|
61 |
-
"lstrip": false,
|
62 |
-
"normalized": false,
|
63 |
-
"rstrip": false,
|
64 |
-
"single_word": false,
|
65 |
-
"special": true
|
66 |
}
|
67 |
},
|
68 |
-
"additional_special_tokens": [
|
69 |
-
"<|user|>",
|
70 |
-
"<|bot|>",
|
71 |
-
"<|end|>"
|
72 |
-
],
|
73 |
"bos_token": "<s>",
|
74 |
-
"chat_template": "{{ bos_token }}{% 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'] == 'user' %}{{ '<|user|>\n' + message['content'] + '<|end|>\n' }}{% elif message['role'] == 'assistant' %}{{ '<|bot|>\n' + message['content'] + '<|end|>\n' + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
75 |
"clean_up_tokenization_spaces": true,
|
76 |
"eos_token": "</s>",
|
77 |
"mask_token": "<mask>",
|
|
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
},
|
|
|
|
|
|
|
|
|
|
|
44 |
"bos_token": "<s>",
|
|
|
45 |
"clean_up_tokenization_spaces": true,
|
46 |
"eos_token": "</s>",
|
47 |
"mask_token": "<mask>",
|