yabichiu commited on
Commit
83416c3
1 Parent(s): 23a3fe3

Upload 6 files

Browse files
.gitattributes CHANGED
@@ -35,3 +35,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  qwen2_5-coder-7b-instruct-q6_K filter=lfs diff=lfs merge=lfs -text
37
  qwen2_5-coder-7b-instruct-q8_0 filter=lfs diff=lfs merge=lfs -text
 
 
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  qwen2_5-coder-7b-instruct-q6_K filter=lfs diff=lfs merge=lfs -text
37
  qwen2_5-coder-7b-instruct-q8_0 filter=lfs diff=lfs merge=lfs -text
38
+ qwen2_5-coder-7b-instruct-q3_K_M filter=lfs diff=lfs merge=lfs -text
39
+ qwen2_5-coder-7b-instruct-q4_K_M filter=lfs diff=lfs merge=lfs -text
40
+ qwen2_5-coder-7b-instruct-q5_K_M filter=lfs diff=lfs merge=lfs -text
qwen2_5-coder-7b-instruct-q3_K_M ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8048ed9af82c4f50978da319ba6bfdacfe9140b83a927fe0a7aa805e4ce75c1d
3
+ size 3808391680
qwen2_5-coder-7b-instruct-q3_K_M.modelfile ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM qwen2_5-coder-7b-instruct-q3_K_M
2
+
3
+ TEMPLATE """
4
+ {{- if .Suffix }}<|fim_prefix|>{{ .Prompt }}<|fim_suffix|>{{ .Suffix }}<|fim_middle|>
5
+ {{- else if .Messages }}
6
+ {{- if or .System .Tools }}<|im_start|>system
7
+ {{- if .System }}
8
+ {{ .System }}
9
+ {{- end }}
10
+ {{- if .Tools }}
11
+
12
+ # Tools
13
+
14
+ You may call one or more functions to assist with the user query.
15
+
16
+ You are provided with function signatures within <tools></tools> XML tags:
17
+ <tools>
18
+ {{- range .Tools }}
19
+ {"type": "function", "function": {{ .Function }}}
20
+ {{- end }}
21
+ </tools>
22
+
23
+ For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
24
+ <tool_call>
25
+ {"name": <function-name>, "arguments": <args-json-object>}
26
+ </tool_call>
27
+ {{- end }}<|im_end|>
28
+ {{ end }}
29
+ {{- range $i, $_ := .Messages }}
30
+ {{- $last := eq (len (slice $.Messages $i)) 1 -}}
31
+ {{- if eq .Role "user" }}<|im_start|>user
32
+ {{ .Content }}<|im_end|>
33
+ {{ else if eq .Role "assistant" }}<|im_start|>assistant
34
+ {{ if .Content }}{{ .Content }}
35
+ {{- else if .ToolCalls }}<tool_call>
36
+ {{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
37
+ {{ end }}</tool_call>
38
+ {{- end }}{{ if not $last }}<|im_end|>
39
+ {{ end }}
40
+ {{- else if eq .Role "tool" }}<|im_start|>user
41
+ <tool_response>
42
+ {{ .Content }}
43
+ </tool_response><|im_end|>
44
+ {{ end }}
45
+ {{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
46
+ {{ end }}
47
+ {{- end }}
48
+ {{- else }}
49
+ {{- if .System }}<|im_start|>system
50
+ {{ .System }}<|im_end|>
51
+ {{ end }}{{ if .Prompt }}<|im_start|>user
52
+ {{ .Prompt }}<|im_end|>
53
+ {{ end }}<|im_start|>assistant
54
+ {{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}
55
+ """
56
+
57
+ SYSTEM """You are a helpful AI assistant. The user you are helping speaks Traditional Chinese and comes from Taiwan."""
58
+
59
+ PARAMETER temperature 0
60
+ PARAMETER stop <|endoftext|>
61
+
62
+ LICENSE """
63
+ Apache License
64
+ Version 2.0, January 2004
65
+ http://www.apache.org/licenses/
66
+
67
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
68
+
69
+ 1. Definitions.
70
+
71
+ "License" shall mean the terms and conditions for use, reproduction,
72
+ and distribution as defined by Sections 1 through 9 of this document.
73
+
74
+ "Licensor" shall mean the copyright owner or entity authorized by
75
+ the copyright owner that is granting the License.
76
+
77
+ "Legal Entity" shall mean the union of the acting entity and all
78
+ other entities that control, are controlled by, or are under common
79
+ control with that entity. For the purposes of this definition,
80
+ "control" means (i) the power, direct or indirect, to cause the
81
+ direction or management of such entity, whether by contract or
82
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
83
+ outstanding shares, or (iii) beneficial ownership of such entity.
84
+
85
+ "You" (or "Your") shall mean an individual or Legal Entity
86
+ exercising permissions granted by this License.
87
+
88
+ "Source" form shall mean the preferred form for making modifications,
89
+ including but not limited to software source code, documentation
90
+ source, and configuration files.
91
+
92
+ "Object" form shall mean any form resulting from mechanical
93
+ transformation or translation of a Source form, including but
94
+ not limited to compiled object code, generated documentation,
95
+ and conversions to other media types.
96
+
97
+ "Work" shall mean the work of authorship, whether in Source or
98
+ Object form, made available under the License, as indicated by a
99
+ copyright notice that is included in or attached to the work
100
+ (an example is provided in the Appendix below).
101
+
102
+ "Derivative Works" shall mean any work, whether in Source or Object
103
+ form, that is based on (or derived from) the Work and for which the
104
+ editorial revisions, annotations, elaborations, or other modifications
105
+ represent, as a whole, an original work of authorship. For the purposes
106
+ of this License, Derivative Works shall not include works that remain
107
+ separable from, or merely link (or bind by name) to the interfaces of,
108
+ the Work and Derivative Works thereof.
109
+
110
+ "Contribution" shall mean any work of authorship, including
111
+ the original version of the Work and any modifications or additions
112
+ to that Work or Derivative Works thereof, that is intentionally
113
+ submitted to Licensor for inclusion in the Work by the copyright owner
114
+ or by an individual or Legal Entity authorized to submit on behalf of
115
+ the copyright owner. For the purposes of this definition, "submitted"
116
+ means any form of electronic, verbal, or written communication sent
117
+ to the Licensor or its representatives, including but not limited to
118
+ communication on electronic mailing lists, source code control systems,
119
+ and issue tracking systems that are managed by, or on behalf of, the
120
+ Licensor for the purpose of discussing and improving the Work, but
121
+ excluding communication that is conspicuously marked or otherwise
122
+ designated in writing by the copyright owner as "Not a Contribution."
123
+
124
+ "Contributor" shall mean Licensor and any individual or Legal Entity
125
+ on behalf of whom a Contribution has been received by Licensor and
126
+ subsequently incorporated within the Work.
127
+
128
+ 2. Grant of Copyright License. Subject to the terms and conditions of
129
+ this License, each Contributor hereby grants to You a perpetual,
130
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
131
+ copyright license to reproduce, prepare Derivative Works of,
132
+ publicly display, publicly perform, sublicense, and distribute the
133
+ Work and such Derivative Works in Source or Object form.
134
+
135
+ 3. Grant of Patent License. Subject to the terms and conditions of
136
+ this License, each Contributor hereby grants to You a perpetual,
137
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
138
+ (except as stated in this section) patent license to make, have made,
139
+ use, offer to sell, sell, import, and otherwise transfer the Work,
140
+ where such license applies only to those patent claims licensable
141
+ by such Contributor that are necessarily infringed by their
142
+ Contribution(s) alone or by combination of their Contribution(s)
143
+ with the Work to which such Contribution(s) was submitted. If You
144
+ institute patent litigation against any entity (including a
145
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
146
+ or a Contribution incorporated within the Work constitutes direct
147
+ or contributory patent infringement, then any patent licenses
148
+ granted to You under this License for that Work shall terminate
149
+ as of the date such litigation is filed.
150
+
151
+ 4. Redistribution. You may reproduce and distribute copies of the
152
+ Work or Derivative Works thereof in any medium, with or without
153
+ modifications, and in Source or Object form, provided that You
154
+ meet the following conditions:
155
+
156
+ (a) You must give any other recipients of the Work or
157
+ Derivative Works a copy of this License; and
158
+
159
+ (b) You must cause any modified files to carry prominent notices
160
+ stating that You changed the files; and
161
+
162
+ (c) You must retain, in the Source form of any Derivative Works
163
+ that You distribute, all copyright, patent, trademark, and
164
+ attribution notices from the Source form of the Work,
165
+ excluding those notices that do not pertain to any part of
166
+ the Derivative Works; and
167
+
168
+ (d) If the Work includes a "NOTICE" text file as part of its
169
+ distribution, then any Derivative Works that You distribute must
170
+ include a readable copy of the attribution notices contained
171
+ within such NOTICE file, excluding those notices that do not
172
+ pertain to any part of the Derivative Works, in at least one
173
+ of the following places: within a NOTICE text file distributed
174
+ as part of the Derivative Works; within the Source form or
175
+ documentation, if provided along with the Derivative Works; or,
176
+ within a display generated by the Derivative Works, if and
177
+ wherever such third-party notices normally appear. The contents
178
+ of the NOTICE file are for informational purposes only and
179
+ do not modify the License. You may add Your own attribution
180
+ notices within Derivative Works that You distribute, alongside
181
+ or as an addendum to the NOTICE text from the Work, provided
182
+ that such additional attribution notices cannot be construed
183
+ as modifying the License.
184
+
185
+ You may add Your own copyright statement to Your modifications and
186
+ may provide additional or different license terms and conditions
187
+ for use, reproduction, or distribution of Your modifications, or
188
+ for any such Derivative Works as a whole, provided Your use,
189
+ reproduction, and distribution of the Work otherwise complies with
190
+ the conditions stated in this License.
191
+
192
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
193
+ any Contribution intentionally submitted for inclusion in the Work
194
+ by You to the Licensor shall be under the terms and conditions of
195
+ this License, without any additional terms or conditions.
196
+ Notwithstanding the above, nothing herein shall supersede or modify
197
+ the terms of any separate license agreement you may have executed
198
+ with Licensor regarding such Contributions.
199
+
200
+ 6. Trademarks. This License does not grant permission to use the trade
201
+ names, trademarks, service marks, or product names of the Licensor,
202
+ except as required for reasonable and customary use in describing the
203
+ origin of the Work and reproducing the content of the NOTICE file.
204
+
205
+ 7. Disclaimer of Warranty. Unless required by applicable law or
206
+ agreed to in writing, Licensor provides the Work (and each
207
+ Contributor provides its Contributions) on an "AS IS" BASIS,
208
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
209
+ implied, including, without limitation, any warranties or conditions
210
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
211
+ PARTICULAR PURPOSE. You are solely responsible for determining the
212
+ appropriateness of using or redistributing the Work and assume any
213
+ risks associated with Your exercise of permissions under this License.
214
+
215
+ 8. Limitation of Liability. In no event and under no legal theory,
216
+ whether in tort (including negligence), contract, or otherwise,
217
+ unless required by applicable law (such as deliberate and grossly
218
+ negligent acts) or agreed to in writing, shall any Contributor be
219
+ liable to You for damages, including any direct, indirect, special,
220
+ incidental, or consequential damages of any character arising as a
221
+ result of this License or out of the use or inability to use the
222
+ Work (including but not limited to damages for loss of goodwill,
223
+ work stoppage, computer failure or malfunction, or any and all
224
+ other commercial damages or losses), even if such Contributor
225
+ has been advised of the possibility of such damages.
226
+
227
+ 9. Accepting Warranty or Additional Liability. While redistributing
228
+ the Work or Derivative Works thereof, You may choose to offer,
229
+ and charge a fee for, acceptance of support, warranty, indemnity,
230
+ or other liability obligations and/or rights consistent with this
231
+ License. However, in accepting such obligations, You may act only
232
+ on Your own behalf and on Your sole responsibility, not on behalf
233
+ of any other Contributor, and only if You agree to indemnify,
234
+ defend, and hold each Contributor harmless for any liability
235
+ incurred by, or claims asserted against, such Contributor by reason
236
+ of your accepting any such warranty or additional liability.
237
+
238
+ END OF TERMS AND CONDITIONS
239
+
240
+ APPENDIX: How to apply the Apache License to your work.
241
+
242
+ To apply the Apache License to your work, attach the following
243
+ boilerplate notice, with the fields enclosed by brackets "[]"
244
+ replaced with your own identifying information. (Don't include
245
+ the brackets!) The text should be enclosed in the appropriate
246
+ comment syntax for the file format. We also recommend that a
247
+ file or class name and description of purpose be included on the
248
+ same "printed page" as the copyright notice for easier
249
+ identification within third-party archives.
250
+
251
+ Copyright 2024 Alibaba Cloud
252
+
253
+ Licensed under the Apache License, Version 2.0 (the "License");
254
+ you may not use this file except in compliance with the License.
255
+ You may obtain a copy of the License at
256
+
257
+ http://www.apache.org/licenses/LICENSE-2.0
258
+
259
+ Unless required by applicable law or agreed to in writing, software
260
+ distributed under the License is distributed on an "AS IS" BASIS,
261
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
262
+ See the License for the specific language governing permissions and
263
+ limitations under the License.
264
+ """
qwen2_5-coder-7b-instruct-q4_K_M ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ced7796abcbb47ef96412198ebd31ac1eca21e8bbc831d72a31df69e4a30aad5
3
+ size 4683074048
qwen2_5-coder-7b-instruct-q4_K_M.modelfile ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM qwen2_5-coder-7b-instruct-q4_K_M
2
+
3
+ TEMPLATE """
4
+ {{- if .Suffix }}<|fim_prefix|>{{ .Prompt }}<|fim_suffix|>{{ .Suffix }}<|fim_middle|>
5
+ {{- else if .Messages }}
6
+ {{- if or .System .Tools }}<|im_start|>system
7
+ {{- if .System }}
8
+ {{ .System }}
9
+ {{- end }}
10
+ {{- if .Tools }}
11
+
12
+ # Tools
13
+
14
+ You may call one or more functions to assist with the user query.
15
+
16
+ You are provided with function signatures within <tools></tools> XML tags:
17
+ <tools>
18
+ {{- range .Tools }}
19
+ {"type": "function", "function": {{ .Function }}}
20
+ {{- end }}
21
+ </tools>
22
+
23
+ For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
24
+ <tool_call>
25
+ {"name": <function-name>, "arguments": <args-json-object>}
26
+ </tool_call>
27
+ {{- end }}<|im_end|>
28
+ {{ end }}
29
+ {{- range $i, $_ := .Messages }}
30
+ {{- $last := eq (len (slice $.Messages $i)) 1 -}}
31
+ {{- if eq .Role "user" }}<|im_start|>user
32
+ {{ .Content }}<|im_end|>
33
+ {{ else if eq .Role "assistant" }}<|im_start|>assistant
34
+ {{ if .Content }}{{ .Content }}
35
+ {{- else if .ToolCalls }}<tool_call>
36
+ {{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
37
+ {{ end }}</tool_call>
38
+ {{- end }}{{ if not $last }}<|im_end|>
39
+ {{ end }}
40
+ {{- else if eq .Role "tool" }}<|im_start|>user
41
+ <tool_response>
42
+ {{ .Content }}
43
+ </tool_response><|im_end|>
44
+ {{ end }}
45
+ {{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
46
+ {{ end }}
47
+ {{- end }}
48
+ {{- else }}
49
+ {{- if .System }}<|im_start|>system
50
+ {{ .System }}<|im_end|>
51
+ {{ end }}{{ if .Prompt }}<|im_start|>user
52
+ {{ .Prompt }}<|im_end|>
53
+ {{ end }}<|im_start|>assistant
54
+ {{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}
55
+ """
56
+
57
+ SYSTEM """You are a helpful AI assistant. The user you are helping speaks Traditional Chinese and comes from Taiwan."""
58
+
59
+ PARAMETER temperature 0
60
+ PARAMETER stop <|endoftext|>
61
+
62
+ LICENSE """
63
+ Apache License
64
+ Version 2.0, January 2004
65
+ http://www.apache.org/licenses/
66
+
67
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
68
+
69
+ 1. Definitions.
70
+
71
+ "License" shall mean the terms and conditions for use, reproduction,
72
+ and distribution as defined by Sections 1 through 9 of this document.
73
+
74
+ "Licensor" shall mean the copyright owner or entity authorized by
75
+ the copyright owner that is granting the License.
76
+
77
+ "Legal Entity" shall mean the union of the acting entity and all
78
+ other entities that control, are controlled by, or are under common
79
+ control with that entity. For the purposes of this definition,
80
+ "control" means (i) the power, direct or indirect, to cause the
81
+ direction or management of such entity, whether by contract or
82
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
83
+ outstanding shares, or (iii) beneficial ownership of such entity.
84
+
85
+ "You" (or "Your") shall mean an individual or Legal Entity
86
+ exercising permissions granted by this License.
87
+
88
+ "Source" form shall mean the preferred form for making modifications,
89
+ including but not limited to software source code, documentation
90
+ source, and configuration files.
91
+
92
+ "Object" form shall mean any form resulting from mechanical
93
+ transformation or translation of a Source form, including but
94
+ not limited to compiled object code, generated documentation,
95
+ and conversions to other media types.
96
+
97
+ "Work" shall mean the work of authorship, whether in Source or
98
+ Object form, made available under the License, as indicated by a
99
+ copyright notice that is included in or attached to the work
100
+ (an example is provided in the Appendix below).
101
+
102
+ "Derivative Works" shall mean any work, whether in Source or Object
103
+ form, that is based on (or derived from) the Work and for which the
104
+ editorial revisions, annotations, elaborations, or other modifications
105
+ represent, as a whole, an original work of authorship. For the purposes
106
+ of this License, Derivative Works shall not include works that remain
107
+ separable from, or merely link (or bind by name) to the interfaces of,
108
+ the Work and Derivative Works thereof.
109
+
110
+ "Contribution" shall mean any work of authorship, including
111
+ the original version of the Work and any modifications or additions
112
+ to that Work or Derivative Works thereof, that is intentionally
113
+ submitted to Licensor for inclusion in the Work by the copyright owner
114
+ or by an individual or Legal Entity authorized to submit on behalf of
115
+ the copyright owner. For the purposes of this definition, "submitted"
116
+ means any form of electronic, verbal, or written communication sent
117
+ to the Licensor or its representatives, including but not limited to
118
+ communication on electronic mailing lists, source code control systems,
119
+ and issue tracking systems that are managed by, or on behalf of, the
120
+ Licensor for the purpose of discussing and improving the Work, but
121
+ excluding communication that is conspicuously marked or otherwise
122
+ designated in writing by the copyright owner as "Not a Contribution."
123
+
124
+ "Contributor" shall mean Licensor and any individual or Legal Entity
125
+ on behalf of whom a Contribution has been received by Licensor and
126
+ subsequently incorporated within the Work.
127
+
128
+ 2. Grant of Copyright License. Subject to the terms and conditions of
129
+ this License, each Contributor hereby grants to You a perpetual,
130
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
131
+ copyright license to reproduce, prepare Derivative Works of,
132
+ publicly display, publicly perform, sublicense, and distribute the
133
+ Work and such Derivative Works in Source or Object form.
134
+
135
+ 3. Grant of Patent License. Subject to the terms and conditions of
136
+ this License, each Contributor hereby grants to You a perpetual,
137
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
138
+ (except as stated in this section) patent license to make, have made,
139
+ use, offer to sell, sell, import, and otherwise transfer the Work,
140
+ where such license applies only to those patent claims licensable
141
+ by such Contributor that are necessarily infringed by their
142
+ Contribution(s) alone or by combination of their Contribution(s)
143
+ with the Work to which such Contribution(s) was submitted. If You
144
+ institute patent litigation against any entity (including a
145
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
146
+ or a Contribution incorporated within the Work constitutes direct
147
+ or contributory patent infringement, then any patent licenses
148
+ granted to You under this License for that Work shall terminate
149
+ as of the date such litigation is filed.
150
+
151
+ 4. Redistribution. You may reproduce and distribute copies of the
152
+ Work or Derivative Works thereof in any medium, with or without
153
+ modifications, and in Source or Object form, provided that You
154
+ meet the following conditions:
155
+
156
+ (a) You must give any other recipients of the Work or
157
+ Derivative Works a copy of this License; and
158
+
159
+ (b) You must cause any modified files to carry prominent notices
160
+ stating that You changed the files; and
161
+
162
+ (c) You must retain, in the Source form of any Derivative Works
163
+ that You distribute, all copyright, patent, trademark, and
164
+ attribution notices from the Source form of the Work,
165
+ excluding those notices that do not pertain to any part of
166
+ the Derivative Works; and
167
+
168
+ (d) If the Work includes a "NOTICE" text file as part of its
169
+ distribution, then any Derivative Works that You distribute must
170
+ include a readable copy of the attribution notices contained
171
+ within such NOTICE file, excluding those notices that do not
172
+ pertain to any part of the Derivative Works, in at least one
173
+ of the following places: within a NOTICE text file distributed
174
+ as part of the Derivative Works; within the Source form or
175
+ documentation, if provided along with the Derivative Works; or,
176
+ within a display generated by the Derivative Works, if and
177
+ wherever such third-party notices normally appear. The contents
178
+ of the NOTICE file are for informational purposes only and
179
+ do not modify the License. You may add Your own attribution
180
+ notices within Derivative Works that You distribute, alongside
181
+ or as an addendum to the NOTICE text from the Work, provided
182
+ that such additional attribution notices cannot be construed
183
+ as modifying the License.
184
+
185
+ You may add Your own copyright statement to Your modifications and
186
+ may provide additional or different license terms and conditions
187
+ for use, reproduction, or distribution of Your modifications, or
188
+ for any such Derivative Works as a whole, provided Your use,
189
+ reproduction, and distribution of the Work otherwise complies with
190
+ the conditions stated in this License.
191
+
192
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
193
+ any Contribution intentionally submitted for inclusion in the Work
194
+ by You to the Licensor shall be under the terms and conditions of
195
+ this License, without any additional terms or conditions.
196
+ Notwithstanding the above, nothing herein shall supersede or modify
197
+ the terms of any separate license agreement you may have executed
198
+ with Licensor regarding such Contributions.
199
+
200
+ 6. Trademarks. This License does not grant permission to use the trade
201
+ names, trademarks, service marks, or product names of the Licensor,
202
+ except as required for reasonable and customary use in describing the
203
+ origin of the Work and reproducing the content of the NOTICE file.
204
+
205
+ 7. Disclaimer of Warranty. Unless required by applicable law or
206
+ agreed to in writing, Licensor provides the Work (and each
207
+ Contributor provides its Contributions) on an "AS IS" BASIS,
208
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
209
+ implied, including, without limitation, any warranties or conditions
210
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
211
+ PARTICULAR PURPOSE. You are solely responsible for determining the
212
+ appropriateness of using or redistributing the Work and assume any
213
+ risks associated with Your exercise of permissions under this License.
214
+
215
+ 8. Limitation of Liability. In no event and under no legal theory,
216
+ whether in tort (including negligence), contract, or otherwise,
217
+ unless required by applicable law (such as deliberate and grossly
218
+ negligent acts) or agreed to in writing, shall any Contributor be
219
+ liable to You for damages, including any direct, indirect, special,
220
+ incidental, or consequential damages of any character arising as a
221
+ result of this License or out of the use or inability to use the
222
+ Work (including but not limited to damages for loss of goodwill,
223
+ work stoppage, computer failure or malfunction, or any and all
224
+ other commercial damages or losses), even if such Contributor
225
+ has been advised of the possibility of such damages.
226
+
227
+ 9. Accepting Warranty or Additional Liability. While redistributing
228
+ the Work or Derivative Works thereof, You may choose to offer,
229
+ and charge a fee for, acceptance of support, warranty, indemnity,
230
+ or other liability obligations and/or rights consistent with this
231
+ License. However, in accepting such obligations, You may act only
232
+ on Your own behalf and on Your sole responsibility, not on behalf
233
+ of any other Contributor, and only if You agree to indemnify,
234
+ defend, and hold each Contributor harmless for any liability
235
+ incurred by, or claims asserted against, such Contributor by reason
236
+ of your accepting any such warranty or additional liability.
237
+
238
+ END OF TERMS AND CONDITIONS
239
+
240
+ APPENDIX: How to apply the Apache License to your work.
241
+
242
+ To apply the Apache License to your work, attach the following
243
+ boilerplate notice, with the fields enclosed by brackets "[]"
244
+ replaced with your own identifying information. (Don't include
245
+ the brackets!) The text should be enclosed in the appropriate
246
+ comment syntax for the file format. We also recommend that a
247
+ file or class name and description of purpose be included on the
248
+ same "printed page" as the copyright notice for easier
249
+ identification within third-party archives.
250
+
251
+ Copyright 2024 Alibaba Cloud
252
+
253
+ Licensed under the Apache License, Version 2.0 (the "License");
254
+ you may not use this file except in compliance with the License.
255
+ You may obtain a copy of the License at
256
+
257
+ http://www.apache.org/licenses/LICENSE-2.0
258
+
259
+ Unless required by applicable law or agreed to in writing, software
260
+ distributed under the License is distributed on an "AS IS" BASIS,
261
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
262
+ See the License for the specific language governing permissions and
263
+ limitations under the License.
264
+ """
qwen2_5-coder-7b-instruct-q5_K_M ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da1f6219420bd7230c6d324b07618440453fc72c506dfb48ca2486d57cf60831
3
+ size 5444831744
qwen2_5-coder-7b-instruct-q5_K_M.modelfile ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM qwen2_5-coder-7b-instruct-q5_K_M
2
+
3
+ TEMPLATE """
4
+ {{- if .Suffix }}<|fim_prefix|>{{ .Prompt }}<|fim_suffix|>{{ .Suffix }}<|fim_middle|>
5
+ {{- else if .Messages }}
6
+ {{- if or .System .Tools }}<|im_start|>system
7
+ {{- if .System }}
8
+ {{ .System }}
9
+ {{- end }}
10
+ {{- if .Tools }}
11
+
12
+ # Tools
13
+
14
+ You may call one or more functions to assist with the user query.
15
+
16
+ You are provided with function signatures within <tools></tools> XML tags:
17
+ <tools>
18
+ {{- range .Tools }}
19
+ {"type": "function", "function": {{ .Function }}}
20
+ {{- end }}
21
+ </tools>
22
+
23
+ For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
24
+ <tool_call>
25
+ {"name": <function-name>, "arguments": <args-json-object>}
26
+ </tool_call>
27
+ {{- end }}<|im_end|>
28
+ {{ end }}
29
+ {{- range $i, $_ := .Messages }}
30
+ {{- $last := eq (len (slice $.Messages $i)) 1 -}}
31
+ {{- if eq .Role "user" }}<|im_start|>user
32
+ {{ .Content }}<|im_end|>
33
+ {{ else if eq .Role "assistant" }}<|im_start|>assistant
34
+ {{ if .Content }}{{ .Content }}
35
+ {{- else if .ToolCalls }}<tool_call>
36
+ {{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
37
+ {{ end }}</tool_call>
38
+ {{- end }}{{ if not $last }}<|im_end|>
39
+ {{ end }}
40
+ {{- else if eq .Role "tool" }}<|im_start|>user
41
+ <tool_response>
42
+ {{ .Content }}
43
+ </tool_response><|im_end|>
44
+ {{ end }}
45
+ {{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
46
+ {{ end }}
47
+ {{- end }}
48
+ {{- else }}
49
+ {{- if .System }}<|im_start|>system
50
+ {{ .System }}<|im_end|>
51
+ {{ end }}{{ if .Prompt }}<|im_start|>user
52
+ {{ .Prompt }}<|im_end|>
53
+ {{ end }}<|im_start|>assistant
54
+ {{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}
55
+ """
56
+
57
+ SYSTEM """You are a helpful AI assistant. The user you are helping speaks Traditional Chinese and comes from Taiwan."""
58
+
59
+ PARAMETER temperature 0
60
+ PARAMETER stop <|endoftext|>
61
+
62
+ LICENSE """
63
+ Apache License
64
+ Version 2.0, January 2004
65
+ http://www.apache.org/licenses/
66
+
67
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
68
+
69
+ 1. Definitions.
70
+
71
+ "License" shall mean the terms and conditions for use, reproduction,
72
+ and distribution as defined by Sections 1 through 9 of this document.
73
+
74
+ "Licensor" shall mean the copyright owner or entity authorized by
75
+ the copyright owner that is granting the License.
76
+
77
+ "Legal Entity" shall mean the union of the acting entity and all
78
+ other entities that control, are controlled by, or are under common
79
+ control with that entity. For the purposes of this definition,
80
+ "control" means (i) the power, direct or indirect, to cause the
81
+ direction or management of such entity, whether by contract or
82
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
83
+ outstanding shares, or (iii) beneficial ownership of such entity.
84
+
85
+ "You" (or "Your") shall mean an individual or Legal Entity
86
+ exercising permissions granted by this License.
87
+
88
+ "Source" form shall mean the preferred form for making modifications,
89
+ including but not limited to software source code, documentation
90
+ source, and configuration files.
91
+
92
+ "Object" form shall mean any form resulting from mechanical
93
+ transformation or translation of a Source form, including but
94
+ not limited to compiled object code, generated documentation,
95
+ and conversions to other media types.
96
+
97
+ "Work" shall mean the work of authorship, whether in Source or
98
+ Object form, made available under the License, as indicated by a
99
+ copyright notice that is included in or attached to the work
100
+ (an example is provided in the Appendix below).
101
+
102
+ "Derivative Works" shall mean any work, whether in Source or Object
103
+ form, that is based on (or derived from) the Work and for which the
104
+ editorial revisions, annotations, elaborations, or other modifications
105
+ represent, as a whole, an original work of authorship. For the purposes
106
+ of this License, Derivative Works shall not include works that remain
107
+ separable from, or merely link (or bind by name) to the interfaces of,
108
+ the Work and Derivative Works thereof.
109
+
110
+ "Contribution" shall mean any work of authorship, including
111
+ the original version of the Work and any modifications or additions
112
+ to that Work or Derivative Works thereof, that is intentionally
113
+ submitted to Licensor for inclusion in the Work by the copyright owner
114
+ or by an individual or Legal Entity authorized to submit on behalf of
115
+ the copyright owner. For the purposes of this definition, "submitted"
116
+ means any form of electronic, verbal, or written communication sent
117
+ to the Licensor or its representatives, including but not limited to
118
+ communication on electronic mailing lists, source code control systems,
119
+ and issue tracking systems that are managed by, or on behalf of, the
120
+ Licensor for the purpose of discussing and improving the Work, but
121
+ excluding communication that is conspicuously marked or otherwise
122
+ designated in writing by the copyright owner as "Not a Contribution."
123
+
124
+ "Contributor" shall mean Licensor and any individual or Legal Entity
125
+ on behalf of whom a Contribution has been received by Licensor and
126
+ subsequently incorporated within the Work.
127
+
128
+ 2. Grant of Copyright License. Subject to the terms and conditions of
129
+ this License, each Contributor hereby grants to You a perpetual,
130
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
131
+ copyright license to reproduce, prepare Derivative Works of,
132
+ publicly display, publicly perform, sublicense, and distribute the
133
+ Work and such Derivative Works in Source or Object form.
134
+
135
+ 3. Grant of Patent License. Subject to the terms and conditions of
136
+ this License, each Contributor hereby grants to You a perpetual,
137
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
138
+ (except as stated in this section) patent license to make, have made,
139
+ use, offer to sell, sell, import, and otherwise transfer the Work,
140
+ where such license applies only to those patent claims licensable
141
+ by such Contributor that are necessarily infringed by their
142
+ Contribution(s) alone or by combination of their Contribution(s)
143
+ with the Work to which such Contribution(s) was submitted. If You
144
+ institute patent litigation against any entity (including a
145
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
146
+ or a Contribution incorporated within the Work constitutes direct
147
+ or contributory patent infringement, then any patent licenses
148
+ granted to You under this License for that Work shall terminate
149
+ as of the date such litigation is filed.
150
+
151
+ 4. Redistribution. You may reproduce and distribute copies of the
152
+ Work or Derivative Works thereof in any medium, with or without
153
+ modifications, and in Source or Object form, provided that You
154
+ meet the following conditions:
155
+
156
+ (a) You must give any other recipients of the Work or
157
+ Derivative Works a copy of this License; and
158
+
159
+ (b) You must cause any modified files to carry prominent notices
160
+ stating that You changed the files; and
161
+
162
+ (c) You must retain, in the Source form of any Derivative Works
163
+ that You distribute, all copyright, patent, trademark, and
164
+ attribution notices from the Source form of the Work,
165
+ excluding those notices that do not pertain to any part of
166
+ the Derivative Works; and
167
+
168
+ (d) If the Work includes a "NOTICE" text file as part of its
169
+ distribution, then any Derivative Works that You distribute must
170
+ include a readable copy of the attribution notices contained
171
+ within such NOTICE file, excluding those notices that do not
172
+ pertain to any part of the Derivative Works, in at least one
173
+ of the following places: within a NOTICE text file distributed
174
+ as part of the Derivative Works; within the Source form or
175
+ documentation, if provided along with the Derivative Works; or,
176
+ within a display generated by the Derivative Works, if and
177
+ wherever such third-party notices normally appear. The contents
178
+ of the NOTICE file are for informational purposes only and
179
+ do not modify the License. You may add Your own attribution
180
+ notices within Derivative Works that You distribute, alongside
181
+ or as an addendum to the NOTICE text from the Work, provided
182
+ that such additional attribution notices cannot be construed
183
+ as modifying the License.
184
+
185
+ You may add Your own copyright statement to Your modifications and
186
+ may provide additional or different license terms and conditions
187
+ for use, reproduction, or distribution of Your modifications, or
188
+ for any such Derivative Works as a whole, provided Your use,
189
+ reproduction, and distribution of the Work otherwise complies with
190
+ the conditions stated in this License.
191
+
192
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
193
+ any Contribution intentionally submitted for inclusion in the Work
194
+ by You to the Licensor shall be under the terms and conditions of
195
+ this License, without any additional terms or conditions.
196
+ Notwithstanding the above, nothing herein shall supersede or modify
197
+ the terms of any separate license agreement you may have executed
198
+ with Licensor regarding such Contributions.
199
+
200
+ 6. Trademarks. This License does not grant permission to use the trade
201
+ names, trademarks, service marks, or product names of the Licensor,
202
+ except as required for reasonable and customary use in describing the
203
+ origin of the Work and reproducing the content of the NOTICE file.
204
+
205
+ 7. Disclaimer of Warranty. Unless required by applicable law or
206
+ agreed to in writing, Licensor provides the Work (and each
207
+ Contributor provides its Contributions) on an "AS IS" BASIS,
208
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
209
+ implied, including, without limitation, any warranties or conditions
210
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
211
+ PARTICULAR PURPOSE. You are solely responsible for determining the
212
+ appropriateness of using or redistributing the Work and assume any
213
+ risks associated with Your exercise of permissions under this License.
214
+
215
+ 8. Limitation of Liability. In no event and under no legal theory,
216
+ whether in tort (including negligence), contract, or otherwise,
217
+ unless required by applicable law (such as deliberate and grossly
218
+ negligent acts) or agreed to in writing, shall any Contributor be
219
+ liable to You for damages, including any direct, indirect, special,
220
+ incidental, or consequential damages of any character arising as a
221
+ result of this License or out of the use or inability to use the
222
+ Work (including but not limited to damages for loss of goodwill,
223
+ work stoppage, computer failure or malfunction, or any and all
224
+ other commercial damages or losses), even if such Contributor
225
+ has been advised of the possibility of such damages.
226
+
227
+ 9. Accepting Warranty or Additional Liability. While redistributing
228
+ the Work or Derivative Works thereof, You may choose to offer,
229
+ and charge a fee for, acceptance of support, warranty, indemnity,
230
+ or other liability obligations and/or rights consistent with this
231
+ License. However, in accepting such obligations, You may act only
232
+ on Your own behalf and on Your sole responsibility, not on behalf
233
+ of any other Contributor, and only if You agree to indemnify,
234
+ defend, and hold each Contributor harmless for any liability
235
+ incurred by, or claims asserted against, such Contributor by reason
236
+ of your accepting any such warranty or additional liability.
237
+
238
+ END OF TERMS AND CONDITIONS
239
+
240
+ APPENDIX: How to apply the Apache License to your work.
241
+
242
+ To apply the Apache License to your work, attach the following
243
+ boilerplate notice, with the fields enclosed by brackets "[]"
244
+ replaced with your own identifying information. (Don't include
245
+ the brackets!) The text should be enclosed in the appropriate
246
+ comment syntax for the file format. We also recommend that a
247
+ file or class name and description of purpose be included on the
248
+ same "printed page" as the copyright notice for easier
249
+ identification within third-party archives.
250
+
251
+ Copyright 2024 Alibaba Cloud
252
+
253
+ Licensed under the Apache License, Version 2.0 (the "License");
254
+ you may not use this file except in compliance with the License.
255
+ You may obtain a copy of the License at
256
+
257
+ http://www.apache.org/licenses/LICENSE-2.0
258
+
259
+ Unless required by applicable law or agreed to in writing, software
260
+ distributed under the License is distributed on an "AS IS" BASIS,
261
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
262
+ See the License for the specific language governing permissions and
263
+ limitations under the License.
264
+ """