npario chimingw commited on
Commit
86f4b29
·
0 Parent(s):

Duplicate from chimingw/Qwen3.8-27B-Uncensored-OrcaRouter-MLX-8bit

Browse files

Co-authored-by: chiming wang <chimingw@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
ARTIFACT-MANIFEST.json ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "baseline_revision": "13137955862a8aa7de46aaa87dbc3603f6520931",
3
+ "captured_baseline": {
4
+ "manifest_path": "/root/orcarouter-f16-control/public-baseline/chimingw__Qwen3.8-27B-Uncensored-OrcaRouter-MLX-8bit.json",
5
+ "manifest_sha256": "33d39b0e4d0210de47dfa1f1d029c59d0107f29864ef04b834ee699204c369ee"
6
+ },
7
+ "complete": true,
8
+ "destination_repo": "chimingw/Qwen3.8-27B-Uncensored-OrcaRouter-MLX-8bit",
9
+ "files": {
10
+ "LINEAGE.json": {
11
+ "sha256": "8b885ae9ca94230dcfc45a57a214a75990b54652442df53b79493705bf0fad2f",
12
+ "size": 1141
13
+ },
14
+ "RUNTIME-REQUIREMENTS.json": {
15
+ "sha256": "1ea7abac8c89f84aeb602549395553c9cf3110f6f84ddfb4a040b161ad543676",
16
+ "size": 945
17
+ },
18
+ "config.json": {
19
+ "sha256": "bfa5aaeee3e36c859151f7b2d95b6ad0e23ad9b56bf5e47fd054b0bf223d20ec",
20
+ "size": 3810
21
+ },
22
+ "model-00001-of-00007.safetensors": {
23
+ "sha256": "95b2538f7521ec1912a6ae7e33748f3d4dd615daa3e8270ed95ed0dec3b63498",
24
+ "size": 4831439056
25
+ },
26
+ "model-00002-of-00007.safetensors": {
27
+ "sha256": "d6f2feec87c865e400fc5abb60d4cb54ea803e0376661cb3bff2653aa3b2ddbb",
28
+ "size": 4852372272
29
+ },
30
+ "model-00003-of-00007.safetensors": {
31
+ "sha256": "818a342a50927634d8433fbfd78944acb86c50d5c475e5918de2e955863c092d",
32
+ "size": 4840627800
33
+ },
34
+ "model-00004-of-00007.safetensors": {
35
+ "sha256": "f12e8c23e9a0cbde62b979f7d6d253d292cf4dad100fef8682b96be78914832c",
36
+ "size": 4835657096
37
+ },
38
+ "model-00005-of-00007.safetensors": {
39
+ "sha256": "98ea59f0a17fada1177c5d38c446ca83d474be68b77d585653a99d849bcd7eae",
40
+ "size": 4880831896
41
+ },
42
+ "model-00006-of-00007.safetensors": {
43
+ "sha256": "d315b7aab32c87095a36ec98357c8649386add5511fb2e0fd8e6a7c6e3162176",
44
+ "size": 4840627360
45
+ },
46
+ "model-00007-of-00007.safetensors": {
47
+ "sha256": "dc5323be49315c5d471153e4ef6990a7364a35f284b67263c46de444112e954a",
48
+ "size": 2113414640
49
+ },
50
+ "model.safetensors.index.json": {
51
+ "sha256": "6c1a04a51398437e940855e1dab66ebfdcc4f4d4f0424fd7ebb4f322e5743dec",
52
+ "size": 212056
53
+ }
54
+ },
55
+ "patch_embedding_reconciliation": {
56
+ "bytes_per_slice": 3538944,
57
+ "distinct": true,
58
+ "dtype": "float32",
59
+ "output_shape": [
60
+ 1152,
61
+ 2,
62
+ 16,
63
+ 16,
64
+ 3
65
+ ],
66
+ "schema": 1,
67
+ "slice_0_sha256": "657b623622f3980ec286d95f098a118d61e04009938f73d63fd173f0a0a0df29",
68
+ "slice_0_source": "v.patch_embd.weight",
69
+ "slice_1_sha256": "c76d6c13a47f57fbd95b1400c8b9e46e0ef7698f19b7f702ad990e5ded8278cc",
70
+ "slice_1_source": "v.patch_embd.weight.1",
71
+ "slice_shape": [
72
+ 1152,
73
+ 3,
74
+ 16,
75
+ 16
76
+ ],
77
+ "transform": "stack [A,B] on source temporal axis 2, then transpose (0,2,3,4,1)"
78
+ },
79
+ "preserved_baseline_files": {
80
+ ".gitattributes": {
81
+ "path": ".gitattributes",
82
+ "sha256": "a0e948ca693c63e0b5139f66bd709003cbcf8bc764acb1ee687a552885c8fe2c",
83
+ "size": 101
84
+ },
85
+ "LICENSE": {
86
+ "path": "LICENSE",
87
+ "sha256": "bbedc3fda3305820b977265f01b8619d87570a6739de3a5582c3464840f1e57a",
88
+ "size": 11544
89
+ },
90
+ "chat_template.jinja": {
91
+ "path": "chat_template.jinja",
92
+ "sha256": "c3cf9e34abf4f9e36c2d72165aa9c132d3e2a725b6c2586aaa3a8af9d7a81041",
93
+ "size": 8952
94
+ },
95
+ "generation_config.json": {
96
+ "path": "generation_config.json",
97
+ "sha256": "e70c136c1b78ddc1fb0905bac8e733a4dc448d4f852a5dd75143fffc70be550e",
98
+ "size": 202
99
+ },
100
+ "merges.txt": {
101
+ "path": "merges.txt",
102
+ "sha256": "a9d356d7bdf1ef4949e3e748e95b8e10ad9d4e2e838eddc38a0a7b6b94d1db8d",
103
+ "size": 3353259
104
+ },
105
+ "preprocessor_config.json": {
106
+ "path": "preprocessor_config.json",
107
+ "sha256": "27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516",
108
+ "size": 390
109
+ },
110
+ "tokenizer.json": {
111
+ "path": "tokenizer.json",
112
+ "sha256": "0997f410c57a1f4e53b09e4be8f4a172d90edd9564368fb0847030937229b9f3",
113
+ "size": 12809320
114
+ },
115
+ "tokenizer_config.json": {
116
+ "path": "tokenizer_config.json",
117
+ "sha256": "b11349aafa7cdc6a320767cf7ceb29ed82f7eda5d65e8e0819e76f0ce947bf27",
118
+ "size": 17928
119
+ },
120
+ "video_preprocessor_config.json": {
121
+ "path": "video_preprocessor_config.json",
122
+ "sha256": "7768af27c1fafa9cc9011c1dc20067e03f8915e03b63504550e11d5066986d13",
123
+ "size": 385
124
+ },
125
+ "vocab.json": {
126
+ "path": "vocab.json",
127
+ "sha256": "ce99b4cb2983d118806ce0a8b777a35b093e2000a503ebde25853284c9dfa003",
128
+ "size": 6722759
129
+ }
130
+ },
131
+ "publication_contract": {
132
+ "allowlist_required": true,
133
+ "public_deletions_authorized": false,
134
+ "readme": {
135
+ "complete": false,
136
+ "final_evidence_required": true,
137
+ "kind": "mlx",
138
+ "passed": true,
139
+ "publisher_notice_preserved": true
140
+ },
141
+ "required_gates": [
142
+ "source",
143
+ "recursive-local",
144
+ "M4-Pro-MTP-off/on",
145
+ "bounded-fidelity"
146
+ ]
147
+ },
148
+ "quantization": {
149
+ "bits": 8,
150
+ "group_size": 64,
151
+ "independent": true,
152
+ "mode": "affine"
153
+ },
154
+ "schema": 2,
155
+ "source": {
156
+ "files": [
157
+ {
158
+ "dtype_counts": {
159
+ "F16": 262,
160
+ "F32": 187
161
+ },
162
+ "inventory_sha256": "0c4cbf350903ea737c6603b048e40eb09f3e2641abd9c708f96463a57d515736",
163
+ "path": "Qwen3.8-27B-Uncensored-F16-00001-of-00002.gguf",
164
+ "role": "main-shard-1",
165
+ "sha256": "578926d4e6d94281e95a48d8e154c4667061a669e9016f2aa2b15101ab4363dc",
166
+ "size": 27908108288,
167
+ "tensor_count": 449
168
+ },
169
+ {
170
+ "dtype_counts": {
171
+ "F16": 244,
172
+ "F32": 173
173
+ },
174
+ "inventory_sha256": "3310515e178e6d1db2123114750f03f164fb245cbd1b602bd9b48cf0d29ab308",
175
+ "path": "Qwen3.8-27B-Uncensored-F16-00002-of-00002.gguf",
176
+ "role": "main-shard-2",
177
+ "sha256": "c15e78454caec46b19dae22fa6915a9e77b917e7cceffdc64c265801f4eaa1f1",
178
+ "size": 26749625920,
179
+ "tensor_count": 417
180
+ },
181
+ {
182
+ "dtype_counts": {
183
+ "BF16": 110,
184
+ "F32": 224
185
+ },
186
+ "inventory_sha256": "5218b68a449832643abc4e029d3e29652a006d8e603857b4dd053755ab4c7253",
187
+ "path": "mmproj-Qwen3.8-27B-Uncensored-f16.gguf",
188
+ "role": "mmproj",
189
+ "sha256": "add205b7bfdb3f71f6da36b0a82aa20928dd829a920878c602628cdfbebc5288",
190
+ "size": 931145984,
191
+ "tensor_count": 334
192
+ }
193
+ ],
194
+ "repo": "orcarouter/Qwen3.8-27B-Uncensored-GGUF",
195
+ "revision": "402c3e0a64d77880f55ab096c5b7597ef85162ab"
196
+ },
197
+ "tensor_inventory": {
198
+ "dense_logical": 695,
199
+ "logical": 1199,
200
+ "mtp_logical": 15,
201
+ "payload_bytes": 31194688000,
202
+ "physical": 2207,
203
+ "quantized_logical": 504
204
+ }
205
+ }
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Alibaba Cloud
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
LINEAGE.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "Qwen/Qwen3.8-27B",
3
+ "baseline_revision": "13137955862a8aa7de46aaa87dbc3603f6520931",
4
+ "bits": 8,
5
+ "destination_repo": "chimingw/Qwen3.8-27B-Uncensored-OrcaRouter-MLX-8bit",
6
+ "group_size": 64,
7
+ "independent_from_floating_parent": true,
8
+ "mode": "affine",
9
+ "precision_parent": "direct floating F16 GGUF plus source-matched floating mmproj; no FP8 intermediate",
10
+ "public_deletions_authorized": false,
11
+ "schema": 2,
12
+ "source_files": [
13
+ {
14
+ "path": "Qwen3.8-27B-Uncensored-F16-00001-of-00002.gguf",
15
+ "sha256": "578926d4e6d94281e95a48d8e154c4667061a669e9016f2aa2b15101ab4363dc",
16
+ "size": 27908108288
17
+ },
18
+ {
19
+ "path": "Qwen3.8-27B-Uncensored-F16-00002-of-00002.gguf",
20
+ "sha256": "c15e78454caec46b19dae22fa6915a9e77b917e7cceffdc64c265801f4eaa1f1",
21
+ "size": 26749625920
22
+ },
23
+ {
24
+ "path": "mmproj-Qwen3.8-27B-Uncensored-f16.gguf",
25
+ "sha256": "add205b7bfdb3f71f6da36b0a82aa20928dd829a920878c602628cdfbebc5288",
26
+ "size": 931145984
27
+ }
28
+ ],
29
+ "source_repo": "orcarouter/Qwen3.8-27B-Uncensored-GGUF",
30
+ "source_revision": "402c3e0a64d77880f55ab096c5b7597ef85162ab"
31
+ }
README.md ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: orcarouter/Qwen3.8-27B-Uncensored-GGUF
4
+ base_model_relation: quantized
5
+ pipeline_tag: image-text-to-text
6
+ library_name: mlx
7
+ inference: false
8
+ language: [en, zh]
9
+ tags: [mlx, qwen3.8, quantized, vision-language, mtp, f16-source]
10
+ ---
11
+
12
+ # Qwen3.8-27B-Uncensored-OrcaRouter — MLX 8-bit
13
+
14
+ **GGUF QUANTS HERE: [`chimingw/Qwen3.8-27B-Uncensored-OrcaRouter-GGUF`](https://huggingface.co/chimingw/Qwen3.8-27B-Uncensored-OrcaRouter-GGUF)**
15
+
16
+ This unofficial native MLX affine 8-bit/group-64 checkpoint was independently generated directly from the pinned floating F16 parent `orcarouter/Qwen3.8-27B-Uncensored-GGUF@402c3e0a64d77880f55ab096c5b7597ef85162ab`. It was not transcoded from another quant and does not use the older FP8-expanded BF16 working representation. This conversion adds no training, fine-tuning, merging, or alignment change.
17
+
18
+ ## Source publisher notice — OrcaRouter says
19
+
20
+ **[OrcaRouter claims:](https://huggingface.co/orcarouter/Qwen3.8-27B-Uncensored-GGUF/blob/402c3e0a64d77880f55ab096c5b7597ef85162ab/README.md)**
21
+
22
+ > An **abliterated** (refusal-removed) build of Qwen/Qwen3.8-27B, a dense native vision-language model with an MTP speculative-decoding head.
23
+ >
24
+ > **⚠️ Disclaimer — read before use**
25
+ >
26
+ > This model has had its **safety alignment substantially removed** via **abliteration** (orthogonalizing the refusal direction out of the residual stream). As a direct consequence:
27
+ >
28
+ > - It will comply with harmful, unethical, offensive, or illegal requests that the original Qwen3.8-27B would refuse. It has no meaningful built-in guardrails.
29
+ > - It is released **strictly for legitimate research** — interpretability, AI-safety and refusal-mechanism study, red-teaming, robustness evaluation, and controlled experiments.
30
+ > - You assume full responsibility and liability for how you use it and for everything it generates. Do not deploy it to end users or in production without adding your own safety, moderation, and abuse-prevention layers.
31
+ > - Use must comply with the Apache 2.0 License inherited from the base model, and all laws and regulations that apply to you.
32
+ > - The authors and uploaders accept no liability for any misuse or harm arising from this model. Its outputs do **not** reflect the views of the uploaders or of Qwen / Alibaba.
33
+ >
34
+ > By downloading or using this model you acknowledge and accept the above.
35
+
36
+ These are the source publisher's claims and warnings. This conversion has not independently revalidated refusal-removal, quality, safety, benchmark, or behavioral claims.
37
+
38
+ ## Direct floating source and precision audit
39
+
40
+ Source: `orcarouter/Qwen3.8-27B-Uncensored-GGUF@402c3e0a64d77880f55ab096c5b7597ef85162ab`, two F16 GGUF shards plus `mmproj-Qwen3.8-27B-Uncensored-f16.gguf`.
41
+
42
+ Sampled text and formerly quantized MTP matrices did not lie on the old FP8×scale lattice, establishing higher-precision pre-FP8 values in those samples. A dense `mtp.fc.weight` sample was exactly the old BF16 values stored as F16. A sampled vision-projector BF16 matrix was byte-identical to the old source-derived BF16 matrix despite the new projector's `f16` filename. The projector's two distinct GGUF patch-embedding tensors are ordered temporal slices; both are stacked before the native MLX channels-last transpose, reconciling 334 physical mmproj tensors to 333 native vision tensors without dropping either slice. These audits establish precision lineage, not an intelligence gain.
43
+
44
+ ## Model tree
45
+
46
+ ```text
47
+ Qwen/Qwen3.8-27B
48
+ └── orcarouter/Qwen3.8-27B-Uncensored-GGUF@402c3e0a64d77880f55ab096c5b7597ef85162ab (F16 parent)
49
+ └── chimingw/Qwen3.8-27B-Uncensored-OrcaRouter-MLX-8bit
50
+ ```
51
+
52
+ GGUF is the upstream container of the newly released floating weights; this child is a native MLX package reconstructed from those floating tensors.
53
+
54
+ MLX storage avoids an unnecessary pre-quantization loss: F16 tensors remain F16 (including the two unquantized token-embedding and MTP-fc tensors), BF16 tensors retain their raw BF16 bytes, and eligible F16/BF16 matrices are quantized directly in that source dtype. A source F32 dense tensor is stored as BF16 only when a full-value BF16-cast→F32 bit comparison reproduces every finite value exactly; otherwise it remains F32. The expected promoted tensors, including both temporal patch slices, are old BF16-lattice values and therefore round-trip losslessly. `The recursively validated package contains 1199 logical tensors: 504 eligible matrices encoded as native MLX affine 8-bit/group-64 weights, and 695 dense tensors retained in their source-derived F16/BF16/F32 contract. The package contains 2207 physical tensors totaling 31,194,688,000 tensor-payload bytes.` must be replaced with the final recursively validated counts. The required M4 Pro gates exercise this mixed F16/BF16/F32 package.
55
+
56
+ ## Integrity and release gates
57
+
58
+ ### Pinned source files
59
+
60
+ | File | Bytes | SHA-256 |
61
+ | --- | --- | --- |
62
+ | Qwen3.8-27B-Uncensored-F16-00001-of-00002.gguf | 27,908,108,288 | `578926d4e6d94281e95a48d8e154c4667061a669e9016f2aa2b15101ab4363dc` |
63
+ | Qwen3.8-27B-Uncensored-F16-00002-of-00002.gguf | 26,749,625,920 | `c15e78454caec46b19dae22fa6915a9e77b917e7cceffdc64c265801f4eaa1f1` |
64
+ | mmproj-Qwen3.8-27B-Uncensored-f16.gguf | 931,145,984 | `add205b7bfdb3f71f6da36b0a82aa20928dd829a920878c602628cdfbebc5288` |
65
+
66
+ ### Published model shards
67
+
68
+ | File | Bytes | SHA-256 |
69
+ | --- | --- | --- |
70
+ | model-00001-of-00007.safetensors | 4,831,439,056 | `95b2538f7521ec1912a6ae7e33748f3d4dd615daa3e8270ed95ed0dec3b63498` |
71
+ | model-00002-of-00007.safetensors | 4,852,372,272 | `d6f2feec87c865e400fc5abb60d4cb54ea803e0376661cb3bff2653aa3b2ddbb` |
72
+ | model-00003-of-00007.safetensors | 4,840,627,800 | `818a342a50927634d8433fbfd78944acb86c50d5c475e5918de2e955863c092d` |
73
+ | model-00004-of-00007.safetensors | 4,835,657,096 | `f12e8c23e9a0cbde62b979f7d6d253d292cf4dad100fef8682b96be78914832c` |
74
+ | model-00005-of-00007.safetensors | 4,880,831,896 | `98ea59f0a17fada1177c5d38c446ca83d474be68b77d585653a99d849bcd7eae` |
75
+ | model-00006-of-00007.safetensors | 4,840,627,360 | `d315b7aab32c87095a36ec98357c8649386add5511fb2e0fd8e6a7c6e3162176` |
76
+ | model-00007-of-00007.safetensors | 2,113,414,640 | `dc5323be49315c5d471153e4ef6990a7364a35f284b67263c46de444112e954a` |
77
+
78
+ Artifact manifest: `/workspace/orcarouter-f16/work/release/MLX-8bit/ARTIFACT-MANIFEST.json` — `e0be3703ec68d3d5776a76b2e32fc7a17f20c76fdc687c2186aff997f394c8fc`.
79
+
80
+ ### M4 Pro runtime
81
+
82
+ Validated sequentially on Mac M4 Pro with 48 GiB unified memory, macOS 26.6.1, runtime `mlx-serve-26.8.7|mlx-0.32.0|mlx-c-fba4470b8907|llama.cpp-b10034`. Text determinism, chat-template tool calling, image-grounded vision (`red`), and clean unload all passed. MTP-off produced zero draft tokens in 13.868492s; MTP-on drafted 66 tokens and accepted 66 in 6.695466s. The matched output SHA-256 was `65966537023045093dda6a4bf49057afef35319d2f5170c68435d3330c8cec10` in both modes. Durations are bounded smoke-test evidence, not performance benchmarks.
83
+
84
+ ### Bounded matched fidelity
85
+
86
+ | Model | Perplexity | Tokens |
87
+ | --- | --- | --- |
88
+ | old-fp8-derived-Q4_K_M | 5.8034 | 2048 |
89
+ | new-f16-derived-Q4_K_M | 5.7962 | 2048 |
90
+ | old-fp8-derived-Q5_K_M | 5.7901 | 2048 |
91
+ | new-f16-derived-Q5_K_M | 5.7774 | 2048 |
92
+ | old-fp8-derived-Q6_K | 5.8586 | 2048 |
93
+ | new-f16-derived-Q6_K | 5.8034 | 2048 |
94
+ | old-fp8-derived-Q8_0 | 5.7958 | 2048 |
95
+ | new-f16-derived-Q8_0 | 5.8195 | 2048 |
96
+
97
+ Fidelity report: `/workspace/orcarouter-f16/work/fidelity-v2/FIDELITY-REPORT.json` — `9774c9205abac6feb2ff8759627dc5b2087e703d7141f42a658432a92de02e0d`.
98
+
99
+ ### Machine-readable release evidence
100
+
101
+ The JSON below is the fail-closed release contract. It intentionally excludes README/self-manifest hashes to avoid circular evidence.
102
+
103
+ <!-- RELEASE-EVIDENCE-BEGIN -->
104
+ ```json
105
+ {
106
+ "artifacts": {
107
+ "model-00001-of-00007.safetensors": {
108
+ "sha256": "95b2538f7521ec1912a6ae7e33748f3d4dd615daa3e8270ed95ed0dec3b63498",
109
+ "size": 4831439056
110
+ },
111
+ "model-00002-of-00007.safetensors": {
112
+ "sha256": "d6f2feec87c865e400fc5abb60d4cb54ea803e0376661cb3bff2653aa3b2ddbb",
113
+ "size": 4852372272
114
+ },
115
+ "model-00003-of-00007.safetensors": {
116
+ "sha256": "818a342a50927634d8433fbfd78944acb86c50d5c475e5918de2e955863c092d",
117
+ "size": 4840627800
118
+ },
119
+ "model-00004-of-00007.safetensors": {
120
+ "sha256": "f12e8c23e9a0cbde62b979f7d6d253d292cf4dad100fef8682b96be78914832c",
121
+ "size": 4835657096
122
+ },
123
+ "model-00005-of-00007.safetensors": {
124
+ "sha256": "98ea59f0a17fada1177c5d38c446ca83d474be68b77d585653a99d849bcd7eae",
125
+ "size": 4880831896
126
+ },
127
+ "model-00006-of-00007.safetensors": {
128
+ "sha256": "d315b7aab32c87095a36ec98357c8649386add5511fb2e0fd8e6a7c6e3162176",
129
+ "size": 4840627360
130
+ },
131
+ "model-00007-of-00007.safetensors": {
132
+ "sha256": "dc5323be49315c5d471153e4ef6990a7364a35f284b67263c46de444112e954a",
133
+ "size": 2113414640
134
+ }
135
+ },
136
+ "fidelity": {
137
+ "corpus": {
138
+ "path": "wikitext-2-raw/wiki.test.raw",
139
+ "sha256": "173c87a53759e0201f33e0ccf978e510c2042d7f2cb78229d9a50d79b9e7dd08",
140
+ "size": 1290590
141
+ },
142
+ "report": {
143
+ "path": "/workspace/orcarouter-f16/work/fidelity-v2/FIDELITY-REPORT.json",
144
+ "sha256": "9774c9205abac6feb2ff8759627dc5b2087e703d7141f42a658432a92de02e0d",
145
+ "size": 17333
146
+ },
147
+ "results": [
148
+ {
149
+ "label": "old-fp8-derived-Q4_K_M",
150
+ "perplexity": 5.8034,
151
+ "token_count": 2048
152
+ },
153
+ {
154
+ "label": "new-f16-derived-Q4_K_M",
155
+ "perplexity": 5.7962,
156
+ "token_count": 2048
157
+ },
158
+ {
159
+ "label": "old-fp8-derived-Q5_K_M",
160
+ "perplexity": 5.7901,
161
+ "token_count": 2048
162
+ },
163
+ {
164
+ "label": "new-f16-derived-Q5_K_M",
165
+ "perplexity": 5.7774,
166
+ "token_count": 2048
167
+ },
168
+ {
169
+ "label": "old-fp8-derived-Q6_K",
170
+ "perplexity": 5.8586,
171
+ "token_count": 2048
172
+ },
173
+ {
174
+ "label": "new-f16-derived-Q6_K",
175
+ "perplexity": 5.8034,
176
+ "token_count": 2048
177
+ },
178
+ {
179
+ "label": "old-fp8-derived-Q8_0",
180
+ "perplexity": 5.7958,
181
+ "token_count": 2048
182
+ },
183
+ {
184
+ "label": "new-f16-derived-Q8_0",
185
+ "perplexity": 5.8195,
186
+ "token_count": 2048
187
+ }
188
+ ]
189
+ },
190
+ "kind": "mlx",
191
+ "mlx": {
192
+ "bits": 8,
193
+ "bits_passed": [
194
+ 4,
195
+ 5,
196
+ 6,
197
+ 8
198
+ ],
199
+ "conversion_report": {
200
+ "path": "/workspace/orcarouter-f16/work/state/mlx-conversion-runtime.json",
201
+ "sha256": "649cd87ca10216f9743640de5f18ae7c42767efaca8e4e4f851fad5d46470092",
202
+ "size": 1024
203
+ },
204
+ "dequantize_passed": true,
205
+ "group_size": 64,
206
+ "m4_runtime_passed": true,
207
+ "mode": "affine",
208
+ "quantize_passed": true
209
+ },
210
+ "runtime": {
211
+ "gates": {
212
+ "deterministic": {
213
+ "passed": true,
214
+ "run_1_output_sha256": "2f2d059139883d9985ea4178113bf6ac4fa731a1b72ab0be2608a3a279411144",
215
+ "run_2_output_sha256": "2f2d059139883d9985ea4178113bf6ac4fa731a1b72ab0be2608a3a279411144"
216
+ },
217
+ "mtp_off": {
218
+ "draft_tokens": 0,
219
+ "mtp_weights_loaded": true,
220
+ "passed": true,
221
+ "speculative_decoding_enabled": false
222
+ },
223
+ "mtp_on": {
224
+ "draft_tokens": 66,
225
+ "mtp_weights_loaded": true,
226
+ "passed": true,
227
+ "speculative_decoding_enabled": true
228
+ },
229
+ "text": {
230
+ "passed": true
231
+ },
232
+ "tool": {
233
+ "passed": true
234
+ },
235
+ "vision": {
236
+ "passed": true
237
+ }
238
+ },
239
+ "hardware": {
240
+ "macOS": "26.6.1",
241
+ "memory_GiB": 48,
242
+ "model": "Mac M4 Pro"
243
+ },
244
+ "report": {
245
+ "path": "/workspace/orcarouter-f16/work/runtime-mlx/MLX-8bit/attestation.rebased.json",
246
+ "sha256": "4e56600f7b8b91f38a98402ee9d48d2f2e2bcf7606337b35dd70a15e643f90df",
247
+ "size": 10091
248
+ },
249
+ "revision": "mlx-serve-26.8.7|mlx-0.32.0|mlx-c-fba4470b8907|llama.cpp-b10034"
250
+ },
251
+ "schema": 1,
252
+ "source": {
253
+ "files": [
254
+ {
255
+ "path": "Qwen3.8-27B-Uncensored-F16-00001-of-00002.gguf",
256
+ "sha256": "578926d4e6d94281e95a48d8e154c4667061a669e9016f2aa2b15101ab4363dc",
257
+ "size": 27908108288
258
+ },
259
+ {
260
+ "path": "Qwen3.8-27B-Uncensored-F16-00002-of-00002.gguf",
261
+ "sha256": "c15e78454caec46b19dae22fa6915a9e77b917e7cceffdc64c265801f4eaa1f1",
262
+ "size": 26749625920
263
+ },
264
+ {
265
+ "path": "mmproj-Qwen3.8-27B-Uncensored-f16.gguf",
266
+ "sha256": "add205b7bfdb3f71f6da36b0a82aa20928dd829a920878c602628cdfbebc5288",
267
+ "size": 931145984
268
+ }
269
+ ],
270
+ "repo": "orcarouter/Qwen3.8-27B-Uncensored-GGUF",
271
+ "revision": "402c3e0a64d77880f55ab096c5b7597ef85162ab"
272
+ }
273
+ }
274
+ ```
275
+ <!-- RELEASE-EVIDENCE-END -->
276
+
277
+ The bounded WikiText-2 comparison is quantization-fidelity evidence, not an intelligence benchmark. Throughput depends on hardware, context, prompt, and runtime. M4 Pro load/generation tests must cover MTP off and on before publication.
278
+
279
+ ## Legacy release history
280
+
281
+ The prior public revision was quantized from an FP8-expanded BF16 working representation. That historical lineage does not describe this replacement.
RUNTIME-REQUIREMENTS.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "conversion": {
3
+ "apple_inference_required": true,
4
+ "cuda_version": "0.30.0",
5
+ "linux_conversion_probe": [
6
+ "quantize",
7
+ "dequantize"
8
+ ],
9
+ "quantization": {
10
+ "bits": [
11
+ 4,
12
+ 5,
13
+ 6,
14
+ 8
15
+ ],
16
+ "group_size": 64,
17
+ "mode": "affine"
18
+ },
19
+ "source_revision": "a1e0e0b56904cb8eef3a4671b747833c94b0b9fb",
20
+ "version": "0.30.0"
21
+ },
22
+ "inference": {
23
+ "llama_cpp_build": "b10034",
24
+ "mlx_c_revision": "fba4470b8907",
25
+ "mlx_version": "0.32.0",
26
+ "off_mode": "MTP weights loaded, speculative decoding disabled",
27
+ "on_mode": "MTP weights loaded and draft tokens observed",
28
+ "revision": "mlx-serve-26.8.7|mlx-0.32.0|mlx-c-fba4470b8907|llama.cpp-b10034",
29
+ "version": "26.8.7"
30
+ },
31
+ "required_gates": [
32
+ "M4 Pro MTP-off load/generate",
33
+ "M4 Pro MTP-on load/generate with draft tokens"
34
+ ],
35
+ "runtime_evidence_pending_at_packaging": true,
36
+ "schema": 2
37
+ }
chat_template.jinja ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- set reasoning_instructions = '' %}
46
+ {%- if enable_thinking is undefined or enable_thinking is true %}
47
+ {%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}
48
+ {%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}
49
+ {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}
50
+ {%- endif %}
51
+ {%- if resolved_reasoning_effort == 'xhigh' %}
52
+ {%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}
53
+ {%- elif resolved_reasoning_effort == 'low' %}
54
+ {%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
55
+ {%- endif %}
56
+ {%- endif %}
57
+ {%- if tools and tools is iterable and tools is not mapping %}
58
+ {{- '<|im_start|>system\n' }}
59
+ {%- if reasoning_instructions %}
60
+ {{- reasoning_instructions + '\n\n' }}
61
+ {%- endif %}
62
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
63
+ {%- for tool in tools %}
64
+ {{- "\n" }}
65
+ {{- tool | tojson }}
66
+ {%- endfor %}
67
+ {{- "\n</tools>" }}
68
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
69
+ {%- if messages[0].role == 'system' %}
70
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
71
+ {%- if content %}
72
+ {{- '\n\n' + content }}
73
+ {%- endif %}
74
+ {%- endif %}
75
+ {{- '<|im_end|>\n' }}
76
+ {%- else %}
77
+ {%- if messages[0].role == 'system' %}
78
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
79
+ {%- if content %}
80
+ {{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + content + '<|im_end|>\n' }}
81
+ {%- elif reasoning_instructions %}
82
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
83
+ {%- endif %}
84
+ {%- elif reasoning_instructions %}
85
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
86
+ {%- endif %}
87
+ {%- endif %}
88
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
89
+ {%- for message in messages[::-1] %}
90
+ {%- set index = (messages|length - 1) - loop.index0 %}
91
+ {%- if ns.multi_step_tool and message.role == "user" %}
92
+ {%- set content = render_content(message.content, false)|trim %}
93
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
94
+ {%- set ns.multi_step_tool = false %}
95
+ {%- set ns.last_query_index = index %}
96
+ {%- endif %}
97
+ {%- endif %}
98
+ {%- endfor %}
99
+ {%- if ns.multi_step_tool %}
100
+ {{- raise_exception('No user query found in messages.') }}
101
+ {%- endif %}
102
+ {%- for message in messages %}
103
+ {%- set content = render_content(message.content, true)|trim %}
104
+ {%- if message.role == "system" %}
105
+ {%- if not loop.first %}
106
+ {{- raise_exception('System message must be at the beginning.') }}
107
+ {%- endif %}
108
+ {%- elif message.role == "user" %}
109
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
110
+ {%- elif message.role == "assistant" %}
111
+ {%- set reasoning_content = '' %}
112
+ {%- if message.reasoning_content is string %}
113
+ {%- set reasoning_content = message.reasoning_content %}
114
+ {%- endif %}
115
+ {%- set reasoning_content = reasoning_content|trim %}
116
+ {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}
117
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
118
+ {%- else %}
119
+ {{- '<|im_start|>' + message.role + '\n' + content }}
120
+ {%- endif %}
121
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
122
+ {%- for tool_call in message.tool_calls %}
123
+ {%- if tool_call.function is defined %}
124
+ {%- set tool_call = tool_call.function %}
125
+ {%- endif %}
126
+ {%- if loop.first %}
127
+ {%- if content|trim %}
128
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
129
+ {%- else %}
130
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
131
+ {%- endif %}
132
+ {%- else %}
133
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
134
+ {%- endif %}
135
+ {%- if tool_call.arguments is defined and tool_call.arguments != '' %}
136
+ {%- for args_name, args_value in tool_call.arguments|items %}
137
+ {{- '<parameter=' + args_name + '>\n' }}
138
+ {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
139
+ {{- args_value }}
140
+ {{- '\n</parameter>\n' }}
141
+ {%- endfor %}
142
+ {%- endif %}
143
+ {{- '</function>\n</tool_call>' }}
144
+ {%- endfor %}
145
+ {%- endif %}
146
+ {{- '<|im_end|>\n' }}
147
+ {%- elif message.role == "tool" %}
148
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
149
+ {{- '<|im_start|>user' }}
150
+ {%- endif %}
151
+ {{- '\n<tool_response>\n' }}
152
+ {{- content }}
153
+ {{- '\n</tool_response>' }}
154
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
155
+ {{- '<|im_end|>\n' }}
156
+ {%- elif loop.last %}
157
+ {{- '<|im_end|>\n' }}
158
+ {%- endif %}
159
+ {%- else %}
160
+ {{- raise_exception('Unexpected message role.') }}
161
+ {%- endif %}
162
+ {%- endfor %}
163
+ {%- if add_generation_prompt %}
164
+ {{- '<|im_start|>assistant\n' }}
165
+ {%- if enable_thinking is defined and enable_thinking is false %}
166
+ {{- '<think>\n\n</think>\n\n' }}
167
+ {%- else %}
168
+ {{- '<think>\n' }}
169
+ {%- endif %}
170
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 248056,
6
+ "language_model_only": false,
7
+ "model_type": "qwen3_5",
8
+ "quantization": {
9
+ "bits": 8,
10
+ "group_size": 64,
11
+ "mode": "affine"
12
+ },
13
+ "quantization_config": {
14
+ "bits": 8,
15
+ "group_size": 64,
16
+ "mode": "affine"
17
+ },
18
+ "text_config": {
19
+ "attention_bias": false,
20
+ "attention_dropout": 0.0,
21
+ "attn_output_gate": true,
22
+ "bos_token_id": 248044,
23
+ "dtype": "bfloat16",
24
+ "eos_token_id": 248044,
25
+ "full_attention_interval": 4,
26
+ "head_dim": 256,
27
+ "hidden_act": "silu",
28
+ "hidden_size": 5120,
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": 17408,
31
+ "layer_types": [
32
+ "linear_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "full_attention",
36
+ "linear_attention",
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "full_attention",
40
+ "linear_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "full_attention",
44
+ "linear_attention",
45
+ "linear_attention",
46
+ "linear_attention",
47
+ "full_attention",
48
+ "linear_attention",
49
+ "linear_attention",
50
+ "linear_attention",
51
+ "full_attention",
52
+ "linear_attention",
53
+ "linear_attention",
54
+ "linear_attention",
55
+ "full_attention",
56
+ "linear_attention",
57
+ "linear_attention",
58
+ "linear_attention",
59
+ "full_attention",
60
+ "linear_attention",
61
+ "linear_attention",
62
+ "linear_attention",
63
+ "full_attention",
64
+ "linear_attention",
65
+ "linear_attention",
66
+ "linear_attention",
67
+ "full_attention",
68
+ "linear_attention",
69
+ "linear_attention",
70
+ "linear_attention",
71
+ "full_attention",
72
+ "linear_attention",
73
+ "linear_attention",
74
+ "linear_attention",
75
+ "full_attention",
76
+ "linear_attention",
77
+ "linear_attention",
78
+ "linear_attention",
79
+ "full_attention",
80
+ "linear_attention",
81
+ "linear_attention",
82
+ "linear_attention",
83
+ "full_attention",
84
+ "linear_attention",
85
+ "linear_attention",
86
+ "linear_attention",
87
+ "full_attention",
88
+ "linear_attention",
89
+ "linear_attention",
90
+ "linear_attention",
91
+ "full_attention",
92
+ "linear_attention",
93
+ "linear_attention",
94
+ "linear_attention",
95
+ "full_attention"
96
+ ],
97
+ "linear_conv_kernel_dim": 4,
98
+ "linear_key_head_dim": 128,
99
+ "linear_num_key_heads": 16,
100
+ "linear_num_value_heads": 48,
101
+ "linear_value_head_dim": 128,
102
+ "mamba_ssm_dtype": "float32",
103
+ "max_position_embeddings": 262144,
104
+ "model_type": "qwen3_5_text",
105
+ "mtp_num_hidden_layers": 1,
106
+ "mtp_use_dedicated_embeddings": false,
107
+ "num_attention_heads": 24,
108
+ "num_hidden_layers": 64,
109
+ "num_key_value_heads": 4,
110
+ "output_gate_type": "swish",
111
+ "pad_token_id": null,
112
+ "partial_rotary_factor": 0.25,
113
+ "rms_norm_eps": 1e-06,
114
+ "rope_parameters": {
115
+ "mrope_interleaved": true,
116
+ "mrope_section": [
117
+ 11,
118
+ 11,
119
+ 10
120
+ ],
121
+ "partial_rotary_factor": 0.25,
122
+ "rope_theta": 10000000,
123
+ "rope_type": "default"
124
+ },
125
+ "tie_word_embeddings": false,
126
+ "use_cache": true,
127
+ "vocab_size": 248320
128
+ },
129
+ "tie_word_embeddings": false,
130
+ "transformers_version": "5.8.0.dev0",
131
+ "video_token_id": 248057,
132
+ "vision_config": {
133
+ "deepstack_visual_indexes": [],
134
+ "depth": 27,
135
+ "hidden_act": "gelu_pytorch_tanh",
136
+ "hidden_size": 1152,
137
+ "in_channels": 3,
138
+ "initializer_range": 0.02,
139
+ "intermediate_size": 4304,
140
+ "model_type": "qwen3_5",
141
+ "num_heads": 16,
142
+ "num_position_embeddings": 2304,
143
+ "out_hidden_size": 5120,
144
+ "patch_size": 16,
145
+ "spatial_merge_size": 2,
146
+ "temporal_patch_size": 2
147
+ },
148
+ "vision_end_token_id": 248054,
149
+ "vision_start_token_id": 248053
150
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 248044,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 248046,
6
+ 248044
7
+ ],
8
+ "pad_token_id": 248044,
9
+ "temperature": 1.0,
10
+ "top_k": 20,
11
+ "top_p": 0.95
12
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95b2538f7521ec1912a6ae7e33748f3d4dd615daa3e8270ed95ed0dec3b63498
3
+ size 4831439056
model-00002-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6f2feec87c865e400fc5abb60d4cb54ea803e0376661cb3bff2653aa3b2ddbb
3
+ size 4852372272
model-00003-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:818a342a50927634d8433fbfd78944acb86c50d5c475e5918de2e955863c092d
3
+ size 4840627800
model-00004-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f12e8c23e9a0cbde62b979f7d6d253d292cf4dad100fef8682b96be78914832c
3
+ size 4835657096
model-00005-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98ea59f0a17fada1177c5d38c446ca83d474be68b77d585653a99d849bcd7eae
3
+ size 4880831896
model-00006-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d315b7aab32c87095a36ec98357c8649386add5511fb2e0fd8e6a7c6e3162176
3
+ size 4840627360
model-00007-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc5323be49315c5d471153e4ef6990a7364a35f284b67263c46de444112e954a
3
+ size 2113414640
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0997f410c57a1f4e53b09e4be8f4a172d90edd9564368fb0847030937229b9f3
3
+ size 12809320
tokenizer_config.json ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "248044": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "248045": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "248046": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "248047": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "248048": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "248049": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "248050": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "248051": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "248052": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "248053": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "248054": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "248055": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "248056": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "248057": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "248058": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "248059": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "248060": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "248061": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "248062": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "248063": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "248064": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "248065": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ },
180
+ "248066": {
181
+ "content": "<tool_response>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": false
187
+ },
188
+ "248067": {
189
+ "content": "</tool_response>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": false
195
+ },
196
+ "248068": {
197
+ "content": "<think>",
198
+ "lstrip": false,
199
+ "normalized": false,
200
+ "rstrip": false,
201
+ "single_word": false,
202
+ "special": false
203
+ },
204
+ "248069": {
205
+ "content": "</think>",
206
+ "lstrip": false,
207
+ "normalized": false,
208
+ "rstrip": false,
209
+ "single_word": false,
210
+ "special": false
211
+ },
212
+ "248070": {
213
+ "content": "<|audio_start|>",
214
+ "lstrip": false,
215
+ "normalized": false,
216
+ "rstrip": false,
217
+ "single_word": false,
218
+ "special": true
219
+ },
220
+ "248071": {
221
+ "content": "<|audio_end|>",
222
+ "lstrip": false,
223
+ "normalized": false,
224
+ "rstrip": false,
225
+ "single_word": false,
226
+ "special": true
227
+ },
228
+ "248072": {
229
+ "content": "<tts_pad>",
230
+ "lstrip": false,
231
+ "normalized": false,
232
+ "rstrip": false,
233
+ "single_word": false,
234
+ "special": true
235
+ },
236
+ "248073": {
237
+ "content": "<tts_text_bos>",
238
+ "lstrip": false,
239
+ "normalized": false,
240
+ "rstrip": false,
241
+ "single_word": false,
242
+ "special": true
243
+ },
244
+ "248074": {
245
+ "content": "<tts_text_eod>",
246
+ "lstrip": false,
247
+ "normalized": false,
248
+ "rstrip": false,
249
+ "single_word": false,
250
+ "special": true
251
+ },
252
+ "248075": {
253
+ "content": "<tts_text_bos_single>",
254
+ "lstrip": false,
255
+ "normalized": false,
256
+ "rstrip": false,
257
+ "single_word": false,
258
+ "special": true
259
+ },
260
+ "248076": {
261
+ "content": "<|audio_pad|>",
262
+ "lstrip": false,
263
+ "normalized": false,
264
+ "rstrip": false,
265
+ "single_word": false,
266
+ "special": true
267
+ }
268
+ },
269
+ "additional_special_tokens": [
270
+ "<|im_start|>",
271
+ "<|im_end|>",
272
+ "<|object_ref_start|>",
273
+ "<|object_ref_end|>",
274
+ "<|box_start|>",
275
+ "<|box_end|>",
276
+ "<|quad_start|>",
277
+ "<|quad_end|>",
278
+ "<|vision_start|>",
279
+ "<|vision_end|>",
280
+ "<|vision_pad|>",
281
+ "<|image_pad|>",
282
+ "<|video_pad|>"
283
+ ],
284
+ "bos_token": null,
285
+ "chat_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- set reasoning_instructions = '' %}\n{%- if enable_thinking is undefined or enable_thinking is true %}\n {%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}\n {%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}\n {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}\n {%- endif %}\n {%- if resolved_reasoning_effort == 'xhigh' %}\n {%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}\n {%- elif resolved_reasoning_effort == 'low' %}\n {%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}\n {%- endif %}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {%- if reasoning_instructions %}\n {{- reasoning_instructions + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '<|im_start|>system\\n' + (reasoning_instructions + '\\n\\n' if reasoning_instructions else '') + content + '<|im_end|>\\n' }}\n {%- elif reasoning_instructions %}\n {{- '<|im_start|>system\\n' + reasoning_instructions + '<|im_end|>\\n' }}\n {%- endif %}\n {%- elif reasoning_instructions %}\n {{- '<|im_start|>system\\n' + reasoning_instructions + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\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 {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined and tool_call.arguments != '' %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- else %}\n {{- '<think>\\n' }}\n {%- endif %}\n{%- endif %}",
286
+ "clean_up_tokenization_spaces": false,
287
+ "eos_token": "<|im_end|>",
288
+ "errors": "replace",
289
+ "model_max_length": 262144,
290
+ "pad_token": "<|endoftext|>",
291
+ "split_special_tokens": false,
292
+ "tokenizer_class": "Qwen2Tokenizer",
293
+ "unk_token": null,
294
+ "add_bos_token": false,
295
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
296
+ "extra_special_tokens": {
297
+ "audio_bos_token": "<|audio_start|>",
298
+ "audio_eos_token": "<|audio_end|>",
299
+ "audio_token": "<|audio_pad|>",
300
+ "image_token": "<|image_pad|>",
301
+ "video_token": "<|video_pad|>",
302
+ "vision_bos_token": "<|vision_start|>",
303
+ "vision_eos_token": "<|vision_end|>"
304
+ }
305
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "video_processor_type": "Qwen3VLVideoProcessor"
21
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff