iBotIA commited on
Commit
75acf04
·
verified ·
1 Parent(s): 01df18b

Delete tokenizer_config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +0 -208
tokenizer_config.json DELETED
@@ -1,208 +0,0 @@
1
- {
2
- "add_prefix_space": false,
3
- "backend": "tokenizers",
4
- "bos_token": null,
5
- "clean_up_tokenization_spaces": false,
6
- "eos_token": "<|im_end|>",
7
- "errors": "replace",
8
- "extra_special_tokens": [
9
- "<|im_start|>",
10
- "<|im_end|>",
11
- "<|object_ref_start|>",
12
- "<|object_ref_end|>",
13
- "<|box_start|>",
14
- "<|box_end|>",
15
- "<|quad_start|>",
16
- "<|quad_end|>",
17
- "<|vision_start|>",
18
- "<|vision_end|>",
19
- "<|vision_pad|>",
20
- "<|image_pad|>",
21
- "<|video_pad|>"
22
- ],
23
- "is_local": false,
24
- "model_max_length": 131072,
25
- "pad_token": "<|im_end|>",
26
- "split_special_tokens": false,
27
- "tokenizer_class": "Qwen2Tokenizer",
28
- "unk_token": null,
29
- "added_tokens_decoder": {
30
- "151643": {
31
- "content": "<|endoftext|>",
32
- "single_word": false,
33
- "lstrip": false,
34
- "rstrip": false,
35
- "normalized": false,
36
- "special": true
37
- },
38
- "151644": {
39
- "content": "<|im_start|>",
40
- "single_word": false,
41
- "lstrip": false,
42
- "rstrip": false,
43
- "normalized": false,
44
- "special": true
45
- },
46
- "151645": {
47
- "content": "<|im_end|>",
48
- "single_word": false,
49
- "lstrip": false,
50
- "rstrip": false,
51
- "normalized": false,
52
- "special": true
53
- },
54
- "151646": {
55
- "content": "<|object_ref_start|>",
56
- "single_word": false,
57
- "lstrip": false,
58
- "rstrip": false,
59
- "normalized": false,
60
- "special": true
61
- },
62
- "151647": {
63
- "content": "<|object_ref_end|>",
64
- "single_word": false,
65
- "lstrip": false,
66
- "rstrip": false,
67
- "normalized": false,
68
- "special": true
69
- },
70
- "151648": {
71
- "content": "<|box_start|>",
72
- "single_word": false,
73
- "lstrip": false,
74
- "rstrip": false,
75
- "normalized": false,
76
- "special": true
77
- },
78
- "151649": {
79
- "content": "<|box_end|>",
80
- "single_word": false,
81
- "lstrip": false,
82
- "rstrip": false,
83
- "normalized": false,
84
- "special": true
85
- },
86
- "151650": {
87
- "content": "<|quad_start|>",
88
- "single_word": false,
89
- "lstrip": false,
90
- "rstrip": false,
91
- "normalized": false,
92
- "special": true
93
- },
94
- "151651": {
95
- "content": "<|quad_end|>",
96
- "single_word": false,
97
- "lstrip": false,
98
- "rstrip": false,
99
- "normalized": false,
100
- "special": true
101
- },
102
- "151652": {
103
- "content": "<|vision_start|>",
104
- "single_word": false,
105
- "lstrip": false,
106
- "rstrip": false,
107
- "normalized": false,
108
- "special": true
109
- },
110
- "151653": {
111
- "content": "<|vision_end|>",
112
- "single_word": false,
113
- "lstrip": false,
114
- "rstrip": false,
115
- "normalized": false,
116
- "special": true
117
- },
118
- "151654": {
119
- "content": "<|vision_pad|>",
120
- "single_word": false,
121
- "lstrip": false,
122
- "rstrip": false,
123
- "normalized": false,
124
- "special": true
125
- },
126
- "151655": {
127
- "content": "<|image_pad|>",
128
- "single_word": false,
129
- "lstrip": false,
130
- "rstrip": false,
131
- "normalized": false,
132
- "special": true
133
- },
134
- "151656": {
135
- "content": "<|video_pad|>",
136
- "single_word": false,
137
- "lstrip": false,
138
- "rstrip": false,
139
- "normalized": false,
140
- "special": true
141
- },
142
- "151657": {
143
- "content": "<tool_call>",
144
- "single_word": false,
145
- "lstrip": false,
146
- "rstrip": false,
147
- "normalized": false,
148
- "special": false
149
- },
150
- "151658": {
151
- "content": "</tool_call>",
152
- "single_word": false,
153
- "lstrip": false,
154
- "rstrip": false,
155
- "normalized": false,
156
- "special": false
157
- },
158
- "151659": {
159
- "content": "<|fim_prefix|>",
160
- "single_word": false,
161
- "lstrip": false,
162
- "rstrip": false,
163
- "normalized": false,
164
- "special": false
165
- },
166
- "151660": {
167
- "content": "<|fim_middle|>",
168
- "single_word": false,
169
- "lstrip": false,
170
- "rstrip": false,
171
- "normalized": false,
172
- "special": false
173
- },
174
- "151661": {
175
- "content": "<|fim_suffix|>",
176
- "single_word": false,
177
- "lstrip": false,
178
- "rstrip": false,
179
- "normalized": false,
180
- "special": false
181
- },
182
- "151662": {
183
- "content": "<|fim_pad|>",
184
- "single_word": false,
185
- "lstrip": false,
186
- "rstrip": false,
187
- "normalized": false,
188
- "special": false
189
- },
190
- "151663": {
191
- "content": "<|repo_name|>",
192
- "single_word": false,
193
- "lstrip": false,
194
- "rstrip": false,
195
- "normalized": false,
196
- "special": false
197
- },
198
- "151664": {
199
- "content": "<|file_sep|>",
200
- "single_word": false,
201
- "lstrip": false,
202
- "rstrip": false,
203
- "normalized": false,
204
- "special": false
205
- }
206
- },
207
- "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. 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 Qwen, created by Alibaba Cloud. You 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"
208
- }