benschlagman commited on
Commit
ce54349
1 Parent(s): 3243a4a

Upload tokenizer

Browse files
added_tokens.json CHANGED
@@ -1,4 +1,3 @@
1
  {
2
- "<pad>": 32000,
3
- "[PAD]": 32001
4
  }
 
1
  {
2
+ "[PAD]": 32000
 
3
  }
special_tokens_map.json CHANGED
@@ -2,14 +2,14 @@
2
  "bos_token": {
3
  "content": "<s>",
4
  "lstrip": false,
5
- "normalized": true,
6
  "rstrip": false,
7
  "single_word": false
8
  },
9
  "eos_token": {
10
  "content": "</s>",
11
  "lstrip": false,
12
- "normalized": true,
13
  "rstrip": false,
14
  "single_word": false
15
  },
@@ -17,7 +17,7 @@
17
  "unk_token": {
18
  "content": "<unk>",
19
  "lstrip": false,
20
- "normalized": true,
21
  "rstrip": false,
22
  "single_word": false
23
  }
 
2
  "bos_token": {
3
  "content": "<s>",
4
  "lstrip": false,
5
+ "normalized": false,
6
  "rstrip": false,
7
  "single_word": false
8
  },
9
  "eos_token": {
10
  "content": "</s>",
11
  "lstrip": false,
12
+ "normalized": false,
13
  "rstrip": false,
14
  "single_word": false
15
  },
 
17
  "unk_token": {
18
  "content": "<unk>",
19
  "lstrip": false,
20
+ "normalized": false,
21
  "rstrip": false,
22
  "single_word": false
23
  }
tokenizer.json CHANGED
@@ -9,7 +9,7 @@
9
  "single_word": false,
10
  "lstrip": false,
11
  "rstrip": false,
12
- "normalized": true,
13
  "special": true
14
  },
15
  {
@@ -18,7 +18,7 @@
18
  "single_word": false,
19
  "lstrip": false,
20
  "rstrip": false,
21
- "normalized": true,
22
  "special": true
23
  },
24
  {
@@ -27,20 +27,11 @@
27
  "single_word": false,
28
  "lstrip": false,
29
  "rstrip": false,
30
- "normalized": true,
31
  "special": true
32
  },
33
  {
34
  "id": 32000,
35
- "content": "<pad>",
36
- "single_word": false,
37
- "lstrip": false,
38
- "rstrip": false,
39
- "normalized": true,
40
- "special": false
41
- },
42
- {
43
- "id": 32001,
44
  "content": "[PAD]",
45
  "single_word": false,
46
  "lstrip": false,
 
9
  "single_word": false,
10
  "lstrip": false,
11
  "rstrip": false,
12
+ "normalized": false,
13
  "special": true
14
  },
15
  {
 
18
  "single_word": false,
19
  "lstrip": false,
20
  "rstrip": false,
21
+ "normalized": false,
22
  "special": true
23
  },
24
  {
 
27
  "single_word": false,
28
  "lstrip": false,
29
  "rstrip": false,
30
+ "normalized": false,
31
  "special": true
32
  },
33
  {
34
  "id": 32000,
 
 
 
 
 
 
 
 
 
35
  "content": "[PAD]",
36
  "single_word": false,
37
  "lstrip": false,
tokenizer_config.json CHANGED
@@ -1,9 +1,11 @@
1
  {
 
 
2
  "added_tokens_decoder": {
3
  "0": {
4
  "content": "<unk>",
5
  "lstrip": false,
6
- "normalized": true,
7
  "rstrip": false,
8
  "single_word": false,
9
  "special": true
@@ -11,7 +13,7 @@
11
  "1": {
12
  "content": "<s>",
13
  "lstrip": false,
14
- "normalized": true,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
@@ -19,20 +21,12 @@
19
  "2": {
20
  "content": "</s>",
21
  "lstrip": false,
22
- "normalized": true,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
  "32000": {
28
- "content": "<pad>",
29
- "lstrip": false,
30
- "normalized": true,
31
- "rstrip": false,
32
- "single_word": false,
33
- "special": false
34
- },
35
- "32001": {
36
  "content": "[PAD]",
37
  "lstrip": false,
38
  "normalized": false,
@@ -42,11 +36,13 @@
42
  }
43
  },
44
  "bos_token": "<s>",
 
45
  "clean_up_tokenization_spaces": false,
46
  "eos_token": "</s>",
47
  "legacy": false,
48
  "model_max_length": 1000000000000000019884624838656,
49
  "pad_token": "</s>",
 
50
  "sp_model_kwargs": {},
51
  "tokenizer_class": "LlamaTokenizer",
52
  "unk_token": "<unk>",
 
1
  {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
  "added_tokens_decoder": {
5
  "0": {
6
  "content": "<unk>",
7
  "lstrip": false,
8
+ "normalized": false,
9
  "rstrip": false,
10
  "single_word": false,
11
  "special": true
 
13
  "1": {
14
  "content": "<s>",
15
  "lstrip": false,
16
+ "normalized": false,
17
  "rstrip": false,
18
  "single_word": false,
19
  "special": true
 
21
  "2": {
22
  "content": "</s>",
23
  "lstrip": false,
24
+ "normalized": false,
25
  "rstrip": false,
26
  "single_word": false,
27
  "special": true
28
  },
29
  "32000": {
 
 
 
 
 
 
 
 
30
  "content": "[PAD]",
31
  "lstrip": false,
32
  "normalized": false,
 
36
  }
37
  },
38
  "bos_token": "<s>",
39
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
40
  "clean_up_tokenization_spaces": false,
41
  "eos_token": "</s>",
42
  "legacy": false,
43
  "model_max_length": 1000000000000000019884624838656,
44
  "pad_token": "</s>",
45
+ "padding_side": "right",
46
  "sp_model_kwargs": {},
47
  "tokenizer_class": "LlamaTokenizer",
48
  "unk_token": "<unk>",