Devansh728 commited on
Commit
7dcbe4f
·
verified ·
1 Parent(s): f516f1a

Upload model trained with Unsloth

Browse files

Upload model trained with Unsloth 2x faster

Files changed (4) hide show
  1. .gitattributes +1 -0
  2. chat_template.jinja +54 -0
  3. tokenizer.json +3 -0
  4. tokenizer_config.json +230 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\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>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d18491fd6637b5efe795df2cab392b7e57080d5ac02a8ca797438b73b1ef68bf
3
+ size 11422647
tokenizer_config.json ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "[ISSUE]",
10
+ "[FILE_STATE]",
11
+ "[RESPONSE_DIFF]"
12
+ ],
13
+ "is_local": false,
14
+ "model_max_length": 32768,
15
+ "pad_token": "<|PAD_TOKEN|>",
16
+ "padding_side": "left",
17
+ "split_special_tokens": false,
18
+ "tokenizer_class": "Qwen2Tokenizer",
19
+ "unk_token": null,
20
+ "added_tokens_decoder": {
21
+ "151643": {
22
+ "content": "<|endoftext|>",
23
+ "single_word": false,
24
+ "lstrip": false,
25
+ "rstrip": false,
26
+ "normalized": false,
27
+ "special": true
28
+ },
29
+ "151644": {
30
+ "content": "<|im_start|>",
31
+ "single_word": false,
32
+ "lstrip": false,
33
+ "rstrip": false,
34
+ "normalized": false,
35
+ "special": true
36
+ },
37
+ "151645": {
38
+ "content": "<|im_end|>",
39
+ "single_word": false,
40
+ "lstrip": false,
41
+ "rstrip": false,
42
+ "normalized": false,
43
+ "special": true
44
+ },
45
+ "151646": {
46
+ "content": "<|object_ref_start|>",
47
+ "single_word": false,
48
+ "lstrip": false,
49
+ "rstrip": false,
50
+ "normalized": false,
51
+ "special": true
52
+ },
53
+ "151647": {
54
+ "content": "<|object_ref_end|>",
55
+ "single_word": false,
56
+ "lstrip": false,
57
+ "rstrip": false,
58
+ "normalized": false,
59
+ "special": true
60
+ },
61
+ "151648": {
62
+ "content": "<|box_start|>",
63
+ "single_word": false,
64
+ "lstrip": false,
65
+ "rstrip": false,
66
+ "normalized": false,
67
+ "special": true
68
+ },
69
+ "151649": {
70
+ "content": "<|box_end|>",
71
+ "single_word": false,
72
+ "lstrip": false,
73
+ "rstrip": false,
74
+ "normalized": false,
75
+ "special": true
76
+ },
77
+ "151650": {
78
+ "content": "<|quad_start|>",
79
+ "single_word": false,
80
+ "lstrip": false,
81
+ "rstrip": false,
82
+ "normalized": false,
83
+ "special": true
84
+ },
85
+ "151651": {
86
+ "content": "<|quad_end|>",
87
+ "single_word": false,
88
+ "lstrip": false,
89
+ "rstrip": false,
90
+ "normalized": false,
91
+ "special": true
92
+ },
93
+ "151652": {
94
+ "content": "<|vision_start|>",
95
+ "single_word": false,
96
+ "lstrip": false,
97
+ "rstrip": false,
98
+ "normalized": false,
99
+ "special": true
100
+ },
101
+ "151653": {
102
+ "content": "<|vision_end|>",
103
+ "single_word": false,
104
+ "lstrip": false,
105
+ "rstrip": false,
106
+ "normalized": false,
107
+ "special": true
108
+ },
109
+ "151654": {
110
+ "content": "<|vision_pad|>",
111
+ "single_word": false,
112
+ "lstrip": false,
113
+ "rstrip": false,
114
+ "normalized": false,
115
+ "special": true
116
+ },
117
+ "151655": {
118
+ "content": "<|image_pad|>",
119
+ "single_word": false,
120
+ "lstrip": false,
121
+ "rstrip": false,
122
+ "normalized": false,
123
+ "special": true
124
+ },
125
+ "151656": {
126
+ "content": "<|video_pad|>",
127
+ "single_word": false,
128
+ "lstrip": false,
129
+ "rstrip": false,
130
+ "normalized": false,
131
+ "special": true
132
+ },
133
+ "151657": {
134
+ "content": "<tool_call>",
135
+ "single_word": false,
136
+ "lstrip": false,
137
+ "rstrip": false,
138
+ "normalized": false,
139
+ "special": false
140
+ },
141
+ "151658": {
142
+ "content": "</tool_call>",
143
+ "single_word": false,
144
+ "lstrip": false,
145
+ "rstrip": false,
146
+ "normalized": false,
147
+ "special": false
148
+ },
149
+ "151659": {
150
+ "content": "<|fim_prefix|>",
151
+ "single_word": false,
152
+ "lstrip": false,
153
+ "rstrip": false,
154
+ "normalized": false,
155
+ "special": false
156
+ },
157
+ "151660": {
158
+ "content": "<|fim_middle|>",
159
+ "single_word": false,
160
+ "lstrip": false,
161
+ "rstrip": false,
162
+ "normalized": false,
163
+ "special": false
164
+ },
165
+ "151661": {
166
+ "content": "<|fim_suffix|>",
167
+ "single_word": false,
168
+ "lstrip": false,
169
+ "rstrip": false,
170
+ "normalized": false,
171
+ "special": false
172
+ },
173
+ "151662": {
174
+ "content": "<|fim_pad|>",
175
+ "single_word": false,
176
+ "lstrip": false,
177
+ "rstrip": false,
178
+ "normalized": false,
179
+ "special": false
180
+ },
181
+ "151663": {
182
+ "content": "<|repo_name|>",
183
+ "single_word": false,
184
+ "lstrip": false,
185
+ "rstrip": false,
186
+ "normalized": false,
187
+ "special": false
188
+ },
189
+ "151664": {
190
+ "content": "<|file_sep|>",
191
+ "single_word": false,
192
+ "lstrip": false,
193
+ "rstrip": false,
194
+ "normalized": false,
195
+ "special": false
196
+ },
197
+ "151665": {
198
+ "content": "<|PAD_TOKEN|>",
199
+ "single_word": false,
200
+ "lstrip": false,
201
+ "rstrip": false,
202
+ "normalized": false,
203
+ "special": true
204
+ },
205
+ "151666": {
206
+ "content": "[ISSUE]",
207
+ "single_word": false,
208
+ "lstrip": false,
209
+ "rstrip": false,
210
+ "normalized": false,
211
+ "special": true
212
+ },
213
+ "151667": {
214
+ "content": "[FILE_STATE]",
215
+ "single_word": false,
216
+ "lstrip": false,
217
+ "rstrip": false,
218
+ "normalized": false,
219
+ "special": true
220
+ },
221
+ "151668": {
222
+ "content": "[RESPONSE_DIFF]",
223
+ "single_word": false,
224
+ "lstrip": false,
225
+ "rstrip": false,
226
+ "normalized": false,
227
+ "special": true
228
+ }
229
+ }
230
+ }