fhai50032 commited on
Commit
446cfaa
·
verified ·
1 Parent(s): f04f9c5

Upload tokenizer

Browse files
Files changed (3) hide show
  1. special_tokens_map.json +2 -29
  2. tokenizer.json +0 -0
  3. tokenizer_config.json +43 -88
special_tokens_map.json CHANGED
@@ -1,31 +1,4 @@
1
  {
2
- "additional_special_tokens": [
3
- "<|im_start|>",
4
- "<|im_end|>",
5
- "<|object_ref_start|>",
6
- "<|object_ref_end|>",
7
- "<|box_start|>",
8
- "<|box_end|>",
9
- "<|quad_start|>",
10
- "<|quad_end|>",
11
- "<|vision_start|>",
12
- "<|vision_end|>",
13
- "<|vision_pad|>",
14
- "<|image_pad|>",
15
- "<|video_pad|>"
16
- ],
17
- "eos_token": {
18
- "content": "<|endoftext|>",
19
- "lstrip": false,
20
- "normalized": false,
21
- "rstrip": false,
22
- "single_word": false
23
- },
24
- "pad_token": {
25
- "content": "<|endoftext|>",
26
- "lstrip": false,
27
- "normalized": false,
28
- "rstrip": false,
29
- "single_word": false
30
- }
31
  }
 
1
  {
2
+ "eos_token": "<|endoftext|>",
3
+ "pad_token": "<|endoftext|>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,6 +1,4 @@
1
  {
2
- "add_bos_token": false,
3
- "add_prefix_space": false,
4
  "added_tokens_decoder": {
5
  "0": {
6
  "content": "<|endoftext|>",
@@ -10,135 +8,92 @@
10
  "single_word": false,
11
  "special": true
12
  },
13
- "1": {
14
- "content": "<|im_start|>",
15
  "lstrip": false,
16
- "normalized": false,
17
- "rstrip": false,
18
- "single_word": false,
19
- "special": true
20
- },
21
- "2": {
22
- "content": "<|im_end|>",
23
- "lstrip": false,
24
- "normalized": false,
25
- "rstrip": false,
26
- "single_word": false,
27
- "special": true
28
- },
29
- "3": {
30
- "content": "<|object_ref_start|>",
31
- "lstrip": false,
32
- "normalized": false,
33
- "rstrip": false,
34
- "single_word": false,
35
- "special": true
36
- },
37
- "4": {
38
- "content": "<|object_ref_end|>",
39
- "lstrip": false,
40
- "normalized": false,
41
  "rstrip": false,
42
  "single_word": false,
43
- "special": true
44
  },
45
- "5": {
46
- "content": "<|box_start|>",
47
  "lstrip": false,
48
- "normalized": false,
49
  "rstrip": false,
50
  "single_word": false,
51
- "special": true
52
  },
53
- "6": {
54
- "content": "<|box_end|>",
55
  "lstrip": false,
56
- "normalized": false,
57
  "rstrip": false,
58
  "single_word": false,
59
- "special": true
60
  },
61
- "7": {
62
- "content": "<|quad_start|>",
63
  "lstrip": false,
64
- "normalized": false,
65
  "rstrip": false,
66
  "single_word": false,
67
- "special": true
68
  },
69
- "8": {
70
- "content": "<|quad_end|>",
71
  "lstrip": false,
72
- "normalized": false,
73
  "rstrip": false,
74
  "single_word": false,
75
- "special": true
76
  },
77
- "9": {
78
- "content": "<|vision_start|>",
79
  "lstrip": false,
80
- "normalized": false,
81
  "rstrip": false,
82
  "single_word": false,
83
- "special": true
84
  },
85
- "10": {
86
- "content": "<|vision_end|>",
87
  "lstrip": false,
88
- "normalized": false,
89
  "rstrip": false,
90
  "single_word": false,
91
- "special": true
92
  },
93
- "11": {
94
- "content": "<|vision_pad|>",
95
  "lstrip": false,
96
- "normalized": false,
97
  "rstrip": false,
98
  "single_word": false,
99
- "special": true
100
  },
101
- "12": {
102
- "content": "<|image_pad|>",
103
  "lstrip": false,
104
- "normalized": false,
105
  "rstrip": false,
106
  "single_word": false,
107
- "special": true
108
  },
109
- "13": {
110
- "content": "<|video_pad|>",
111
  "lstrip": false,
112
- "normalized": false,
113
  "rstrip": false,
114
  "single_word": false,
115
- "special": true
116
  }
117
  },
118
- "additional_special_tokens": [
119
- "<|im_start|>",
120
- "<|im_end|>",
121
- "<|object_ref_start|>",
122
- "<|object_ref_end|>",
123
- "<|box_start|>",
124
- "<|box_end|>",
125
- "<|quad_start|>",
126
- "<|quad_end|>",
127
- "<|vision_start|>",
128
- "<|vision_end|>",
129
- "<|vision_pad|>",
130
- "<|image_pad|>",
131
- "<|video_pad|>"
132
- ],
133
- "bos_token": null,
134
- "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
135
  "clean_up_tokenization_spaces": false,
136
  "eos_token": "<|endoftext|>",
137
- "errors": "replace",
138
  "extra_special_tokens": {},
139
- "model_max_length": 131072,
140
  "pad_token": "<|endoftext|>",
141
- "split_special_tokens": false,
142
- "tokenizer_class": "Qwen2Tokenizer",
143
- "unk_token": null
144
  }
 
1
  {
 
 
2
  "added_tokens_decoder": {
3
  "0": {
4
  "content": "<|endoftext|>",
 
8
  "single_word": false,
9
  "special": true
10
  },
11
+ "4709": {
12
+ "content": "user",
13
  "lstrip": false,
14
+ "normalized": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  "rstrip": false,
16
  "single_word": false,
17
+ "special": false
18
  },
19
+ "27673": {
20
+ "content": "system",
21
  "lstrip": false,
22
+ "normalized": true,
23
  "rstrip": false,
24
  "single_word": false,
25
+ "special": false
26
  },
27
+ "81912": {
28
+ "content": "<think>",
29
  "lstrip": false,
30
+ "normalized": true,
31
  "rstrip": false,
32
  "single_word": false,
33
+ "special": false
34
  },
35
+ "81913": {
36
+ "content": "</think>",
37
  "lstrip": false,
38
+ "normalized": true,
39
  "rstrip": false,
40
  "single_word": false,
41
+ "special": false
42
  },
43
+ "81914": {
44
+ "content": "<|im_end|>",
45
  "lstrip": false,
46
+ "normalized": true,
47
  "rstrip": false,
48
  "single_word": false,
49
+ "special": false
50
  },
51
+ "81915": {
52
+ "content": "<|im_start|>",
53
  "lstrip": false,
54
+ "normalized": true,
55
  "rstrip": false,
56
  "single_word": false,
57
+ "special": false
58
  },
59
+ "81916": {
60
+ "content": "assistant",
61
  "lstrip": false,
62
+ "normalized": true,
63
  "rstrip": false,
64
  "single_word": false,
65
+ "special": false
66
  },
67
+ "81917": {
68
+ "content": "BiBo",
69
  "lstrip": false,
70
+ "normalized": true,
71
  "rstrip": false,
72
  "single_word": false,
73
+ "special": false
74
  },
75
+ "81918": {
76
+ "content": "aloobun",
77
  "lstrip": false,
78
+ "normalized": true,
79
  "rstrip": false,
80
  "single_word": false,
81
+ "special": false
82
  },
83
+ "81919": {
84
+ "content": "LowIQGenAI",
85
  "lstrip": false,
86
+ "normalized": true,
87
  "rstrip": false,
88
  "single_word": false,
89
+ "special": false
90
  }
91
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  "clean_up_tokenization_spaces": false,
93
  "eos_token": "<|endoftext|>",
 
94
  "extra_special_tokens": {},
95
+ "model_max_length": 8192,
96
  "pad_token": "<|endoftext|>",
97
+ "padding_side": "right",
98
+ "tokenizer_class": "PreTrainedTokenizerFast"
 
99
  }