sigilwen commited on
Commit
cacf251
·
verified ·
1 Parent(s): db58906

Husky Flash: Woof 1.0 4B packed for Husky with the round-2 Flash draft

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: ConwayResearch/woof-1.0-4B
4
+ tags:
5
+ - husky
6
+ - apple-silicon
7
+ - metal
8
+ - speculative-decoding
9
+ ---
10
+
11
+ # Husky Flash: Woof 1.0 4B for Husky, with the Flash draft
12
+
13
+ Woof is the Pareto-frontier model that runs Underdog on your Mac and iPhone, even without wifi. This is Woof packed for **Husky**, Underdog's model-specific inference engine for Apple silicon, with **Flash on**: the trained draft that lets Husky check several tokens per read of the weights.
14
+
15
+ Husky is built around Woof's exact shapes instead of around any model. On an M5 Max it is faster than Apple's MLX on all sixteen tasks we measure: 1.8 to 3.9× on edits, 3.6 to 5.5× to the first word on a continued conversation, and with Flash on, 1.1 to 4.2× across the board. Same weights, same answers. The numbers, the method and the receipts are at [husky.underdog.ai](https://husky.underdog.ai).
16
+
17
+ ## What is in the package
18
+
19
+ - `target/`: Woof's 4-bit weights laid out in the order Husky's kernels read them. A repack, not a requantization: no value changes.
20
+ - `draft/`: the Flash draft, round 2. One small layer that reads Woof's own hidden states from five of its layers and proposes the next seven tokens; trained by self-distillation on Woof's replies to 21,000 conversations. On writing it lands about 1.5 tokens a step; on structured output such as JSON, about 4.
21
+ - `manifest.json`: the model's geometry, which the engine reads instead of assuming.
22
+ - `tokenizer/`: Woof's tokenizer.
23
+
24
+ ## How to run it
25
+
26
+ Download Underdog for the Mac and Husky runs Woof for you. In Underdog, the Woof card on the Models page has the engine switch: Apple MLX, Husky, or Husky with Flash on.
27
+
28
+ Developers can serve this package directly with the Husky server from the Underdog Greyhound repository:
29
+
30
+ ```sh
31
+ husky serve --model ConwayResearch/husky-flash
32
+ ```
33
+
34
+ ## Measured on this package (M5 Max, greedy, medians of three, quiet windows)
35
+
36
+ | Prompt | MLX tok/s | Husky | Flash on |
37
+ | --- | ---: | ---: | ---: |
38
+ | Short email | 151 | 164 | 251 |
39
+ | Invoice to JSON | 164 | 208 | 491 |
40
+ | CSV to a table | 158 | 287 | 415 |
41
+ | Fix typos in a paragraph | 159 | 463 | 498 |
42
+ | Add a field to a JSON file | 157 | 611 | 643 |
43
+ | Function edit | 163 | 614 | 681 |
44
+
45
+ First token on a continued conversation, both engines from their caches: 29 to 39 ms on Husky, 137 to 177 ms on MLX.
46
+
47
+ ## Licence
48
+
49
+ Woof's licence applies to these weights, as for `ConwayResearch/woof-1.0-4B`.
draft/layer-0.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2fad09914781da1df0ff67d2dcc9836298db7f6f718e5e32e0d3a6bfc604499
3
+ size 18251776
draft/model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:044e489b0dfcd7e5111273595150d92b10bad3195a0715a4c51ac1809c6b902d
3
+ size 273137664
manifest.json ADDED
@@ -0,0 +1,326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifacts": [
3
+ {
4
+ "path": "draft/layer-0.bin",
5
+ "sha256": "d2fad09914781da1df0ff67d2dcc9836298db7f6f718e5e32e0d3a6bfc604499",
6
+ "size": 18251776
7
+ },
8
+ {
9
+ "path": "draft/model.bin",
10
+ "sha256": "044e489b0dfcd7e5111273595150d92b10bad3195a0715a4c51ac1809c6b902d",
11
+ "size": 273137664
12
+ },
13
+ {
14
+ "path": "target/embedding.bin",
15
+ "sha256": "35172a33e4d84abe136d67f8c96e91d8618b5c375de8771f674f34ae08b06084",
16
+ "size": 357613568
17
+ },
18
+ {
19
+ "path": "target/head.bin",
20
+ "sha256": "a9efa9661dcd45d2735ebf48be1f9a1f40c4345b75198e921b436734b7742b69",
21
+ "size": 357613568
22
+ },
23
+ {
24
+ "path": "target/layer-0.bin",
25
+ "sha256": "1d35b07a204d2b625af131c45456ab321f03fd268aae53797c49b99e1ad3563e",
26
+ "size": 63946752
27
+ },
28
+ {
29
+ "path": "target/layer-1.bin",
30
+ "sha256": "dbd5340ace9278803678f9bc52484dacf8bd5f447e29e7b188ddb9bec0e36d54",
31
+ "size": 63946752
32
+ },
33
+ {
34
+ "path": "target/layer-10.bin",
35
+ "sha256": "3834da1faceaf4edec253cf89160983f82dea771cf2091e60058bebf91ee08e5",
36
+ "size": 63946752
37
+ },
38
+ {
39
+ "path": "target/layer-11.bin",
40
+ "sha256": "4e325e6f393b3bbb768f1a4164a3c6b9bfc678ab8ce85720ad2cb27e37c8e682",
41
+ "size": 60538880
42
+ },
43
+ {
44
+ "path": "target/layer-12.bin",
45
+ "sha256": "b540c6c8fa36abb0f5362feee22f37ceb54519601b6df0424dc4f99cc030aa94",
46
+ "size": 63946752
47
+ },
48
+ {
49
+ "path": "target/layer-13.bin",
50
+ "sha256": "fd548980d5f2548130c1e2aca1936c44c0e4978ecf97ce5aa4139ac060680972",
51
+ "size": 63946752
52
+ },
53
+ {
54
+ "path": "target/layer-14.bin",
55
+ "sha256": "f3f766100ee67a929bfc916aa8ec9f7c7c80635bce8deb7883abd6fdd72284e5",
56
+ "size": 63946752
57
+ },
58
+ {
59
+ "path": "target/layer-15.bin",
60
+ "sha256": "1a5063a73f899783bd10691b46f80a1dd4496efcfe319d6be385b491ba7b88fc",
61
+ "size": 60538880
62
+ },
63
+ {
64
+ "path": "target/layer-16.bin",
65
+ "sha256": "f1f98b5d3db5e05d8f6b59fd9476bba10dd76c8269aee8af846fc0c0e0e793dc",
66
+ "size": 63946752
67
+ },
68
+ {
69
+ "path": "target/layer-17.bin",
70
+ "sha256": "17e32d6f4bdd3abf079484e9dc9fee7a68296e6a32c385a8a73ae433713cd670",
71
+ "size": 63946752
72
+ },
73
+ {
74
+ "path": "target/layer-18.bin",
75
+ "sha256": "3b1ccc42b72ddbb310dc4af3bfc9635ab8776064dc7e4790cb726b06416f2989",
76
+ "size": 63946752
77
+ },
78
+ {
79
+ "path": "target/layer-19.bin",
80
+ "sha256": "8bcbcbde71651e9af35f35cece6edd148781a46a73f16b13dd02c9ec36e12418",
81
+ "size": 60538880
82
+ },
83
+ {
84
+ "path": "target/layer-2.bin",
85
+ "sha256": "1f002d9d2505f7407996248597928b6c4076632270490185cb5b70be1a8b762b",
86
+ "size": 63946752
87
+ },
88
+ {
89
+ "path": "target/layer-20.bin",
90
+ "sha256": "dcb06b9e11d20c8fbf59f6cdfd61b0f1cd7d11ef21d32c3219b33853c26c66fe",
91
+ "size": 63946752
92
+ },
93
+ {
94
+ "path": "target/layer-21.bin",
95
+ "sha256": "6e95de56c909907315f403d5bc1393921a4489bc17bb78472b7a994506ed5fba",
96
+ "size": 63946752
97
+ },
98
+ {
99
+ "path": "target/layer-22.bin",
100
+ "sha256": "0d7f882d2951027e32e26520c4e47d7176b3cf9ea0f66b88bce9501bbc1ab036",
101
+ "size": 63946752
102
+ },
103
+ {
104
+ "path": "target/layer-23.bin",
105
+ "sha256": "c0961e8ddaa7b660397a3c3101f3b6a5628aec7f73abef78bf7472079b3df03c",
106
+ "size": 60538880
107
+ },
108
+ {
109
+ "path": "target/layer-24.bin",
110
+ "sha256": "f3aae1e4199ce04bcbaec3f509068d48d2011eb370658452e73462239d1956c2",
111
+ "size": 63946752
112
+ },
113
+ {
114
+ "path": "target/layer-25.bin",
115
+ "sha256": "aadedfe5a2c0e94e2ed945e6da0824fab3a72385eb12126226cb09fa575df329",
116
+ "size": 63946752
117
+ },
118
+ {
119
+ "path": "target/layer-26.bin",
120
+ "sha256": "23102c5a00b46755be83c6f64112bd8af1d54e38b661f4dd7194cc04be2fc6a9",
121
+ "size": 63946752
122
+ },
123
+ {
124
+ "path": "target/layer-27.bin",
125
+ "sha256": "70ac1c2e8f91cb280e4e68a1b0c2d60f98881e4bc124c160626687d00e72d8a6",
126
+ "size": 60538880
127
+ },
128
+ {
129
+ "path": "target/layer-28.bin",
130
+ "sha256": "0c3db42ffa03807b077321d3ef5c2a92d299ffc4f6ac77fda51fdcc8bbe6e596",
131
+ "size": 63946752
132
+ },
133
+ {
134
+ "path": "target/layer-29.bin",
135
+ "sha256": "8671ab45e9d42c2b0b277e31c6505a2404601d98c6b275ddbd8fe50d38e148e8",
136
+ "size": 63946752
137
+ },
138
+ {
139
+ "path": "target/layer-3.bin",
140
+ "sha256": "2452fe8d60215f452cbd9e6fffb58c83fca9c39afa13369fbddb518b6e147393",
141
+ "size": 60538880
142
+ },
143
+ {
144
+ "path": "target/layer-30.bin",
145
+ "sha256": "a5ae34e5e1d54b6fc6e20a9d2a79b684d1c991552caa83e8b53a1c0a45b55928",
146
+ "size": 63946752
147
+ },
148
+ {
149
+ "path": "target/layer-31.bin",
150
+ "sha256": "dc071b0f76da2ba942f3fc7064eb9ce6f47566df53b1297902b8f565c215a97f",
151
+ "size": 60538880
152
+ },
153
+ {
154
+ "path": "target/layer-4.bin",
155
+ "sha256": "7d9d2d6593e7117c102e3b65ead130cbf85ef253592c3f24742222b509f6e193",
156
+ "size": 63946752
157
+ },
158
+ {
159
+ "path": "target/layer-5.bin",
160
+ "sha256": "12a6aaf2a1a85c5b360454c8f5f03ba04161a6d94fc235ecdcbd1926303054be",
161
+ "size": 63946752
162
+ },
163
+ {
164
+ "path": "target/layer-6.bin",
165
+ "sha256": "b76de0811c4eaa296740ee002ded97bc273d8940f30191f91d3bec4e77f35f72",
166
+ "size": 63946752
167
+ },
168
+ {
169
+ "path": "target/layer-7.bin",
170
+ "sha256": "32bc845c4db29319501e36931c60d9f21fd44863dd4d3a81a7e47d1abbe0bdb7",
171
+ "size": 60538880
172
+ },
173
+ {
174
+ "path": "target/layer-8.bin",
175
+ "sha256": "bc39819f4c60e0232535e82ca073b38b5b9c297b7ced24d7644dbbbae6adb458",
176
+ "size": 63946752
177
+ },
178
+ {
179
+ "path": "target/layer-9.bin",
180
+ "sha256": "ab2eba077bb6d2182b87187ddc994e453c67599707fdefe14bbc69e2678dbe9b",
181
+ "size": 63946752
182
+ },
183
+ {
184
+ "path": "tokenizer/chat_template.jinja",
185
+ "sha256": "a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715",
186
+ "size": 7756
187
+ },
188
+ {
189
+ "path": "tokenizer/config.json",
190
+ "sha256": "f3efc81b2ea8d96a45301037d3ccccbcccdef44a961845c87f286aaddbc6eaaa",
191
+ "size": 3366
192
+ },
193
+ {
194
+ "path": "tokenizer/tokenizer.json",
195
+ "sha256": "87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4",
196
+ "size": 19989343
197
+ },
198
+ {
199
+ "path": "tokenizer/tokenizer_config.json",
200
+ "sha256": "e98f1901ac6f0adff67b1d540bfa0c36ac1a0cf59eb72ed78146ef89aafa1182",
201
+ "size": 1139
202
+ },
203
+ {
204
+ "path": "tokenizer/vocab.json",
205
+ "sha256": "ce99b4cb2983d118806ce0a8b777a35b093e2000a503ebde25853284c9dfa003",
206
+ "size": 6722759
207
+ },
208
+ {
209
+ "path": "vision/model.bin",
210
+ "sha256": "bdf3990534180067bf668f62afa5c7c6ce68f1f4f9793b6de4bc08ef31c29f63",
211
+ "size": 105807872
212
+ }
213
+ ],
214
+ "draft": {
215
+ "architecture": "DFlash2DraftModel",
216
+ "dynamic_size": 768,
217
+ "hidden_size": 2560,
218
+ "intermediate_size": 256,
219
+ "layers": 1,
220
+ "placeholder": false,
221
+ "target_capture_layers": [
222
+ 4,
223
+ 10,
224
+ 15,
225
+ 20,
226
+ 26
227
+ ]
228
+ },
229
+ "execution_geometry": {
230
+ "allocation_extent_target_bytes": 134217728,
231
+ "attention_history_group": 128,
232
+ "draft_proposal_tokens": 7,
233
+ "draft_query_rows": 8,
234
+ "draft_sliding_window": 2048,
235
+ "maximum_batch_width": 4,
236
+ "prefill_token_budget": 2048,
237
+ "target_kv_block_tokens": 32,
238
+ "target_verify_rows": 8
239
+ },
240
+ "format": {
241
+ "draft_layer_magic": "MDFD0004",
242
+ "name": "husky-packed-q4",
243
+ "q4_bits": 4,
244
+ "q4_group_size": 64,
245
+ "q4_storage_n": 256,
246
+ "section_alignment_bytes": 16384,
247
+ "target_layer_magic": "MDFL0006",
248
+ "vision_magic": "MDFV0001"
249
+ },
250
+ "model": "ConwayResearch/husky-flash",
251
+ "schema_version": 3,
252
+ "target": {
253
+ "architecture": "qwen3_5",
254
+ "attention_head_dimension": 256,
255
+ "attention_kv_heads": 4,
256
+ "attention_packed_width": 10240,
257
+ "attention_query_heads": 16,
258
+ "capture_layers": [
259
+ 4,
260
+ 10,
261
+ 15,
262
+ 20,
263
+ 26
264
+ ],
265
+ "full_attention_period": 4,
266
+ "gdn_actual_width": 12352,
267
+ "gdn_head_dimension": 128,
268
+ "gdn_key_heads": 16,
269
+ "gdn_packed_width": 12544,
270
+ "gdn_value_heads": 32,
271
+ "hidden_size": 2560,
272
+ "intermediate_size": 9216,
273
+ "layer_types": [
274
+ "gdn",
275
+ "gdn",
276
+ "gdn",
277
+ "attention",
278
+ "gdn",
279
+ "gdn",
280
+ "gdn",
281
+ "attention",
282
+ "gdn",
283
+ "gdn",
284
+ "gdn",
285
+ "attention",
286
+ "gdn",
287
+ "gdn",
288
+ "gdn",
289
+ "attention",
290
+ "gdn",
291
+ "gdn",
292
+ "gdn",
293
+ "attention",
294
+ "gdn",
295
+ "gdn",
296
+ "gdn",
297
+ "attention",
298
+ "gdn",
299
+ "gdn",
300
+ "gdn",
301
+ "attention",
302
+ "gdn",
303
+ "gdn",
304
+ "gdn",
305
+ "attention"
306
+ ],
307
+ "layers": 32,
308
+ "mask_token": 248070,
309
+ "rotary_pairs": 32,
310
+ "rotary_theta": 10000000,
311
+ "stop_tokens": [
312
+ 248044,
313
+ 248046
314
+ ],
315
+ "vocabulary_size": 248320
316
+ },
317
+ "upstream": {
318
+ "target": {
319
+ "path": "/Users/sigil/.cache/huggingface/hub/models--ConwayResearch--woof-1.0-4B/snapshots/7f824e56ec7ac56e7e3b86f60a5dcd5dd2bd7a84"
320
+ }
321
+ },
322
+ "vision": {
323
+ "depth": 1,
324
+ "placeholder": true
325
+ }
326
+ }
target/embedding.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35172a33e4d84abe136d67f8c96e91d8618b5c375de8771f674f34ae08b06084
3
+ size 357613568
target/head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9efa9661dcd45d2735ebf48be1f9a1f40c4345b75198e921b436734b7742b69
3
+ size 357613568
target/layer-0.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d35b07a204d2b625af131c45456ab321f03fd268aae53797c49b99e1ad3563e
3
+ size 63946752
target/layer-1.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbd5340ace9278803678f9bc52484dacf8bd5f447e29e7b188ddb9bec0e36d54
3
+ size 63946752
target/layer-10.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3834da1faceaf4edec253cf89160983f82dea771cf2091e60058bebf91ee08e5
3
+ size 63946752
target/layer-11.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e325e6f393b3bbb768f1a4164a3c6b9bfc678ab8ce85720ad2cb27e37c8e682
3
+ size 60538880
target/layer-12.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b540c6c8fa36abb0f5362feee22f37ceb54519601b6df0424dc4f99cc030aa94
3
+ size 63946752
target/layer-13.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd548980d5f2548130c1e2aca1936c44c0e4978ecf97ce5aa4139ac060680972
3
+ size 63946752
target/layer-14.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3f766100ee67a929bfc916aa8ec9f7c7c80635bce8deb7883abd6fdd72284e5
3
+ size 63946752
target/layer-15.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a5063a73f899783bd10691b46f80a1dd4496efcfe319d6be385b491ba7b88fc
3
+ size 60538880
target/layer-16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1f98b5d3db5e05d8f6b59fd9476bba10dd76c8269aee8af846fc0c0e0e793dc
3
+ size 63946752
target/layer-17.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17e32d6f4bdd3abf079484e9dc9fee7a68296e6a32c385a8a73ae433713cd670
3
+ size 63946752
target/layer-18.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b1ccc42b72ddbb310dc4af3bfc9635ab8776064dc7e4790cb726b06416f2989
3
+ size 63946752
target/layer-19.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bcbcbde71651e9af35f35cece6edd148781a46a73f16b13dd02c9ec36e12418
3
+ size 60538880
target/layer-2.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f002d9d2505f7407996248597928b6c4076632270490185cb5b70be1a8b762b
3
+ size 63946752
target/layer-20.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcb06b9e11d20c8fbf59f6cdfd61b0f1cd7d11ef21d32c3219b33853c26c66fe
3
+ size 63946752
target/layer-21.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e95de56c909907315f403d5bc1393921a4489bc17bb78472b7a994506ed5fba
3
+ size 63946752
target/layer-22.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d7f882d2951027e32e26520c4e47d7176b3cf9ea0f66b88bce9501bbc1ab036
3
+ size 63946752
target/layer-23.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0961e8ddaa7b660397a3c3101f3b6a5628aec7f73abef78bf7472079b3df03c
3
+ size 60538880
target/layer-24.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3aae1e4199ce04bcbaec3f509068d48d2011eb370658452e73462239d1956c2
3
+ size 63946752
target/layer-25.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aadedfe5a2c0e94e2ed945e6da0824fab3a72385eb12126226cb09fa575df329
3
+ size 63946752
target/layer-26.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23102c5a00b46755be83c6f64112bd8af1d54e38b661f4dd7194cc04be2fc6a9
3
+ size 63946752
target/layer-27.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70ac1c2e8f91cb280e4e68a1b0c2d60f98881e4bc124c160626687d00e72d8a6
3
+ size 60538880
target/layer-28.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c3db42ffa03807b077321d3ef5c2a92d299ffc4f6ac77fda51fdcc8bbe6e596
3
+ size 63946752
target/layer-29.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8671ab45e9d42c2b0b277e31c6505a2404601d98c6b275ddbd8fe50d38e148e8
3
+ size 63946752
target/layer-3.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2452fe8d60215f452cbd9e6fffb58c83fca9c39afa13369fbddb518b6e147393
3
+ size 60538880
target/layer-30.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5ae34e5e1d54b6fc6e20a9d2a79b684d1c991552caa83e8b53a1c0a45b55928
3
+ size 63946752
target/layer-31.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc071b0f76da2ba942f3fc7064eb9ce6f47566df53b1297902b8f565c215a97f
3
+ size 60538880
target/layer-4.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d9d2d6593e7117c102e3b65ead130cbf85ef253592c3f24742222b509f6e193
3
+ size 63946752
target/layer-5.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12a6aaf2a1a85c5b360454c8f5f03ba04161a6d94fc235ecdcbd1926303054be
3
+ size 63946752
target/layer-6.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b76de0811c4eaa296740ee002ded97bc273d8940f30191f91d3bec4e77f35f72
3
+ size 63946752
target/layer-7.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32bc845c4db29319501e36931c60d9f21fd44863dd4d3a81a7e47d1abbe0bdb7
3
+ size 60538880
target/layer-8.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc39819f4c60e0232535e82ca073b38b5b9c297b7ced24d7644dbbbae6adb458
3
+ size 63946752
target/layer-9.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab2eba077bb6d2182b87187ddc994e453c67599707fdefe14bbc69e2678dbe9b
3
+ size 63946752
tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\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>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
tokenizer/config.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 248056,
6
+ "model_type": "qwen3_5",
7
+ "quantization": {
8
+ "group_size": 64,
9
+ "bits": 4,
10
+ "mode": "affine"
11
+ },
12
+ "quantization_config": {
13
+ "group_size": 64,
14
+ "bits": 4,
15
+ "mode": "affine"
16
+ },
17
+ "text_config": {
18
+ "attention_bias": false,
19
+ "attention_dropout": 0.0,
20
+ "attn_output_gate": true,
21
+ "dtype": "bfloat16",
22
+ "eos_token_id": 248044,
23
+ "full_attention_interval": 4,
24
+ "head_dim": 256,
25
+ "hidden_act": "silu",
26
+ "hidden_size": 2560,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 9216,
29
+ "layer_types": [
30
+ "linear_attention",
31
+ "linear_attention",
32
+ "linear_attention",
33
+ "full_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "linear_attention",
37
+ "full_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "linear_attention",
41
+ "full_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "linear_attention",
45
+ "full_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "linear_attention",
49
+ "full_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "linear_attention",
53
+ "full_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "linear_attention",
57
+ "full_attention",
58
+ "linear_attention",
59
+ "linear_attention",
60
+ "linear_attention",
61
+ "full_attention"
62
+ ],
63
+ "linear_conv_kernel_dim": 4,
64
+ "linear_key_head_dim": 128,
65
+ "linear_num_key_heads": 16,
66
+ "linear_num_value_heads": 32,
67
+ "linear_value_head_dim": 128,
68
+ "max_position_embeddings": 262144,
69
+ "mlp_only_layers": [],
70
+ "model_type": "qwen3_5_text",
71
+ "mtp_num_hidden_layers": 1,
72
+ "mtp_use_dedicated_embeddings": false,
73
+ "num_attention_heads": 16,
74
+ "num_hidden_layers": 32,
75
+ "num_key_value_heads": 4,
76
+ "rms_norm_eps": 1e-06,
77
+ "tie_word_embeddings": true,
78
+ "use_cache": true,
79
+ "vocab_size": 248320,
80
+ "mamba_ssm_dtype": "float32",
81
+ "rope_parameters": {
82
+ "mrope_interleaved": true,
83
+ "mrope_section": [
84
+ 11,
85
+ 11,
86
+ 10
87
+ ],
88
+ "rope_type": "default",
89
+ "rope_theta": 10000000,
90
+ "partial_rotary_factor": 0.25
91
+ }
92
+ },
93
+ "tie_word_embeddings": true,
94
+ "transformers_version": "4.57.0.dev0",
95
+ "video_token_id": 248057,
96
+ "vision_config": {
97
+ "deepstack_visual_indexes": [],
98
+ "depth": 24,
99
+ "hidden_act": "gelu_pytorch_tanh",
100
+ "hidden_size": 1024,
101
+ "in_channels": 3,
102
+ "initializer_range": 0.02,
103
+ "intermediate_size": 4096,
104
+ "model_type": "qwen3_5",
105
+ "num_heads": 16,
106
+ "num_position_embeddings": 2304,
107
+ "out_hidden_size": 2560,
108
+ "patch_size": 16,
109
+ "spatial_merge_size": 2,
110
+ "temporal_patch_size": 2
111
+ },
112
+ "vision_end_token_id": 248054,
113
+ "vision_start_token_id": 248053
114
+ }
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
3
+ size 19989343
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "model_max_length": 262144,
14
+ "model_specific_special_tokens": {
15
+ "audio_bos_token": "<|audio_start|>",
16
+ "audio_eos_token": "<|audio_end|>",
17
+ "audio_token": "<|audio_pad|>",
18
+ "image_token": "<|image_pad|>",
19
+ "video_token": "<|video_pad|>",
20
+ "vision_bos_token": "<|vision_start|>",
21
+ "vision_eos_token": "<|vision_end|>"
22
+ },
23
+ "pad_token": "<|endoftext|>",
24
+ "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+",
25
+ "processor_class": "Qwen3VLProcessor",
26
+ "split_special_tokens": false,
27
+ "tokenizer_class": "TokenizersBackend",
28
+ "unk_token": null,
29
+ "video_token": "<|video_pad|>",
30
+ "vision_bos_token": "<|vision_start|>",
31
+ "vision_eos_token": "<|vision_end|>"
32
+ }
tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff