BuboAI commited on
Commit
7a06cdf
·
verified ·
1 Parent(s): 7fa3c36

Upload BuboCoreML v1 pre-compiled stateless Delta-KV ANE bundle

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. README.md +26 -0
  3. chunk_0.mlmodelc/analytics/coremldata.bin +3 -0
  4. chunk_0.mlmodelc/coremldata.bin +3 -0
  5. chunk_0.mlmodelc/metadata.json +629 -0
  6. chunk_0.mlmodelc/model.mil +0 -0
  7. chunk_0.mlmodelc/weights/weight.bin +3 -0
  8. chunk_1.mlmodelc/analytics/coremldata.bin +3 -0
  9. chunk_1.mlmodelc/coremldata.bin +3 -0
  10. chunk_1.mlmodelc/metadata.json +629 -0
  11. chunk_1.mlmodelc/model.mil +0 -0
  12. chunk_1.mlmodelc/weights/weight.bin +3 -0
  13. chunk_2.mlmodelc/analytics/coremldata.bin +3 -0
  14. chunk_2.mlmodelc/coremldata.bin +3 -0
  15. chunk_2.mlmodelc/metadata.json +629 -0
  16. chunk_2.mlmodelc/model.mil +0 -0
  17. chunk_2.mlmodelc/weights/weight.bin +3 -0
  18. chunk_3.mlmodelc/analytics/coremldata.bin +3 -0
  19. chunk_3.mlmodelc/coremldata.bin +3 -0
  20. chunk_3.mlmodelc/metadata.json +629 -0
  21. chunk_3.mlmodelc/model.mil +0 -0
  22. chunk_3.mlmodelc/weights/weight.bin +3 -0
  23. chunk_4.mlmodelc/analytics/coremldata.bin +3 -0
  24. chunk_4.mlmodelc/coremldata.bin +3 -0
  25. chunk_4.mlmodelc/metadata.json +629 -0
  26. chunk_4.mlmodelc/model.mil +0 -0
  27. chunk_4.mlmodelc/weights/weight.bin +3 -0
  28. chunk_5.mlmodelc/analytics/coremldata.bin +3 -0
  29. chunk_5.mlmodelc/coremldata.bin +3 -0
  30. chunk_5.mlmodelc/metadata.json +629 -0
  31. chunk_5.mlmodelc/model.mil +0 -0
  32. chunk_5.mlmodelc/weights/weight.bin +3 -0
  33. chunk_6.mlmodelc/analytics/coremldata.bin +3 -0
  34. chunk_6.mlmodelc/coremldata.bin +3 -0
  35. chunk_6.mlmodelc/metadata.json +629 -0
  36. chunk_6.mlmodelc/model.mil +0 -0
  37. chunk_6.mlmodelc/weights/weight.bin +3 -0
  38. embed_ple_q4.bin +3 -0
  39. embed_ple_scales.bin +3 -0
  40. embed_tokens_q8.bin +3 -0
  41. embed_tokens_scales.bin +3 -0
  42. hf_model/chat_template.jinja +386 -0
  43. hf_model/config.json +197 -0
  44. hf_model/generation_config.json +14 -0
  45. hf_model/processor_config.json +75 -0
  46. hf_model/tokenizer.json +3 -0
  47. hf_model/tokenizer_config.json +120 -0
  48. lm_head_0.mlmodelc/analytics/coremldata.bin +3 -0
  49. lm_head_0.mlmodelc/coremldata.bin +3 -0
  50. lm_head_0.mlmodelc/metadata.json +68 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ hf_model/tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ base_model: google/gemma-4-E4B-it
4
+ tags:
5
+ - coreml
6
+ - apple-neural-engine
7
+ - gemma4
8
+ - vision
9
+ - multimodal
10
+ - stateless
11
+ - bubo
12
+ library_name: coreml
13
+ ---
14
+
15
+ # Gemma 4 E4B Vision — Bubo CoreML ANE (`bubo_coreml_v1`)
16
+
17
+ Pre-compiled, **100% stateless Apple Neural Engine (ANE)** CoreML bundle converted from [`google/gemma-4-E4B-it`](https://huggingface.co/google/gemma-4-E4B-it) for **Bubo** (`sk.reiff.bubo`).
18
+
19
+ ## Architecture & Highlights
20
+ - **Zero `MLState` ops** — 100% stateless Delta-KV Split Attention; works reliably across iOS 18–27 and runs strictly on `.cpuAndNeuralEngine` (even on a locked iPhone).
21
+ - **Multifunction weight-sharing**: single `chunk_0..6.mlmodelc` + `ple_proj.mlmodelc` with shared `prefill` (`T=64`) and `decode` (`T=1`) functions (`ctx=2048`).
22
+ - **Native Gemma 4 KV-sharing**: chunks `0–3` (layers `0..23`) produce sliding (`head_dim=256`, `window=512`) and full (`global_head_dim=512`, proportional `0.25` RoPE) KV caches; chunks `4–6` (layers `24..41`) reuse donor KV with zero extra KV memory.
23
+ - **Zero-RAM mmap embeddings & PLE**: symmetric INT8 token embeddings (`embed_tokens_q8.bin`) + packed symmetric INT4 Per-Layer Embeddings (`embed_ple_q4.bin`).
24
+ - **4-slice INT4 k-means `lm_head`** (`lm_head_0..3.mlmodelc`) with `final_logit_softcapping=30.0`.
25
+ - **Lazy On-Demand Vision (`vision_encoder.mlmodelc`, INT6 LUT, `480×480` → `100` soft tokens)**: stays completely unloaded (`0 MB` RAM) during text/voice chat and loads on demand inside `autoreleasepool` only when an image is attached.
26
+ - **Total bundle size**: ~4.3 GiB (`4,581 MB`).
chunk_0.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16d9077cdd4cba395a7320569b3a15c1c0fdc098bf4b82c3d0fbf9f8927cf766
3
+ size 243
chunk_0.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fcfcda164c30419dd619f9f2b408291b6f440f6867ab5f551da065ac7d3bb1d
3
+ size 1204
chunk_0.mlmodelc/metadata.json ADDED
@@ -0,0 +1,629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 2560]",
13
+ "name" : "hidden_out",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float16",
20
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
21
+ "shortDescription" : "",
22
+ "shape" : "[5, 2, 1, 256]",
23
+ "name" : "k_sliding_new_out",
24
+ "type" : "MultiArray"
25
+ },
26
+ {
27
+ "hasShapeFlexibility" : "0",
28
+ "isOptional" : "0",
29
+ "dataType" : "Float16",
30
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
31
+ "shortDescription" : "",
32
+ "shape" : "[5, 2, 1, 256]",
33
+ "name" : "v_sliding_new_out",
34
+ "type" : "MultiArray"
35
+ },
36
+ {
37
+ "hasShapeFlexibility" : "0",
38
+ "isOptional" : "0",
39
+ "dataType" : "Float16",
40
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
41
+ "shortDescription" : "",
42
+ "shape" : "[1, 2, 1, 512]",
43
+ "name" : "k_full_new_out",
44
+ "type" : "MultiArray"
45
+ },
46
+ {
47
+ "hasShapeFlexibility" : "0",
48
+ "isOptional" : "0",
49
+ "dataType" : "Float16",
50
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
51
+ "shortDescription" : "",
52
+ "shape" : "[1, 2, 1, 512]",
53
+ "name" : "v_full_new_out",
54
+ "type" : "MultiArray"
55
+ }
56
+ ],
57
+ "modelParameters" : [
58
+
59
+ ],
60
+ "specificationVersion" : 9,
61
+ "functions" : [
62
+ {
63
+ "inputSchema" : [
64
+ {
65
+ "hasShapeFlexibility" : "0",
66
+ "isOptional" : "0",
67
+ "dataType" : "Float16",
68
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
69
+ "shortDescription" : "",
70
+ "shape" : "[1, 1, 2560]",
71
+ "name" : "hidden_in",
72
+ "type" : "MultiArray"
73
+ },
74
+ {
75
+ "hasShapeFlexibility" : "0",
76
+ "isOptional" : "0",
77
+ "dataType" : "Float16",
78
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
79
+ "shortDescription" : "",
80
+ "shape" : "[6, 1, 256]",
81
+ "name" : "ple_in",
82
+ "type" : "MultiArray"
83
+ },
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
89
+ "shortDescription" : "",
90
+ "shape" : "[1, 1, 1, 256]",
91
+ "name" : "cos_sliding",
92
+ "type" : "MultiArray"
93
+ },
94
+ {
95
+ "hasShapeFlexibility" : "0",
96
+ "isOptional" : "0",
97
+ "dataType" : "Float16",
98
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
99
+ "shortDescription" : "",
100
+ "shape" : "[1, 1, 1, 256]",
101
+ "name" : "sin_sliding",
102
+ "type" : "MultiArray"
103
+ },
104
+ {
105
+ "hasShapeFlexibility" : "0",
106
+ "isOptional" : "0",
107
+ "dataType" : "Float16",
108
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
109
+ "shortDescription" : "",
110
+ "shape" : "[1, 1, 1, 512]",
111
+ "name" : "cos_full",
112
+ "type" : "MultiArray"
113
+ },
114
+ {
115
+ "hasShapeFlexibility" : "0",
116
+ "isOptional" : "0",
117
+ "dataType" : "Float16",
118
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
119
+ "shortDescription" : "",
120
+ "shape" : "[1, 1, 1, 512]",
121
+ "name" : "sin_full",
122
+ "type" : "MultiArray"
123
+ },
124
+ {
125
+ "hasShapeFlexibility" : "0",
126
+ "isOptional" : "0",
127
+ "dataType" : "Float16",
128
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
129
+ "shortDescription" : "",
130
+ "shape" : "[1, 1, 1, 2049]",
131
+ "name" : "causal_mask_sliding",
132
+ "type" : "MultiArray"
133
+ },
134
+ {
135
+ "hasShapeFlexibility" : "0",
136
+ "isOptional" : "0",
137
+ "dataType" : "Float16",
138
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
139
+ "shortDescription" : "",
140
+ "shape" : "[1, 1, 1, 2049]",
141
+ "name" : "causal_mask_full",
142
+ "type" : "MultiArray"
143
+ },
144
+ {
145
+ "hasShapeFlexibility" : "0",
146
+ "isOptional" : "0",
147
+ "dataType" : "Float16",
148
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
149
+ "shortDescription" : "",
150
+ "shape" : "[5, 2, 2048, 256]",
151
+ "name" : "k_sliding_in",
152
+ "type" : "MultiArray"
153
+ },
154
+ {
155
+ "hasShapeFlexibility" : "0",
156
+ "isOptional" : "0",
157
+ "dataType" : "Float16",
158
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
159
+ "shortDescription" : "",
160
+ "shape" : "[5, 2, 2048, 256]",
161
+ "name" : "v_sliding_in",
162
+ "type" : "MultiArray"
163
+ },
164
+ {
165
+ "hasShapeFlexibility" : "0",
166
+ "isOptional" : "0",
167
+ "dataType" : "Float16",
168
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
169
+ "shortDescription" : "",
170
+ "shape" : "[1, 2, 2048, 512]",
171
+ "name" : "k_full_in",
172
+ "type" : "MultiArray"
173
+ },
174
+ {
175
+ "hasShapeFlexibility" : "0",
176
+ "isOptional" : "0",
177
+ "dataType" : "Float16",
178
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
179
+ "shortDescription" : "",
180
+ "shape" : "[1, 2, 2048, 512]",
181
+ "name" : "v_full_in",
182
+ "type" : "MultiArray"
183
+ }
184
+ ],
185
+ "computePrecision" : "Mixed (Float16, Int32)",
186
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
187
+ "stateSchema" : [
188
+
189
+ ],
190
+ "outputSchema" : [
191
+ {
192
+ "hasShapeFlexibility" : "0",
193
+ "isOptional" : "0",
194
+ "dataType" : "Float16",
195
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
196
+ "shortDescription" : "",
197
+ "shape" : "[1, 1, 2560]",
198
+ "name" : "hidden_out",
199
+ "type" : "MultiArray"
200
+ },
201
+ {
202
+ "hasShapeFlexibility" : "0",
203
+ "isOptional" : "0",
204
+ "dataType" : "Float16",
205
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
206
+ "shortDescription" : "",
207
+ "shape" : "[5, 2, 1, 256]",
208
+ "name" : "k_sliding_new_out",
209
+ "type" : "MultiArray"
210
+ },
211
+ {
212
+ "hasShapeFlexibility" : "0",
213
+ "isOptional" : "0",
214
+ "dataType" : "Float16",
215
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
216
+ "shortDescription" : "",
217
+ "shape" : "[5, 2, 1, 256]",
218
+ "name" : "v_sliding_new_out",
219
+ "type" : "MultiArray"
220
+ },
221
+ {
222
+ "hasShapeFlexibility" : "0",
223
+ "isOptional" : "0",
224
+ "dataType" : "Float16",
225
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
226
+ "shortDescription" : "",
227
+ "shape" : "[1, 2, 1, 512]",
228
+ "name" : "k_full_new_out",
229
+ "type" : "MultiArray"
230
+ },
231
+ {
232
+ "hasShapeFlexibility" : "0",
233
+ "isOptional" : "0",
234
+ "dataType" : "Float16",
235
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
236
+ "shortDescription" : "",
237
+ "shape" : "[1, 2, 1, 512]",
238
+ "name" : "v_full_new_out",
239
+ "type" : "MultiArray"
240
+ }
241
+ ],
242
+ "name" : "decode",
243
+ "mlProgramOperationTypeHistogram" : {
244
+ "Ios18.constexprLutToDense" : 54,
245
+ "Ios16.reduceSum" : 6,
246
+ "Ios18.conv" : 54,
247
+ "Ios18.matmul" : 24,
248
+ "Ios18.sub" : 6,
249
+ "Ios18.gelu" : 12,
250
+ "Ios18.concat" : 70,
251
+ "Ios18.add" : 42,
252
+ "Ios18.realDiv" : 6,
253
+ "Ios18.transpose" : 84,
254
+ "Ios18.layerNorm" : 48,
255
+ "Tile" : 2,
256
+ "Ios16.reduceMax" : 6,
257
+ "Ios18.reshape" : 42,
258
+ "Split" : 69,
259
+ "Ios18.exp" : 6,
260
+ "Ios18.mul" : 144
261
+ }
262
+ },
263
+ {
264
+ "inputSchema" : [
265
+ {
266
+ "hasShapeFlexibility" : "0",
267
+ "isOptional" : "0",
268
+ "dataType" : "Float16",
269
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
270
+ "shortDescription" : "",
271
+ "shape" : "[1, 64, 2560]",
272
+ "name" : "hidden_in",
273
+ "type" : "MultiArray"
274
+ },
275
+ {
276
+ "hasShapeFlexibility" : "0",
277
+ "isOptional" : "0",
278
+ "dataType" : "Float16",
279
+ "formattedType" : "MultiArray (Float16 6 × 64 × 256)",
280
+ "shortDescription" : "",
281
+ "shape" : "[6, 64, 256]",
282
+ "name" : "ple_in",
283
+ "type" : "MultiArray"
284
+ },
285
+ {
286
+ "hasShapeFlexibility" : "0",
287
+ "isOptional" : "0",
288
+ "dataType" : "Float16",
289
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
290
+ "shortDescription" : "",
291
+ "shape" : "[1, 1, 64, 256]",
292
+ "name" : "cos_sliding",
293
+ "type" : "MultiArray"
294
+ },
295
+ {
296
+ "hasShapeFlexibility" : "0",
297
+ "isOptional" : "0",
298
+ "dataType" : "Float16",
299
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
300
+ "shortDescription" : "",
301
+ "shape" : "[1, 1, 64, 256]",
302
+ "name" : "sin_sliding",
303
+ "type" : "MultiArray"
304
+ },
305
+ {
306
+ "hasShapeFlexibility" : "0",
307
+ "isOptional" : "0",
308
+ "dataType" : "Float16",
309
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
310
+ "shortDescription" : "",
311
+ "shape" : "[1, 1, 64, 512]",
312
+ "name" : "cos_full",
313
+ "type" : "MultiArray"
314
+ },
315
+ {
316
+ "hasShapeFlexibility" : "0",
317
+ "isOptional" : "0",
318
+ "dataType" : "Float16",
319
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
320
+ "shortDescription" : "",
321
+ "shape" : "[1, 1, 64, 512]",
322
+ "name" : "sin_full",
323
+ "type" : "MultiArray"
324
+ },
325
+ {
326
+ "hasShapeFlexibility" : "0",
327
+ "isOptional" : "0",
328
+ "dataType" : "Float16",
329
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
330
+ "shortDescription" : "",
331
+ "shape" : "[1, 1, 64, 2112]",
332
+ "name" : "causal_mask_sliding",
333
+ "type" : "MultiArray"
334
+ },
335
+ {
336
+ "hasShapeFlexibility" : "0",
337
+ "isOptional" : "0",
338
+ "dataType" : "Float16",
339
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
340
+ "shortDescription" : "",
341
+ "shape" : "[1, 1, 64, 2112]",
342
+ "name" : "causal_mask_full",
343
+ "type" : "MultiArray"
344
+ },
345
+ {
346
+ "hasShapeFlexibility" : "0",
347
+ "isOptional" : "0",
348
+ "dataType" : "Float16",
349
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
350
+ "shortDescription" : "",
351
+ "shape" : "[5, 2, 2048, 256]",
352
+ "name" : "k_sliding_in",
353
+ "type" : "MultiArray"
354
+ },
355
+ {
356
+ "hasShapeFlexibility" : "0",
357
+ "isOptional" : "0",
358
+ "dataType" : "Float16",
359
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
360
+ "shortDescription" : "",
361
+ "shape" : "[5, 2, 2048, 256]",
362
+ "name" : "v_sliding_in",
363
+ "type" : "MultiArray"
364
+ },
365
+ {
366
+ "hasShapeFlexibility" : "0",
367
+ "isOptional" : "0",
368
+ "dataType" : "Float16",
369
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
370
+ "shortDescription" : "",
371
+ "shape" : "[1, 2, 2048, 512]",
372
+ "name" : "k_full_in",
373
+ "type" : "MultiArray"
374
+ },
375
+ {
376
+ "hasShapeFlexibility" : "0",
377
+ "isOptional" : "0",
378
+ "dataType" : "Float16",
379
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
380
+ "shortDescription" : "",
381
+ "shape" : "[1, 2, 2048, 512]",
382
+ "name" : "v_full_in",
383
+ "type" : "MultiArray"
384
+ }
385
+ ],
386
+ "computePrecision" : "Mixed (Float16, Int32)",
387
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
388
+ "stateSchema" : [
389
+
390
+ ],
391
+ "outputSchema" : [
392
+ {
393
+ "hasShapeFlexibility" : "0",
394
+ "isOptional" : "0",
395
+ "dataType" : "Float16",
396
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
397
+ "shortDescription" : "",
398
+ "shape" : "[1, 64, 2560]",
399
+ "name" : "hidden_out",
400
+ "type" : "MultiArray"
401
+ },
402
+ {
403
+ "hasShapeFlexibility" : "0",
404
+ "isOptional" : "0",
405
+ "dataType" : "Float16",
406
+ "formattedType" : "MultiArray (Float16 5 × 2 × 64 × 256)",
407
+ "shortDescription" : "",
408
+ "shape" : "[5, 2, 64, 256]",
409
+ "name" : "k_sliding_new_out",
410
+ "type" : "MultiArray"
411
+ },
412
+ {
413
+ "hasShapeFlexibility" : "0",
414
+ "isOptional" : "0",
415
+ "dataType" : "Float16",
416
+ "formattedType" : "MultiArray (Float16 5 × 2 × 64 × 256)",
417
+ "shortDescription" : "",
418
+ "shape" : "[5, 2, 64, 256]",
419
+ "name" : "v_sliding_new_out",
420
+ "type" : "MultiArray"
421
+ },
422
+ {
423
+ "hasShapeFlexibility" : "0",
424
+ "isOptional" : "0",
425
+ "dataType" : "Float16",
426
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
427
+ "shortDescription" : "",
428
+ "shape" : "[1, 2, 64, 512]",
429
+ "name" : "k_full_new_out",
430
+ "type" : "MultiArray"
431
+ },
432
+ {
433
+ "hasShapeFlexibility" : "0",
434
+ "isOptional" : "0",
435
+ "dataType" : "Float16",
436
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
437
+ "shortDescription" : "",
438
+ "shape" : "[1, 2, 64, 512]",
439
+ "name" : "v_full_new_out",
440
+ "type" : "MultiArray"
441
+ }
442
+ ],
443
+ "name" : "prefill",
444
+ "mlProgramOperationTypeHistogram" : {
445
+ "Ios18.constexprLutToDense" : 54,
446
+ "Ios16.reduceSum" : 6,
447
+ "Ios18.conv" : 54,
448
+ "Ios18.matmul" : 24,
449
+ "Ios18.sub" : 6,
450
+ "Ios18.gelu" : 12,
451
+ "Ios18.concat" : 70,
452
+ "Ios18.add" : 42,
453
+ "Ios18.realDiv" : 6,
454
+ "Ios18.transpose" : 96,
455
+ "Ios18.layerNorm" : 48,
456
+ "Tile" : 2,
457
+ "Ios16.reduceMax" : 6,
458
+ "Ios18.reshape" : 36,
459
+ "Split" : 69,
460
+ "Ios18.exp" : 6,
461
+ "Ios18.mul" : 144
462
+ }
463
+ }
464
+ ],
465
+ "mlProgramOperationTypeHistogram" : {
466
+ "Ios18.constexprLutToDense" : 54,
467
+ "Ios16.reduceSum" : 6,
468
+ "Ios18.conv" : 54,
469
+ "Ios18.matmul" : 24,
470
+ "Ios18.sub" : 6,
471
+ "Ios18.gelu" : 12,
472
+ "Ios18.concat" : 70,
473
+ "Ios18.add" : 42,
474
+ "Ios18.realDiv" : 6,
475
+ "Ios18.transpose" : 84,
476
+ "Ios18.layerNorm" : 48,
477
+ "Tile" : 2,
478
+ "Ios16.reduceMax" : 6,
479
+ "Ios18.reshape" : 42,
480
+ "Split" : 69,
481
+ "Ios18.exp" : 6,
482
+ "Ios18.mul" : 144
483
+ },
484
+ "isUpdatable" : "0",
485
+ "stateSchema" : [
486
+
487
+ ],
488
+ "availability" : {
489
+ "macOS" : "15.0",
490
+ "tvOS" : "18.0",
491
+ "visionOS" : "2.0",
492
+ "watchOS" : "11.0",
493
+ "iOS" : "18.0",
494
+ "macCatalyst" : "18.0"
495
+ },
496
+ "computePrecision" : "Mixed (Float16, Int32)",
497
+ "modelType" : {
498
+ "name" : "MLModelType_mlProgram"
499
+ },
500
+ "inputSchema" : [
501
+ {
502
+ "hasShapeFlexibility" : "0",
503
+ "isOptional" : "0",
504
+ "dataType" : "Float16",
505
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
506
+ "shortDescription" : "",
507
+ "shape" : "[1, 1, 2560]",
508
+ "name" : "hidden_in",
509
+ "type" : "MultiArray"
510
+ },
511
+ {
512
+ "hasShapeFlexibility" : "0",
513
+ "isOptional" : "0",
514
+ "dataType" : "Float16",
515
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
516
+ "shortDescription" : "",
517
+ "shape" : "[6, 1, 256]",
518
+ "name" : "ple_in",
519
+ "type" : "MultiArray"
520
+ },
521
+ {
522
+ "hasShapeFlexibility" : "0",
523
+ "isOptional" : "0",
524
+ "dataType" : "Float16",
525
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
526
+ "shortDescription" : "",
527
+ "shape" : "[1, 1, 1, 256]",
528
+ "name" : "cos_sliding",
529
+ "type" : "MultiArray"
530
+ },
531
+ {
532
+ "hasShapeFlexibility" : "0",
533
+ "isOptional" : "0",
534
+ "dataType" : "Float16",
535
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
536
+ "shortDescription" : "",
537
+ "shape" : "[1, 1, 1, 256]",
538
+ "name" : "sin_sliding",
539
+ "type" : "MultiArray"
540
+ },
541
+ {
542
+ "hasShapeFlexibility" : "0",
543
+ "isOptional" : "0",
544
+ "dataType" : "Float16",
545
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
546
+ "shortDescription" : "",
547
+ "shape" : "[1, 1, 1, 512]",
548
+ "name" : "cos_full",
549
+ "type" : "MultiArray"
550
+ },
551
+ {
552
+ "hasShapeFlexibility" : "0",
553
+ "isOptional" : "0",
554
+ "dataType" : "Float16",
555
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
556
+ "shortDescription" : "",
557
+ "shape" : "[1, 1, 1, 512]",
558
+ "name" : "sin_full",
559
+ "type" : "MultiArray"
560
+ },
561
+ {
562
+ "hasShapeFlexibility" : "0",
563
+ "isOptional" : "0",
564
+ "dataType" : "Float16",
565
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
566
+ "shortDescription" : "",
567
+ "shape" : "[1, 1, 1, 2049]",
568
+ "name" : "causal_mask_sliding",
569
+ "type" : "MultiArray"
570
+ },
571
+ {
572
+ "hasShapeFlexibility" : "0",
573
+ "isOptional" : "0",
574
+ "dataType" : "Float16",
575
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
576
+ "shortDescription" : "",
577
+ "shape" : "[1, 1, 1, 2049]",
578
+ "name" : "causal_mask_full",
579
+ "type" : "MultiArray"
580
+ },
581
+ {
582
+ "hasShapeFlexibility" : "0",
583
+ "isOptional" : "0",
584
+ "dataType" : "Float16",
585
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
586
+ "shortDescription" : "",
587
+ "shape" : "[5, 2, 2048, 256]",
588
+ "name" : "k_sliding_in",
589
+ "type" : "MultiArray"
590
+ },
591
+ {
592
+ "hasShapeFlexibility" : "0",
593
+ "isOptional" : "0",
594
+ "dataType" : "Float16",
595
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
596
+ "shortDescription" : "",
597
+ "shape" : "[5, 2, 2048, 256]",
598
+ "name" : "v_sliding_in",
599
+ "type" : "MultiArray"
600
+ },
601
+ {
602
+ "hasShapeFlexibility" : "0",
603
+ "isOptional" : "0",
604
+ "dataType" : "Float16",
605
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
606
+ "shortDescription" : "",
607
+ "shape" : "[1, 2, 2048, 512]",
608
+ "name" : "k_full_in",
609
+ "type" : "MultiArray"
610
+ },
611
+ {
612
+ "hasShapeFlexibility" : "0",
613
+ "isOptional" : "0",
614
+ "dataType" : "Float16",
615
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
616
+ "shortDescription" : "",
617
+ "shape" : "[1, 2, 2048, 512]",
618
+ "name" : "v_full_in",
619
+ "type" : "MultiArray"
620
+ }
621
+ ],
622
+ "defaultFunctionName" : "decode",
623
+ "generatedClassName" : "chunk_0",
624
+ "userDefinedMetadata" : {
625
+
626
+ },
627
+ "method" : "predict"
628
+ }
629
+ ]
chunk_0.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
chunk_0.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db99758a92bb7fdd0c9213b2a058ed36334d06b9922af4c32bd065aa006af2e4
3
+ size 286099392
chunk_1.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59097b1dd01168659039ed53cfae4ce170d27a9e80556453273be41240da3a14
3
+ size 243
chunk_1.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fcfcda164c30419dd619f9f2b408291b6f440f6867ab5f551da065ac7d3bb1d
3
+ size 1204
chunk_1.mlmodelc/metadata.json ADDED
@@ -0,0 +1,629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 2560]",
13
+ "name" : "hidden_out",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float16",
20
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
21
+ "shortDescription" : "",
22
+ "shape" : "[5, 2, 1, 256]",
23
+ "name" : "k_sliding_new_out",
24
+ "type" : "MultiArray"
25
+ },
26
+ {
27
+ "hasShapeFlexibility" : "0",
28
+ "isOptional" : "0",
29
+ "dataType" : "Float16",
30
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
31
+ "shortDescription" : "",
32
+ "shape" : "[5, 2, 1, 256]",
33
+ "name" : "v_sliding_new_out",
34
+ "type" : "MultiArray"
35
+ },
36
+ {
37
+ "hasShapeFlexibility" : "0",
38
+ "isOptional" : "0",
39
+ "dataType" : "Float16",
40
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
41
+ "shortDescription" : "",
42
+ "shape" : "[1, 2, 1, 512]",
43
+ "name" : "k_full_new_out",
44
+ "type" : "MultiArray"
45
+ },
46
+ {
47
+ "hasShapeFlexibility" : "0",
48
+ "isOptional" : "0",
49
+ "dataType" : "Float16",
50
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
51
+ "shortDescription" : "",
52
+ "shape" : "[1, 2, 1, 512]",
53
+ "name" : "v_full_new_out",
54
+ "type" : "MultiArray"
55
+ }
56
+ ],
57
+ "modelParameters" : [
58
+
59
+ ],
60
+ "specificationVersion" : 9,
61
+ "functions" : [
62
+ {
63
+ "inputSchema" : [
64
+ {
65
+ "hasShapeFlexibility" : "0",
66
+ "isOptional" : "0",
67
+ "dataType" : "Float16",
68
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
69
+ "shortDescription" : "",
70
+ "shape" : "[1, 1, 2560]",
71
+ "name" : "hidden_in",
72
+ "type" : "MultiArray"
73
+ },
74
+ {
75
+ "hasShapeFlexibility" : "0",
76
+ "isOptional" : "0",
77
+ "dataType" : "Float16",
78
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
79
+ "shortDescription" : "",
80
+ "shape" : "[6, 1, 256]",
81
+ "name" : "ple_in",
82
+ "type" : "MultiArray"
83
+ },
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
89
+ "shortDescription" : "",
90
+ "shape" : "[1, 1, 1, 256]",
91
+ "name" : "cos_sliding",
92
+ "type" : "MultiArray"
93
+ },
94
+ {
95
+ "hasShapeFlexibility" : "0",
96
+ "isOptional" : "0",
97
+ "dataType" : "Float16",
98
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
99
+ "shortDescription" : "",
100
+ "shape" : "[1, 1, 1, 256]",
101
+ "name" : "sin_sliding",
102
+ "type" : "MultiArray"
103
+ },
104
+ {
105
+ "hasShapeFlexibility" : "0",
106
+ "isOptional" : "0",
107
+ "dataType" : "Float16",
108
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
109
+ "shortDescription" : "",
110
+ "shape" : "[1, 1, 1, 512]",
111
+ "name" : "cos_full",
112
+ "type" : "MultiArray"
113
+ },
114
+ {
115
+ "hasShapeFlexibility" : "0",
116
+ "isOptional" : "0",
117
+ "dataType" : "Float16",
118
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
119
+ "shortDescription" : "",
120
+ "shape" : "[1, 1, 1, 512]",
121
+ "name" : "sin_full",
122
+ "type" : "MultiArray"
123
+ },
124
+ {
125
+ "hasShapeFlexibility" : "0",
126
+ "isOptional" : "0",
127
+ "dataType" : "Float16",
128
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
129
+ "shortDescription" : "",
130
+ "shape" : "[1, 1, 1, 2049]",
131
+ "name" : "causal_mask_sliding",
132
+ "type" : "MultiArray"
133
+ },
134
+ {
135
+ "hasShapeFlexibility" : "0",
136
+ "isOptional" : "0",
137
+ "dataType" : "Float16",
138
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
139
+ "shortDescription" : "",
140
+ "shape" : "[1, 1, 1, 2049]",
141
+ "name" : "causal_mask_full",
142
+ "type" : "MultiArray"
143
+ },
144
+ {
145
+ "hasShapeFlexibility" : "0",
146
+ "isOptional" : "0",
147
+ "dataType" : "Float16",
148
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
149
+ "shortDescription" : "",
150
+ "shape" : "[5, 2, 2048, 256]",
151
+ "name" : "k_sliding_in",
152
+ "type" : "MultiArray"
153
+ },
154
+ {
155
+ "hasShapeFlexibility" : "0",
156
+ "isOptional" : "0",
157
+ "dataType" : "Float16",
158
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
159
+ "shortDescription" : "",
160
+ "shape" : "[5, 2, 2048, 256]",
161
+ "name" : "v_sliding_in",
162
+ "type" : "MultiArray"
163
+ },
164
+ {
165
+ "hasShapeFlexibility" : "0",
166
+ "isOptional" : "0",
167
+ "dataType" : "Float16",
168
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
169
+ "shortDescription" : "",
170
+ "shape" : "[1, 2, 2048, 512]",
171
+ "name" : "k_full_in",
172
+ "type" : "MultiArray"
173
+ },
174
+ {
175
+ "hasShapeFlexibility" : "0",
176
+ "isOptional" : "0",
177
+ "dataType" : "Float16",
178
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
179
+ "shortDescription" : "",
180
+ "shape" : "[1, 2, 2048, 512]",
181
+ "name" : "v_full_in",
182
+ "type" : "MultiArray"
183
+ }
184
+ ],
185
+ "computePrecision" : "Mixed (Float16, Int32)",
186
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
187
+ "stateSchema" : [
188
+
189
+ ],
190
+ "outputSchema" : [
191
+ {
192
+ "hasShapeFlexibility" : "0",
193
+ "isOptional" : "0",
194
+ "dataType" : "Float16",
195
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
196
+ "shortDescription" : "",
197
+ "shape" : "[1, 1, 2560]",
198
+ "name" : "hidden_out",
199
+ "type" : "MultiArray"
200
+ },
201
+ {
202
+ "hasShapeFlexibility" : "0",
203
+ "isOptional" : "0",
204
+ "dataType" : "Float16",
205
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
206
+ "shortDescription" : "",
207
+ "shape" : "[5, 2, 1, 256]",
208
+ "name" : "k_sliding_new_out",
209
+ "type" : "MultiArray"
210
+ },
211
+ {
212
+ "hasShapeFlexibility" : "0",
213
+ "isOptional" : "0",
214
+ "dataType" : "Float16",
215
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
216
+ "shortDescription" : "",
217
+ "shape" : "[5, 2, 1, 256]",
218
+ "name" : "v_sliding_new_out",
219
+ "type" : "MultiArray"
220
+ },
221
+ {
222
+ "hasShapeFlexibility" : "0",
223
+ "isOptional" : "0",
224
+ "dataType" : "Float16",
225
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
226
+ "shortDescription" : "",
227
+ "shape" : "[1, 2, 1, 512]",
228
+ "name" : "k_full_new_out",
229
+ "type" : "MultiArray"
230
+ },
231
+ {
232
+ "hasShapeFlexibility" : "0",
233
+ "isOptional" : "0",
234
+ "dataType" : "Float16",
235
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
236
+ "shortDescription" : "",
237
+ "shape" : "[1, 2, 1, 512]",
238
+ "name" : "v_full_new_out",
239
+ "type" : "MultiArray"
240
+ }
241
+ ],
242
+ "name" : "decode",
243
+ "mlProgramOperationTypeHistogram" : {
244
+ "Ios18.constexprLutToDense" : 54,
245
+ "Ios16.reduceSum" : 6,
246
+ "Ios18.conv" : 54,
247
+ "Ios18.matmul" : 24,
248
+ "Ios18.sub" : 6,
249
+ "Ios18.gelu" : 12,
250
+ "Ios18.concat" : 70,
251
+ "Ios18.add" : 42,
252
+ "Ios18.realDiv" : 6,
253
+ "Ios18.transpose" : 84,
254
+ "Ios18.layerNorm" : 48,
255
+ "Tile" : 2,
256
+ "Ios16.reduceMax" : 6,
257
+ "Ios18.reshape" : 42,
258
+ "Split" : 69,
259
+ "Ios18.exp" : 6,
260
+ "Ios18.mul" : 144
261
+ }
262
+ },
263
+ {
264
+ "inputSchema" : [
265
+ {
266
+ "hasShapeFlexibility" : "0",
267
+ "isOptional" : "0",
268
+ "dataType" : "Float16",
269
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
270
+ "shortDescription" : "",
271
+ "shape" : "[1, 64, 2560]",
272
+ "name" : "hidden_in",
273
+ "type" : "MultiArray"
274
+ },
275
+ {
276
+ "hasShapeFlexibility" : "0",
277
+ "isOptional" : "0",
278
+ "dataType" : "Float16",
279
+ "formattedType" : "MultiArray (Float16 6 × 64 × 256)",
280
+ "shortDescription" : "",
281
+ "shape" : "[6, 64, 256]",
282
+ "name" : "ple_in",
283
+ "type" : "MultiArray"
284
+ },
285
+ {
286
+ "hasShapeFlexibility" : "0",
287
+ "isOptional" : "0",
288
+ "dataType" : "Float16",
289
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
290
+ "shortDescription" : "",
291
+ "shape" : "[1, 1, 64, 256]",
292
+ "name" : "cos_sliding",
293
+ "type" : "MultiArray"
294
+ },
295
+ {
296
+ "hasShapeFlexibility" : "0",
297
+ "isOptional" : "0",
298
+ "dataType" : "Float16",
299
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
300
+ "shortDescription" : "",
301
+ "shape" : "[1, 1, 64, 256]",
302
+ "name" : "sin_sliding",
303
+ "type" : "MultiArray"
304
+ },
305
+ {
306
+ "hasShapeFlexibility" : "0",
307
+ "isOptional" : "0",
308
+ "dataType" : "Float16",
309
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
310
+ "shortDescription" : "",
311
+ "shape" : "[1, 1, 64, 512]",
312
+ "name" : "cos_full",
313
+ "type" : "MultiArray"
314
+ },
315
+ {
316
+ "hasShapeFlexibility" : "0",
317
+ "isOptional" : "0",
318
+ "dataType" : "Float16",
319
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
320
+ "shortDescription" : "",
321
+ "shape" : "[1, 1, 64, 512]",
322
+ "name" : "sin_full",
323
+ "type" : "MultiArray"
324
+ },
325
+ {
326
+ "hasShapeFlexibility" : "0",
327
+ "isOptional" : "0",
328
+ "dataType" : "Float16",
329
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
330
+ "shortDescription" : "",
331
+ "shape" : "[1, 1, 64, 2112]",
332
+ "name" : "causal_mask_sliding",
333
+ "type" : "MultiArray"
334
+ },
335
+ {
336
+ "hasShapeFlexibility" : "0",
337
+ "isOptional" : "0",
338
+ "dataType" : "Float16",
339
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
340
+ "shortDescription" : "",
341
+ "shape" : "[1, 1, 64, 2112]",
342
+ "name" : "causal_mask_full",
343
+ "type" : "MultiArray"
344
+ },
345
+ {
346
+ "hasShapeFlexibility" : "0",
347
+ "isOptional" : "0",
348
+ "dataType" : "Float16",
349
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
350
+ "shortDescription" : "",
351
+ "shape" : "[5, 2, 2048, 256]",
352
+ "name" : "k_sliding_in",
353
+ "type" : "MultiArray"
354
+ },
355
+ {
356
+ "hasShapeFlexibility" : "0",
357
+ "isOptional" : "0",
358
+ "dataType" : "Float16",
359
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
360
+ "shortDescription" : "",
361
+ "shape" : "[5, 2, 2048, 256]",
362
+ "name" : "v_sliding_in",
363
+ "type" : "MultiArray"
364
+ },
365
+ {
366
+ "hasShapeFlexibility" : "0",
367
+ "isOptional" : "0",
368
+ "dataType" : "Float16",
369
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
370
+ "shortDescription" : "",
371
+ "shape" : "[1, 2, 2048, 512]",
372
+ "name" : "k_full_in",
373
+ "type" : "MultiArray"
374
+ },
375
+ {
376
+ "hasShapeFlexibility" : "0",
377
+ "isOptional" : "0",
378
+ "dataType" : "Float16",
379
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
380
+ "shortDescription" : "",
381
+ "shape" : "[1, 2, 2048, 512]",
382
+ "name" : "v_full_in",
383
+ "type" : "MultiArray"
384
+ }
385
+ ],
386
+ "computePrecision" : "Mixed (Float16, Int32)",
387
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
388
+ "stateSchema" : [
389
+
390
+ ],
391
+ "outputSchema" : [
392
+ {
393
+ "hasShapeFlexibility" : "0",
394
+ "isOptional" : "0",
395
+ "dataType" : "Float16",
396
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
397
+ "shortDescription" : "",
398
+ "shape" : "[1, 64, 2560]",
399
+ "name" : "hidden_out",
400
+ "type" : "MultiArray"
401
+ },
402
+ {
403
+ "hasShapeFlexibility" : "0",
404
+ "isOptional" : "0",
405
+ "dataType" : "Float16",
406
+ "formattedType" : "MultiArray (Float16 5 × 2 × 64 × 256)",
407
+ "shortDescription" : "",
408
+ "shape" : "[5, 2, 64, 256]",
409
+ "name" : "k_sliding_new_out",
410
+ "type" : "MultiArray"
411
+ },
412
+ {
413
+ "hasShapeFlexibility" : "0",
414
+ "isOptional" : "0",
415
+ "dataType" : "Float16",
416
+ "formattedType" : "MultiArray (Float16 5 × 2 × 64 × 256)",
417
+ "shortDescription" : "",
418
+ "shape" : "[5, 2, 64, 256]",
419
+ "name" : "v_sliding_new_out",
420
+ "type" : "MultiArray"
421
+ },
422
+ {
423
+ "hasShapeFlexibility" : "0",
424
+ "isOptional" : "0",
425
+ "dataType" : "Float16",
426
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
427
+ "shortDescription" : "",
428
+ "shape" : "[1, 2, 64, 512]",
429
+ "name" : "k_full_new_out",
430
+ "type" : "MultiArray"
431
+ },
432
+ {
433
+ "hasShapeFlexibility" : "0",
434
+ "isOptional" : "0",
435
+ "dataType" : "Float16",
436
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
437
+ "shortDescription" : "",
438
+ "shape" : "[1, 2, 64, 512]",
439
+ "name" : "v_full_new_out",
440
+ "type" : "MultiArray"
441
+ }
442
+ ],
443
+ "name" : "prefill",
444
+ "mlProgramOperationTypeHistogram" : {
445
+ "Ios18.constexprLutToDense" : 54,
446
+ "Ios16.reduceSum" : 6,
447
+ "Ios18.conv" : 54,
448
+ "Ios18.matmul" : 24,
449
+ "Ios18.sub" : 6,
450
+ "Ios18.gelu" : 12,
451
+ "Ios18.concat" : 70,
452
+ "Ios18.add" : 42,
453
+ "Ios18.realDiv" : 6,
454
+ "Ios18.transpose" : 96,
455
+ "Ios18.layerNorm" : 48,
456
+ "Tile" : 2,
457
+ "Ios16.reduceMax" : 6,
458
+ "Ios18.reshape" : 36,
459
+ "Split" : 69,
460
+ "Ios18.exp" : 6,
461
+ "Ios18.mul" : 144
462
+ }
463
+ }
464
+ ],
465
+ "mlProgramOperationTypeHistogram" : {
466
+ "Ios18.constexprLutToDense" : 54,
467
+ "Ios16.reduceSum" : 6,
468
+ "Ios18.conv" : 54,
469
+ "Ios18.matmul" : 24,
470
+ "Ios18.sub" : 6,
471
+ "Ios18.gelu" : 12,
472
+ "Ios18.concat" : 70,
473
+ "Ios18.add" : 42,
474
+ "Ios18.realDiv" : 6,
475
+ "Ios18.transpose" : 84,
476
+ "Ios18.layerNorm" : 48,
477
+ "Tile" : 2,
478
+ "Ios16.reduceMax" : 6,
479
+ "Ios18.reshape" : 42,
480
+ "Split" : 69,
481
+ "Ios18.exp" : 6,
482
+ "Ios18.mul" : 144
483
+ },
484
+ "isUpdatable" : "0",
485
+ "stateSchema" : [
486
+
487
+ ],
488
+ "availability" : {
489
+ "macOS" : "15.0",
490
+ "tvOS" : "18.0",
491
+ "visionOS" : "2.0",
492
+ "watchOS" : "11.0",
493
+ "iOS" : "18.0",
494
+ "macCatalyst" : "18.0"
495
+ },
496
+ "computePrecision" : "Mixed (Float16, Int32)",
497
+ "modelType" : {
498
+ "name" : "MLModelType_mlProgram"
499
+ },
500
+ "inputSchema" : [
501
+ {
502
+ "hasShapeFlexibility" : "0",
503
+ "isOptional" : "0",
504
+ "dataType" : "Float16",
505
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
506
+ "shortDescription" : "",
507
+ "shape" : "[1, 1, 2560]",
508
+ "name" : "hidden_in",
509
+ "type" : "MultiArray"
510
+ },
511
+ {
512
+ "hasShapeFlexibility" : "0",
513
+ "isOptional" : "0",
514
+ "dataType" : "Float16",
515
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
516
+ "shortDescription" : "",
517
+ "shape" : "[6, 1, 256]",
518
+ "name" : "ple_in",
519
+ "type" : "MultiArray"
520
+ },
521
+ {
522
+ "hasShapeFlexibility" : "0",
523
+ "isOptional" : "0",
524
+ "dataType" : "Float16",
525
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
526
+ "shortDescription" : "",
527
+ "shape" : "[1, 1, 1, 256]",
528
+ "name" : "cos_sliding",
529
+ "type" : "MultiArray"
530
+ },
531
+ {
532
+ "hasShapeFlexibility" : "0",
533
+ "isOptional" : "0",
534
+ "dataType" : "Float16",
535
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
536
+ "shortDescription" : "",
537
+ "shape" : "[1, 1, 1, 256]",
538
+ "name" : "sin_sliding",
539
+ "type" : "MultiArray"
540
+ },
541
+ {
542
+ "hasShapeFlexibility" : "0",
543
+ "isOptional" : "0",
544
+ "dataType" : "Float16",
545
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
546
+ "shortDescription" : "",
547
+ "shape" : "[1, 1, 1, 512]",
548
+ "name" : "cos_full",
549
+ "type" : "MultiArray"
550
+ },
551
+ {
552
+ "hasShapeFlexibility" : "0",
553
+ "isOptional" : "0",
554
+ "dataType" : "Float16",
555
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
556
+ "shortDescription" : "",
557
+ "shape" : "[1, 1, 1, 512]",
558
+ "name" : "sin_full",
559
+ "type" : "MultiArray"
560
+ },
561
+ {
562
+ "hasShapeFlexibility" : "0",
563
+ "isOptional" : "0",
564
+ "dataType" : "Float16",
565
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
566
+ "shortDescription" : "",
567
+ "shape" : "[1, 1, 1, 2049]",
568
+ "name" : "causal_mask_sliding",
569
+ "type" : "MultiArray"
570
+ },
571
+ {
572
+ "hasShapeFlexibility" : "0",
573
+ "isOptional" : "0",
574
+ "dataType" : "Float16",
575
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
576
+ "shortDescription" : "",
577
+ "shape" : "[1, 1, 1, 2049]",
578
+ "name" : "causal_mask_full",
579
+ "type" : "MultiArray"
580
+ },
581
+ {
582
+ "hasShapeFlexibility" : "0",
583
+ "isOptional" : "0",
584
+ "dataType" : "Float16",
585
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
586
+ "shortDescription" : "",
587
+ "shape" : "[5, 2, 2048, 256]",
588
+ "name" : "k_sliding_in",
589
+ "type" : "MultiArray"
590
+ },
591
+ {
592
+ "hasShapeFlexibility" : "0",
593
+ "isOptional" : "0",
594
+ "dataType" : "Float16",
595
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
596
+ "shortDescription" : "",
597
+ "shape" : "[5, 2, 2048, 256]",
598
+ "name" : "v_sliding_in",
599
+ "type" : "MultiArray"
600
+ },
601
+ {
602
+ "hasShapeFlexibility" : "0",
603
+ "isOptional" : "0",
604
+ "dataType" : "Float16",
605
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
606
+ "shortDescription" : "",
607
+ "shape" : "[1, 2, 2048, 512]",
608
+ "name" : "k_full_in",
609
+ "type" : "MultiArray"
610
+ },
611
+ {
612
+ "hasShapeFlexibility" : "0",
613
+ "isOptional" : "0",
614
+ "dataType" : "Float16",
615
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
616
+ "shortDescription" : "",
617
+ "shape" : "[1, 2, 2048, 512]",
618
+ "name" : "v_full_in",
619
+ "type" : "MultiArray"
620
+ }
621
+ ],
622
+ "defaultFunctionName" : "decode",
623
+ "generatedClassName" : "chunk_1",
624
+ "userDefinedMetadata" : {
625
+
626
+ },
627
+ "method" : "predict"
628
+ }
629
+ ]
chunk_1.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
chunk_1.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24edb6187042d49c581773655f3b302662d4415d3e2ff1b4d7bfb5c77e673749
3
+ size 286098240
chunk_2.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cc9210eee3746e10234ba2f070811e0761ca3852d60c3ffc46f13380c2af856
3
+ size 243
chunk_2.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fcfcda164c30419dd619f9f2b408291b6f440f6867ab5f551da065ac7d3bb1d
3
+ size 1204
chunk_2.mlmodelc/metadata.json ADDED
@@ -0,0 +1,629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 2560]",
13
+ "name" : "hidden_out",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float16",
20
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
21
+ "shortDescription" : "",
22
+ "shape" : "[5, 2, 1, 256]",
23
+ "name" : "k_sliding_new_out",
24
+ "type" : "MultiArray"
25
+ },
26
+ {
27
+ "hasShapeFlexibility" : "0",
28
+ "isOptional" : "0",
29
+ "dataType" : "Float16",
30
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
31
+ "shortDescription" : "",
32
+ "shape" : "[5, 2, 1, 256]",
33
+ "name" : "v_sliding_new_out",
34
+ "type" : "MultiArray"
35
+ },
36
+ {
37
+ "hasShapeFlexibility" : "0",
38
+ "isOptional" : "0",
39
+ "dataType" : "Float16",
40
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
41
+ "shortDescription" : "",
42
+ "shape" : "[1, 2, 1, 512]",
43
+ "name" : "k_full_new_out",
44
+ "type" : "MultiArray"
45
+ },
46
+ {
47
+ "hasShapeFlexibility" : "0",
48
+ "isOptional" : "0",
49
+ "dataType" : "Float16",
50
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
51
+ "shortDescription" : "",
52
+ "shape" : "[1, 2, 1, 512]",
53
+ "name" : "v_full_new_out",
54
+ "type" : "MultiArray"
55
+ }
56
+ ],
57
+ "modelParameters" : [
58
+
59
+ ],
60
+ "specificationVersion" : 9,
61
+ "functions" : [
62
+ {
63
+ "inputSchema" : [
64
+ {
65
+ "hasShapeFlexibility" : "0",
66
+ "isOptional" : "0",
67
+ "dataType" : "Float16",
68
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
69
+ "shortDescription" : "",
70
+ "shape" : "[1, 1, 2560]",
71
+ "name" : "hidden_in",
72
+ "type" : "MultiArray"
73
+ },
74
+ {
75
+ "hasShapeFlexibility" : "0",
76
+ "isOptional" : "0",
77
+ "dataType" : "Float16",
78
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
79
+ "shortDescription" : "",
80
+ "shape" : "[6, 1, 256]",
81
+ "name" : "ple_in",
82
+ "type" : "MultiArray"
83
+ },
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
89
+ "shortDescription" : "",
90
+ "shape" : "[1, 1, 1, 256]",
91
+ "name" : "cos_sliding",
92
+ "type" : "MultiArray"
93
+ },
94
+ {
95
+ "hasShapeFlexibility" : "0",
96
+ "isOptional" : "0",
97
+ "dataType" : "Float16",
98
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
99
+ "shortDescription" : "",
100
+ "shape" : "[1, 1, 1, 256]",
101
+ "name" : "sin_sliding",
102
+ "type" : "MultiArray"
103
+ },
104
+ {
105
+ "hasShapeFlexibility" : "0",
106
+ "isOptional" : "0",
107
+ "dataType" : "Float16",
108
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
109
+ "shortDescription" : "",
110
+ "shape" : "[1, 1, 1, 512]",
111
+ "name" : "cos_full",
112
+ "type" : "MultiArray"
113
+ },
114
+ {
115
+ "hasShapeFlexibility" : "0",
116
+ "isOptional" : "0",
117
+ "dataType" : "Float16",
118
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
119
+ "shortDescription" : "",
120
+ "shape" : "[1, 1, 1, 512]",
121
+ "name" : "sin_full",
122
+ "type" : "MultiArray"
123
+ },
124
+ {
125
+ "hasShapeFlexibility" : "0",
126
+ "isOptional" : "0",
127
+ "dataType" : "Float16",
128
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
129
+ "shortDescription" : "",
130
+ "shape" : "[1, 1, 1, 2049]",
131
+ "name" : "causal_mask_sliding",
132
+ "type" : "MultiArray"
133
+ },
134
+ {
135
+ "hasShapeFlexibility" : "0",
136
+ "isOptional" : "0",
137
+ "dataType" : "Float16",
138
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
139
+ "shortDescription" : "",
140
+ "shape" : "[1, 1, 1, 2049]",
141
+ "name" : "causal_mask_full",
142
+ "type" : "MultiArray"
143
+ },
144
+ {
145
+ "hasShapeFlexibility" : "0",
146
+ "isOptional" : "0",
147
+ "dataType" : "Float16",
148
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
149
+ "shortDescription" : "",
150
+ "shape" : "[5, 2, 2048, 256]",
151
+ "name" : "k_sliding_in",
152
+ "type" : "MultiArray"
153
+ },
154
+ {
155
+ "hasShapeFlexibility" : "0",
156
+ "isOptional" : "0",
157
+ "dataType" : "Float16",
158
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
159
+ "shortDescription" : "",
160
+ "shape" : "[5, 2, 2048, 256]",
161
+ "name" : "v_sliding_in",
162
+ "type" : "MultiArray"
163
+ },
164
+ {
165
+ "hasShapeFlexibility" : "0",
166
+ "isOptional" : "0",
167
+ "dataType" : "Float16",
168
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
169
+ "shortDescription" : "",
170
+ "shape" : "[1, 2, 2048, 512]",
171
+ "name" : "k_full_in",
172
+ "type" : "MultiArray"
173
+ },
174
+ {
175
+ "hasShapeFlexibility" : "0",
176
+ "isOptional" : "0",
177
+ "dataType" : "Float16",
178
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
179
+ "shortDescription" : "",
180
+ "shape" : "[1, 2, 2048, 512]",
181
+ "name" : "v_full_in",
182
+ "type" : "MultiArray"
183
+ }
184
+ ],
185
+ "computePrecision" : "Mixed (Float16, Int32)",
186
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
187
+ "stateSchema" : [
188
+
189
+ ],
190
+ "outputSchema" : [
191
+ {
192
+ "hasShapeFlexibility" : "0",
193
+ "isOptional" : "0",
194
+ "dataType" : "Float16",
195
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
196
+ "shortDescription" : "",
197
+ "shape" : "[1, 1, 2560]",
198
+ "name" : "hidden_out",
199
+ "type" : "MultiArray"
200
+ },
201
+ {
202
+ "hasShapeFlexibility" : "0",
203
+ "isOptional" : "0",
204
+ "dataType" : "Float16",
205
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
206
+ "shortDescription" : "",
207
+ "shape" : "[5, 2, 1, 256]",
208
+ "name" : "k_sliding_new_out",
209
+ "type" : "MultiArray"
210
+ },
211
+ {
212
+ "hasShapeFlexibility" : "0",
213
+ "isOptional" : "0",
214
+ "dataType" : "Float16",
215
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
216
+ "shortDescription" : "",
217
+ "shape" : "[5, 2, 1, 256]",
218
+ "name" : "v_sliding_new_out",
219
+ "type" : "MultiArray"
220
+ },
221
+ {
222
+ "hasShapeFlexibility" : "0",
223
+ "isOptional" : "0",
224
+ "dataType" : "Float16",
225
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
226
+ "shortDescription" : "",
227
+ "shape" : "[1, 2, 1, 512]",
228
+ "name" : "k_full_new_out",
229
+ "type" : "MultiArray"
230
+ },
231
+ {
232
+ "hasShapeFlexibility" : "0",
233
+ "isOptional" : "0",
234
+ "dataType" : "Float16",
235
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
236
+ "shortDescription" : "",
237
+ "shape" : "[1, 2, 1, 512]",
238
+ "name" : "v_full_new_out",
239
+ "type" : "MultiArray"
240
+ }
241
+ ],
242
+ "name" : "decode",
243
+ "mlProgramOperationTypeHistogram" : {
244
+ "Ios18.constexprLutToDense" : 54,
245
+ "Ios16.reduceSum" : 6,
246
+ "Ios18.conv" : 54,
247
+ "Ios18.matmul" : 24,
248
+ "Ios18.sub" : 6,
249
+ "Ios18.gelu" : 12,
250
+ "Ios18.concat" : 70,
251
+ "Ios18.add" : 42,
252
+ "Ios18.realDiv" : 6,
253
+ "Ios18.transpose" : 84,
254
+ "Ios18.layerNorm" : 48,
255
+ "Tile" : 2,
256
+ "Ios16.reduceMax" : 6,
257
+ "Ios18.reshape" : 42,
258
+ "Split" : 69,
259
+ "Ios18.exp" : 6,
260
+ "Ios18.mul" : 144
261
+ }
262
+ },
263
+ {
264
+ "inputSchema" : [
265
+ {
266
+ "hasShapeFlexibility" : "0",
267
+ "isOptional" : "0",
268
+ "dataType" : "Float16",
269
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
270
+ "shortDescription" : "",
271
+ "shape" : "[1, 64, 2560]",
272
+ "name" : "hidden_in",
273
+ "type" : "MultiArray"
274
+ },
275
+ {
276
+ "hasShapeFlexibility" : "0",
277
+ "isOptional" : "0",
278
+ "dataType" : "Float16",
279
+ "formattedType" : "MultiArray (Float16 6 × 64 × 256)",
280
+ "shortDescription" : "",
281
+ "shape" : "[6, 64, 256]",
282
+ "name" : "ple_in",
283
+ "type" : "MultiArray"
284
+ },
285
+ {
286
+ "hasShapeFlexibility" : "0",
287
+ "isOptional" : "0",
288
+ "dataType" : "Float16",
289
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
290
+ "shortDescription" : "",
291
+ "shape" : "[1, 1, 64, 256]",
292
+ "name" : "cos_sliding",
293
+ "type" : "MultiArray"
294
+ },
295
+ {
296
+ "hasShapeFlexibility" : "0",
297
+ "isOptional" : "0",
298
+ "dataType" : "Float16",
299
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
300
+ "shortDescription" : "",
301
+ "shape" : "[1, 1, 64, 256]",
302
+ "name" : "sin_sliding",
303
+ "type" : "MultiArray"
304
+ },
305
+ {
306
+ "hasShapeFlexibility" : "0",
307
+ "isOptional" : "0",
308
+ "dataType" : "Float16",
309
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
310
+ "shortDescription" : "",
311
+ "shape" : "[1, 1, 64, 512]",
312
+ "name" : "cos_full",
313
+ "type" : "MultiArray"
314
+ },
315
+ {
316
+ "hasShapeFlexibility" : "0",
317
+ "isOptional" : "0",
318
+ "dataType" : "Float16",
319
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
320
+ "shortDescription" : "",
321
+ "shape" : "[1, 1, 64, 512]",
322
+ "name" : "sin_full",
323
+ "type" : "MultiArray"
324
+ },
325
+ {
326
+ "hasShapeFlexibility" : "0",
327
+ "isOptional" : "0",
328
+ "dataType" : "Float16",
329
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
330
+ "shortDescription" : "",
331
+ "shape" : "[1, 1, 64, 2112]",
332
+ "name" : "causal_mask_sliding",
333
+ "type" : "MultiArray"
334
+ },
335
+ {
336
+ "hasShapeFlexibility" : "0",
337
+ "isOptional" : "0",
338
+ "dataType" : "Float16",
339
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
340
+ "shortDescription" : "",
341
+ "shape" : "[1, 1, 64, 2112]",
342
+ "name" : "causal_mask_full",
343
+ "type" : "MultiArray"
344
+ },
345
+ {
346
+ "hasShapeFlexibility" : "0",
347
+ "isOptional" : "0",
348
+ "dataType" : "Float16",
349
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
350
+ "shortDescription" : "",
351
+ "shape" : "[5, 2, 2048, 256]",
352
+ "name" : "k_sliding_in",
353
+ "type" : "MultiArray"
354
+ },
355
+ {
356
+ "hasShapeFlexibility" : "0",
357
+ "isOptional" : "0",
358
+ "dataType" : "Float16",
359
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
360
+ "shortDescription" : "",
361
+ "shape" : "[5, 2, 2048, 256]",
362
+ "name" : "v_sliding_in",
363
+ "type" : "MultiArray"
364
+ },
365
+ {
366
+ "hasShapeFlexibility" : "0",
367
+ "isOptional" : "0",
368
+ "dataType" : "Float16",
369
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
370
+ "shortDescription" : "",
371
+ "shape" : "[1, 2, 2048, 512]",
372
+ "name" : "k_full_in",
373
+ "type" : "MultiArray"
374
+ },
375
+ {
376
+ "hasShapeFlexibility" : "0",
377
+ "isOptional" : "0",
378
+ "dataType" : "Float16",
379
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
380
+ "shortDescription" : "",
381
+ "shape" : "[1, 2, 2048, 512]",
382
+ "name" : "v_full_in",
383
+ "type" : "MultiArray"
384
+ }
385
+ ],
386
+ "computePrecision" : "Mixed (Float16, Int32)",
387
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
388
+ "stateSchema" : [
389
+
390
+ ],
391
+ "outputSchema" : [
392
+ {
393
+ "hasShapeFlexibility" : "0",
394
+ "isOptional" : "0",
395
+ "dataType" : "Float16",
396
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
397
+ "shortDescription" : "",
398
+ "shape" : "[1, 64, 2560]",
399
+ "name" : "hidden_out",
400
+ "type" : "MultiArray"
401
+ },
402
+ {
403
+ "hasShapeFlexibility" : "0",
404
+ "isOptional" : "0",
405
+ "dataType" : "Float16",
406
+ "formattedType" : "MultiArray (Float16 5 × 2 × 64 × 256)",
407
+ "shortDescription" : "",
408
+ "shape" : "[5, 2, 64, 256]",
409
+ "name" : "k_sliding_new_out",
410
+ "type" : "MultiArray"
411
+ },
412
+ {
413
+ "hasShapeFlexibility" : "0",
414
+ "isOptional" : "0",
415
+ "dataType" : "Float16",
416
+ "formattedType" : "MultiArray (Float16 5 × 2 × 64 × 256)",
417
+ "shortDescription" : "",
418
+ "shape" : "[5, 2, 64, 256]",
419
+ "name" : "v_sliding_new_out",
420
+ "type" : "MultiArray"
421
+ },
422
+ {
423
+ "hasShapeFlexibility" : "0",
424
+ "isOptional" : "0",
425
+ "dataType" : "Float16",
426
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
427
+ "shortDescription" : "",
428
+ "shape" : "[1, 2, 64, 512]",
429
+ "name" : "k_full_new_out",
430
+ "type" : "MultiArray"
431
+ },
432
+ {
433
+ "hasShapeFlexibility" : "0",
434
+ "isOptional" : "0",
435
+ "dataType" : "Float16",
436
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
437
+ "shortDescription" : "",
438
+ "shape" : "[1, 2, 64, 512]",
439
+ "name" : "v_full_new_out",
440
+ "type" : "MultiArray"
441
+ }
442
+ ],
443
+ "name" : "prefill",
444
+ "mlProgramOperationTypeHistogram" : {
445
+ "Ios18.constexprLutToDense" : 54,
446
+ "Ios16.reduceSum" : 6,
447
+ "Ios18.conv" : 54,
448
+ "Ios18.matmul" : 24,
449
+ "Ios18.sub" : 6,
450
+ "Ios18.gelu" : 12,
451
+ "Ios18.concat" : 70,
452
+ "Ios18.add" : 42,
453
+ "Ios18.realDiv" : 6,
454
+ "Ios18.transpose" : 96,
455
+ "Ios18.layerNorm" : 48,
456
+ "Tile" : 2,
457
+ "Ios16.reduceMax" : 6,
458
+ "Ios18.reshape" : 36,
459
+ "Split" : 69,
460
+ "Ios18.exp" : 6,
461
+ "Ios18.mul" : 144
462
+ }
463
+ }
464
+ ],
465
+ "mlProgramOperationTypeHistogram" : {
466
+ "Ios18.constexprLutToDense" : 54,
467
+ "Ios16.reduceSum" : 6,
468
+ "Ios18.conv" : 54,
469
+ "Ios18.matmul" : 24,
470
+ "Ios18.sub" : 6,
471
+ "Ios18.gelu" : 12,
472
+ "Ios18.concat" : 70,
473
+ "Ios18.add" : 42,
474
+ "Ios18.realDiv" : 6,
475
+ "Ios18.transpose" : 84,
476
+ "Ios18.layerNorm" : 48,
477
+ "Tile" : 2,
478
+ "Ios16.reduceMax" : 6,
479
+ "Ios18.reshape" : 42,
480
+ "Split" : 69,
481
+ "Ios18.exp" : 6,
482
+ "Ios18.mul" : 144
483
+ },
484
+ "isUpdatable" : "0",
485
+ "stateSchema" : [
486
+
487
+ ],
488
+ "availability" : {
489
+ "macOS" : "15.0",
490
+ "tvOS" : "18.0",
491
+ "visionOS" : "2.0",
492
+ "watchOS" : "11.0",
493
+ "iOS" : "18.0",
494
+ "macCatalyst" : "18.0"
495
+ },
496
+ "computePrecision" : "Mixed (Float16, Int32)",
497
+ "modelType" : {
498
+ "name" : "MLModelType_mlProgram"
499
+ },
500
+ "inputSchema" : [
501
+ {
502
+ "hasShapeFlexibility" : "0",
503
+ "isOptional" : "0",
504
+ "dataType" : "Float16",
505
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
506
+ "shortDescription" : "",
507
+ "shape" : "[1, 1, 2560]",
508
+ "name" : "hidden_in",
509
+ "type" : "MultiArray"
510
+ },
511
+ {
512
+ "hasShapeFlexibility" : "0",
513
+ "isOptional" : "0",
514
+ "dataType" : "Float16",
515
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
516
+ "shortDescription" : "",
517
+ "shape" : "[6, 1, 256]",
518
+ "name" : "ple_in",
519
+ "type" : "MultiArray"
520
+ },
521
+ {
522
+ "hasShapeFlexibility" : "0",
523
+ "isOptional" : "0",
524
+ "dataType" : "Float16",
525
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
526
+ "shortDescription" : "",
527
+ "shape" : "[1, 1, 1, 256]",
528
+ "name" : "cos_sliding",
529
+ "type" : "MultiArray"
530
+ },
531
+ {
532
+ "hasShapeFlexibility" : "0",
533
+ "isOptional" : "0",
534
+ "dataType" : "Float16",
535
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
536
+ "shortDescription" : "",
537
+ "shape" : "[1, 1, 1, 256]",
538
+ "name" : "sin_sliding",
539
+ "type" : "MultiArray"
540
+ },
541
+ {
542
+ "hasShapeFlexibility" : "0",
543
+ "isOptional" : "0",
544
+ "dataType" : "Float16",
545
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
546
+ "shortDescription" : "",
547
+ "shape" : "[1, 1, 1, 512]",
548
+ "name" : "cos_full",
549
+ "type" : "MultiArray"
550
+ },
551
+ {
552
+ "hasShapeFlexibility" : "0",
553
+ "isOptional" : "0",
554
+ "dataType" : "Float16",
555
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
556
+ "shortDescription" : "",
557
+ "shape" : "[1, 1, 1, 512]",
558
+ "name" : "sin_full",
559
+ "type" : "MultiArray"
560
+ },
561
+ {
562
+ "hasShapeFlexibility" : "0",
563
+ "isOptional" : "0",
564
+ "dataType" : "Float16",
565
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
566
+ "shortDescription" : "",
567
+ "shape" : "[1, 1, 1, 2049]",
568
+ "name" : "causal_mask_sliding",
569
+ "type" : "MultiArray"
570
+ },
571
+ {
572
+ "hasShapeFlexibility" : "0",
573
+ "isOptional" : "0",
574
+ "dataType" : "Float16",
575
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
576
+ "shortDescription" : "",
577
+ "shape" : "[1, 1, 1, 2049]",
578
+ "name" : "causal_mask_full",
579
+ "type" : "MultiArray"
580
+ },
581
+ {
582
+ "hasShapeFlexibility" : "0",
583
+ "isOptional" : "0",
584
+ "dataType" : "Float16",
585
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
586
+ "shortDescription" : "",
587
+ "shape" : "[5, 2, 2048, 256]",
588
+ "name" : "k_sliding_in",
589
+ "type" : "MultiArray"
590
+ },
591
+ {
592
+ "hasShapeFlexibility" : "0",
593
+ "isOptional" : "0",
594
+ "dataType" : "Float16",
595
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
596
+ "shortDescription" : "",
597
+ "shape" : "[5, 2, 2048, 256]",
598
+ "name" : "v_sliding_in",
599
+ "type" : "MultiArray"
600
+ },
601
+ {
602
+ "hasShapeFlexibility" : "0",
603
+ "isOptional" : "0",
604
+ "dataType" : "Float16",
605
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
606
+ "shortDescription" : "",
607
+ "shape" : "[1, 2, 2048, 512]",
608
+ "name" : "k_full_in",
609
+ "type" : "MultiArray"
610
+ },
611
+ {
612
+ "hasShapeFlexibility" : "0",
613
+ "isOptional" : "0",
614
+ "dataType" : "Float16",
615
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
616
+ "shortDescription" : "",
617
+ "shape" : "[1, 2, 2048, 512]",
618
+ "name" : "v_full_in",
619
+ "type" : "MultiArray"
620
+ }
621
+ ],
622
+ "defaultFunctionName" : "decode",
623
+ "generatedClassName" : "chunk_2",
624
+ "userDefinedMetadata" : {
625
+
626
+ },
627
+ "method" : "predict"
628
+ }
629
+ ]
chunk_2.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
chunk_2.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f9b427bda77edfd929a62a763243bc037fce808b723299a169d68b4e12050f8
3
+ size 286099392
chunk_3.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a464335b3f8c926912331bb7d435c183c8e5fceb2bdf7019b2d457a049a42961
3
+ size 243
chunk_3.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fcfcda164c30419dd619f9f2b408291b6f440f6867ab5f551da065ac7d3bb1d
3
+ size 1204
chunk_3.mlmodelc/metadata.json ADDED
@@ -0,0 +1,629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 2560]",
13
+ "name" : "hidden_out",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float16",
20
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
21
+ "shortDescription" : "",
22
+ "shape" : "[5, 2, 1, 256]",
23
+ "name" : "k_sliding_new_out",
24
+ "type" : "MultiArray"
25
+ },
26
+ {
27
+ "hasShapeFlexibility" : "0",
28
+ "isOptional" : "0",
29
+ "dataType" : "Float16",
30
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
31
+ "shortDescription" : "",
32
+ "shape" : "[5, 2, 1, 256]",
33
+ "name" : "v_sliding_new_out",
34
+ "type" : "MultiArray"
35
+ },
36
+ {
37
+ "hasShapeFlexibility" : "0",
38
+ "isOptional" : "0",
39
+ "dataType" : "Float16",
40
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
41
+ "shortDescription" : "",
42
+ "shape" : "[1, 2, 1, 512]",
43
+ "name" : "k_full_new_out",
44
+ "type" : "MultiArray"
45
+ },
46
+ {
47
+ "hasShapeFlexibility" : "0",
48
+ "isOptional" : "0",
49
+ "dataType" : "Float16",
50
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
51
+ "shortDescription" : "",
52
+ "shape" : "[1, 2, 1, 512]",
53
+ "name" : "v_full_new_out",
54
+ "type" : "MultiArray"
55
+ }
56
+ ],
57
+ "modelParameters" : [
58
+
59
+ ],
60
+ "specificationVersion" : 9,
61
+ "functions" : [
62
+ {
63
+ "inputSchema" : [
64
+ {
65
+ "hasShapeFlexibility" : "0",
66
+ "isOptional" : "0",
67
+ "dataType" : "Float16",
68
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
69
+ "shortDescription" : "",
70
+ "shape" : "[1, 1, 2560]",
71
+ "name" : "hidden_in",
72
+ "type" : "MultiArray"
73
+ },
74
+ {
75
+ "hasShapeFlexibility" : "0",
76
+ "isOptional" : "0",
77
+ "dataType" : "Float16",
78
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
79
+ "shortDescription" : "",
80
+ "shape" : "[6, 1, 256]",
81
+ "name" : "ple_in",
82
+ "type" : "MultiArray"
83
+ },
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
89
+ "shortDescription" : "",
90
+ "shape" : "[1, 1, 1, 256]",
91
+ "name" : "cos_sliding",
92
+ "type" : "MultiArray"
93
+ },
94
+ {
95
+ "hasShapeFlexibility" : "0",
96
+ "isOptional" : "0",
97
+ "dataType" : "Float16",
98
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
99
+ "shortDescription" : "",
100
+ "shape" : "[1, 1, 1, 256]",
101
+ "name" : "sin_sliding",
102
+ "type" : "MultiArray"
103
+ },
104
+ {
105
+ "hasShapeFlexibility" : "0",
106
+ "isOptional" : "0",
107
+ "dataType" : "Float16",
108
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
109
+ "shortDescription" : "",
110
+ "shape" : "[1, 1, 1, 512]",
111
+ "name" : "cos_full",
112
+ "type" : "MultiArray"
113
+ },
114
+ {
115
+ "hasShapeFlexibility" : "0",
116
+ "isOptional" : "0",
117
+ "dataType" : "Float16",
118
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
119
+ "shortDescription" : "",
120
+ "shape" : "[1, 1, 1, 512]",
121
+ "name" : "sin_full",
122
+ "type" : "MultiArray"
123
+ },
124
+ {
125
+ "hasShapeFlexibility" : "0",
126
+ "isOptional" : "0",
127
+ "dataType" : "Float16",
128
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
129
+ "shortDescription" : "",
130
+ "shape" : "[1, 1, 1, 2049]",
131
+ "name" : "causal_mask_sliding",
132
+ "type" : "MultiArray"
133
+ },
134
+ {
135
+ "hasShapeFlexibility" : "0",
136
+ "isOptional" : "0",
137
+ "dataType" : "Float16",
138
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
139
+ "shortDescription" : "",
140
+ "shape" : "[1, 1, 1, 2049]",
141
+ "name" : "causal_mask_full",
142
+ "type" : "MultiArray"
143
+ },
144
+ {
145
+ "hasShapeFlexibility" : "0",
146
+ "isOptional" : "0",
147
+ "dataType" : "Float16",
148
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
149
+ "shortDescription" : "",
150
+ "shape" : "[5, 2, 2048, 256]",
151
+ "name" : "k_sliding_in",
152
+ "type" : "MultiArray"
153
+ },
154
+ {
155
+ "hasShapeFlexibility" : "0",
156
+ "isOptional" : "0",
157
+ "dataType" : "Float16",
158
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
159
+ "shortDescription" : "",
160
+ "shape" : "[5, 2, 2048, 256]",
161
+ "name" : "v_sliding_in",
162
+ "type" : "MultiArray"
163
+ },
164
+ {
165
+ "hasShapeFlexibility" : "0",
166
+ "isOptional" : "0",
167
+ "dataType" : "Float16",
168
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
169
+ "shortDescription" : "",
170
+ "shape" : "[1, 2, 2048, 512]",
171
+ "name" : "k_full_in",
172
+ "type" : "MultiArray"
173
+ },
174
+ {
175
+ "hasShapeFlexibility" : "0",
176
+ "isOptional" : "0",
177
+ "dataType" : "Float16",
178
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
179
+ "shortDescription" : "",
180
+ "shape" : "[1, 2, 2048, 512]",
181
+ "name" : "v_full_in",
182
+ "type" : "MultiArray"
183
+ }
184
+ ],
185
+ "computePrecision" : "Mixed (Float16, Int32)",
186
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
187
+ "stateSchema" : [
188
+
189
+ ],
190
+ "outputSchema" : [
191
+ {
192
+ "hasShapeFlexibility" : "0",
193
+ "isOptional" : "0",
194
+ "dataType" : "Float16",
195
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
196
+ "shortDescription" : "",
197
+ "shape" : "[1, 1, 2560]",
198
+ "name" : "hidden_out",
199
+ "type" : "MultiArray"
200
+ },
201
+ {
202
+ "hasShapeFlexibility" : "0",
203
+ "isOptional" : "0",
204
+ "dataType" : "Float16",
205
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
206
+ "shortDescription" : "",
207
+ "shape" : "[5, 2, 1, 256]",
208
+ "name" : "k_sliding_new_out",
209
+ "type" : "MultiArray"
210
+ },
211
+ {
212
+ "hasShapeFlexibility" : "0",
213
+ "isOptional" : "0",
214
+ "dataType" : "Float16",
215
+ "formattedType" : "MultiArray (Float16 5 × 2 × 1 × 256)",
216
+ "shortDescription" : "",
217
+ "shape" : "[5, 2, 1, 256]",
218
+ "name" : "v_sliding_new_out",
219
+ "type" : "MultiArray"
220
+ },
221
+ {
222
+ "hasShapeFlexibility" : "0",
223
+ "isOptional" : "0",
224
+ "dataType" : "Float16",
225
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
226
+ "shortDescription" : "",
227
+ "shape" : "[1, 2, 1, 512]",
228
+ "name" : "k_full_new_out",
229
+ "type" : "MultiArray"
230
+ },
231
+ {
232
+ "hasShapeFlexibility" : "0",
233
+ "isOptional" : "0",
234
+ "dataType" : "Float16",
235
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
236
+ "shortDescription" : "",
237
+ "shape" : "[1, 2, 1, 512]",
238
+ "name" : "v_full_new_out",
239
+ "type" : "MultiArray"
240
+ }
241
+ ],
242
+ "name" : "decode",
243
+ "mlProgramOperationTypeHistogram" : {
244
+ "Ios18.constexprLutToDense" : 54,
245
+ "Ios16.reduceSum" : 6,
246
+ "Ios18.conv" : 54,
247
+ "Ios18.matmul" : 24,
248
+ "Ios18.sub" : 6,
249
+ "Ios18.gelu" : 12,
250
+ "Ios18.concat" : 70,
251
+ "Ios18.add" : 42,
252
+ "Ios18.realDiv" : 6,
253
+ "Ios18.transpose" : 84,
254
+ "Ios18.layerNorm" : 48,
255
+ "Tile" : 2,
256
+ "Ios16.reduceMax" : 6,
257
+ "Ios18.reshape" : 42,
258
+ "Split" : 69,
259
+ "Ios18.exp" : 6,
260
+ "Ios18.mul" : 143
261
+ }
262
+ },
263
+ {
264
+ "inputSchema" : [
265
+ {
266
+ "hasShapeFlexibility" : "0",
267
+ "isOptional" : "0",
268
+ "dataType" : "Float16",
269
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
270
+ "shortDescription" : "",
271
+ "shape" : "[1, 64, 2560]",
272
+ "name" : "hidden_in",
273
+ "type" : "MultiArray"
274
+ },
275
+ {
276
+ "hasShapeFlexibility" : "0",
277
+ "isOptional" : "0",
278
+ "dataType" : "Float16",
279
+ "formattedType" : "MultiArray (Float16 6 × 64 × 256)",
280
+ "shortDescription" : "",
281
+ "shape" : "[6, 64, 256]",
282
+ "name" : "ple_in",
283
+ "type" : "MultiArray"
284
+ },
285
+ {
286
+ "hasShapeFlexibility" : "0",
287
+ "isOptional" : "0",
288
+ "dataType" : "Float16",
289
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
290
+ "shortDescription" : "",
291
+ "shape" : "[1, 1, 64, 256]",
292
+ "name" : "cos_sliding",
293
+ "type" : "MultiArray"
294
+ },
295
+ {
296
+ "hasShapeFlexibility" : "0",
297
+ "isOptional" : "0",
298
+ "dataType" : "Float16",
299
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
300
+ "shortDescription" : "",
301
+ "shape" : "[1, 1, 64, 256]",
302
+ "name" : "sin_sliding",
303
+ "type" : "MultiArray"
304
+ },
305
+ {
306
+ "hasShapeFlexibility" : "0",
307
+ "isOptional" : "0",
308
+ "dataType" : "Float16",
309
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
310
+ "shortDescription" : "",
311
+ "shape" : "[1, 1, 64, 512]",
312
+ "name" : "cos_full",
313
+ "type" : "MultiArray"
314
+ },
315
+ {
316
+ "hasShapeFlexibility" : "0",
317
+ "isOptional" : "0",
318
+ "dataType" : "Float16",
319
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
320
+ "shortDescription" : "",
321
+ "shape" : "[1, 1, 64, 512]",
322
+ "name" : "sin_full",
323
+ "type" : "MultiArray"
324
+ },
325
+ {
326
+ "hasShapeFlexibility" : "0",
327
+ "isOptional" : "0",
328
+ "dataType" : "Float16",
329
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
330
+ "shortDescription" : "",
331
+ "shape" : "[1, 1, 64, 2112]",
332
+ "name" : "causal_mask_sliding",
333
+ "type" : "MultiArray"
334
+ },
335
+ {
336
+ "hasShapeFlexibility" : "0",
337
+ "isOptional" : "0",
338
+ "dataType" : "Float16",
339
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
340
+ "shortDescription" : "",
341
+ "shape" : "[1, 1, 64, 2112]",
342
+ "name" : "causal_mask_full",
343
+ "type" : "MultiArray"
344
+ },
345
+ {
346
+ "hasShapeFlexibility" : "0",
347
+ "isOptional" : "0",
348
+ "dataType" : "Float16",
349
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
350
+ "shortDescription" : "",
351
+ "shape" : "[5, 2, 2048, 256]",
352
+ "name" : "k_sliding_in",
353
+ "type" : "MultiArray"
354
+ },
355
+ {
356
+ "hasShapeFlexibility" : "0",
357
+ "isOptional" : "0",
358
+ "dataType" : "Float16",
359
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
360
+ "shortDescription" : "",
361
+ "shape" : "[5, 2, 2048, 256]",
362
+ "name" : "v_sliding_in",
363
+ "type" : "MultiArray"
364
+ },
365
+ {
366
+ "hasShapeFlexibility" : "0",
367
+ "isOptional" : "0",
368
+ "dataType" : "Float16",
369
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
370
+ "shortDescription" : "",
371
+ "shape" : "[1, 2, 2048, 512]",
372
+ "name" : "k_full_in",
373
+ "type" : "MultiArray"
374
+ },
375
+ {
376
+ "hasShapeFlexibility" : "0",
377
+ "isOptional" : "0",
378
+ "dataType" : "Float16",
379
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
380
+ "shortDescription" : "",
381
+ "shape" : "[1, 2, 2048, 512]",
382
+ "name" : "v_full_in",
383
+ "type" : "MultiArray"
384
+ }
385
+ ],
386
+ "computePrecision" : "Mixed (Float16, Int32)",
387
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), Palettized (8 bits), Palettized (9 bits), UInt4)",
388
+ "stateSchema" : [
389
+
390
+ ],
391
+ "outputSchema" : [
392
+ {
393
+ "hasShapeFlexibility" : "0",
394
+ "isOptional" : "0",
395
+ "dataType" : "Float16",
396
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
397
+ "shortDescription" : "",
398
+ "shape" : "[1, 64, 2560]",
399
+ "name" : "hidden_out",
400
+ "type" : "MultiArray"
401
+ },
402
+ {
403
+ "hasShapeFlexibility" : "0",
404
+ "isOptional" : "0",
405
+ "dataType" : "Float16",
406
+ "formattedType" : "MultiArray (Float16 5 × 2 × 64 × 256)",
407
+ "shortDescription" : "",
408
+ "shape" : "[5, 2, 64, 256]",
409
+ "name" : "k_sliding_new_out",
410
+ "type" : "MultiArray"
411
+ },
412
+ {
413
+ "hasShapeFlexibility" : "0",
414
+ "isOptional" : "0",
415
+ "dataType" : "Float16",
416
+ "formattedType" : "MultiArray (Float16 5 × 2 × 64 × 256)",
417
+ "shortDescription" : "",
418
+ "shape" : "[5, 2, 64, 256]",
419
+ "name" : "v_sliding_new_out",
420
+ "type" : "MultiArray"
421
+ },
422
+ {
423
+ "hasShapeFlexibility" : "0",
424
+ "isOptional" : "0",
425
+ "dataType" : "Float16",
426
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
427
+ "shortDescription" : "",
428
+ "shape" : "[1, 2, 64, 512]",
429
+ "name" : "k_full_new_out",
430
+ "type" : "MultiArray"
431
+ },
432
+ {
433
+ "hasShapeFlexibility" : "0",
434
+ "isOptional" : "0",
435
+ "dataType" : "Float16",
436
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
437
+ "shortDescription" : "",
438
+ "shape" : "[1, 2, 64, 512]",
439
+ "name" : "v_full_new_out",
440
+ "type" : "MultiArray"
441
+ }
442
+ ],
443
+ "name" : "prefill",
444
+ "mlProgramOperationTypeHistogram" : {
445
+ "Ios18.constexprLutToDense" : 54,
446
+ "Ios16.reduceSum" : 6,
447
+ "Ios18.conv" : 54,
448
+ "Ios18.matmul" : 24,
449
+ "Ios18.sub" : 6,
450
+ "Ios18.gelu" : 12,
451
+ "Ios18.concat" : 70,
452
+ "Ios18.add" : 42,
453
+ "Ios18.realDiv" : 6,
454
+ "Ios18.transpose" : 96,
455
+ "Ios18.layerNorm" : 48,
456
+ "Tile" : 2,
457
+ "Ios16.reduceMax" : 6,
458
+ "Ios18.reshape" : 36,
459
+ "Split" : 69,
460
+ "Ios18.exp" : 6,
461
+ "Ios18.mul" : 143
462
+ }
463
+ }
464
+ ],
465
+ "mlProgramOperationTypeHistogram" : {
466
+ "Ios18.constexprLutToDense" : 54,
467
+ "Ios16.reduceSum" : 6,
468
+ "Ios18.conv" : 54,
469
+ "Ios18.matmul" : 24,
470
+ "Ios18.sub" : 6,
471
+ "Ios18.gelu" : 12,
472
+ "Ios18.concat" : 70,
473
+ "Ios18.add" : 42,
474
+ "Ios18.realDiv" : 6,
475
+ "Ios18.transpose" : 84,
476
+ "Ios18.layerNorm" : 48,
477
+ "Tile" : 2,
478
+ "Ios16.reduceMax" : 6,
479
+ "Ios18.reshape" : 42,
480
+ "Split" : 69,
481
+ "Ios18.exp" : 6,
482
+ "Ios18.mul" : 143
483
+ },
484
+ "isUpdatable" : "0",
485
+ "stateSchema" : [
486
+
487
+ ],
488
+ "availability" : {
489
+ "macOS" : "15.0",
490
+ "tvOS" : "18.0",
491
+ "visionOS" : "2.0",
492
+ "watchOS" : "11.0",
493
+ "iOS" : "18.0",
494
+ "macCatalyst" : "18.0"
495
+ },
496
+ "computePrecision" : "Mixed (Float16, Int32)",
497
+ "modelType" : {
498
+ "name" : "MLModelType_mlProgram"
499
+ },
500
+ "inputSchema" : [
501
+ {
502
+ "hasShapeFlexibility" : "0",
503
+ "isOptional" : "0",
504
+ "dataType" : "Float16",
505
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
506
+ "shortDescription" : "",
507
+ "shape" : "[1, 1, 2560]",
508
+ "name" : "hidden_in",
509
+ "type" : "MultiArray"
510
+ },
511
+ {
512
+ "hasShapeFlexibility" : "0",
513
+ "isOptional" : "0",
514
+ "dataType" : "Float16",
515
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
516
+ "shortDescription" : "",
517
+ "shape" : "[6, 1, 256]",
518
+ "name" : "ple_in",
519
+ "type" : "MultiArray"
520
+ },
521
+ {
522
+ "hasShapeFlexibility" : "0",
523
+ "isOptional" : "0",
524
+ "dataType" : "Float16",
525
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
526
+ "shortDescription" : "",
527
+ "shape" : "[1, 1, 1, 256]",
528
+ "name" : "cos_sliding",
529
+ "type" : "MultiArray"
530
+ },
531
+ {
532
+ "hasShapeFlexibility" : "0",
533
+ "isOptional" : "0",
534
+ "dataType" : "Float16",
535
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
536
+ "shortDescription" : "",
537
+ "shape" : "[1, 1, 1, 256]",
538
+ "name" : "sin_sliding",
539
+ "type" : "MultiArray"
540
+ },
541
+ {
542
+ "hasShapeFlexibility" : "0",
543
+ "isOptional" : "0",
544
+ "dataType" : "Float16",
545
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
546
+ "shortDescription" : "",
547
+ "shape" : "[1, 1, 1, 512]",
548
+ "name" : "cos_full",
549
+ "type" : "MultiArray"
550
+ },
551
+ {
552
+ "hasShapeFlexibility" : "0",
553
+ "isOptional" : "0",
554
+ "dataType" : "Float16",
555
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
556
+ "shortDescription" : "",
557
+ "shape" : "[1, 1, 1, 512]",
558
+ "name" : "sin_full",
559
+ "type" : "MultiArray"
560
+ },
561
+ {
562
+ "hasShapeFlexibility" : "0",
563
+ "isOptional" : "0",
564
+ "dataType" : "Float16",
565
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
566
+ "shortDescription" : "",
567
+ "shape" : "[1, 1, 1, 2049]",
568
+ "name" : "causal_mask_sliding",
569
+ "type" : "MultiArray"
570
+ },
571
+ {
572
+ "hasShapeFlexibility" : "0",
573
+ "isOptional" : "0",
574
+ "dataType" : "Float16",
575
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
576
+ "shortDescription" : "",
577
+ "shape" : "[1, 1, 1, 2049]",
578
+ "name" : "causal_mask_full",
579
+ "type" : "MultiArray"
580
+ },
581
+ {
582
+ "hasShapeFlexibility" : "0",
583
+ "isOptional" : "0",
584
+ "dataType" : "Float16",
585
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
586
+ "shortDescription" : "",
587
+ "shape" : "[5, 2, 2048, 256]",
588
+ "name" : "k_sliding_in",
589
+ "type" : "MultiArray"
590
+ },
591
+ {
592
+ "hasShapeFlexibility" : "0",
593
+ "isOptional" : "0",
594
+ "dataType" : "Float16",
595
+ "formattedType" : "MultiArray (Float16 5 × 2 × 2048 × 256)",
596
+ "shortDescription" : "",
597
+ "shape" : "[5, 2, 2048, 256]",
598
+ "name" : "v_sliding_in",
599
+ "type" : "MultiArray"
600
+ },
601
+ {
602
+ "hasShapeFlexibility" : "0",
603
+ "isOptional" : "0",
604
+ "dataType" : "Float16",
605
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
606
+ "shortDescription" : "",
607
+ "shape" : "[1, 2, 2048, 512]",
608
+ "name" : "k_full_in",
609
+ "type" : "MultiArray"
610
+ },
611
+ {
612
+ "hasShapeFlexibility" : "0",
613
+ "isOptional" : "0",
614
+ "dataType" : "Float16",
615
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
616
+ "shortDescription" : "",
617
+ "shape" : "[1, 2, 2048, 512]",
618
+ "name" : "v_full_in",
619
+ "type" : "MultiArray"
620
+ }
621
+ ],
622
+ "defaultFunctionName" : "decode",
623
+ "generatedClassName" : "chunk_3",
624
+ "userDefinedMetadata" : {
625
+
626
+ },
627
+ "method" : "predict"
628
+ }
629
+ ]
chunk_3.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
chunk_3.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b84e5edac974282137f739c6496cee2886d0608856178611b5d11f9700c4c1a
3
+ size 286098816
chunk_4.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7bedfb54421c4aeaa0844723986ca4e66652ac68b20abd686b4fa3c53c80386
3
+ size 243
chunk_4.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84c2eac6ca9fdb4ab88c41656315d8df46a770b4808d9cccba1a9e1ffbabefa3
3
+ size 1228
chunk_4.mlmodelc/metadata.json ADDED
@@ -0,0 +1,629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 2560]",
13
+ "name" : "hidden_out",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 9,
21
+ "functions" : [
22
+ {
23
+ "inputSchema" : [
24
+ {
25
+ "hasShapeFlexibility" : "0",
26
+ "isOptional" : "0",
27
+ "dataType" : "Float16",
28
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
29
+ "shortDescription" : "",
30
+ "shape" : "[1, 1, 2560]",
31
+ "name" : "hidden_in",
32
+ "type" : "MultiArray"
33
+ },
34
+ {
35
+ "hasShapeFlexibility" : "0",
36
+ "isOptional" : "0",
37
+ "dataType" : "Float16",
38
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
39
+ "shortDescription" : "",
40
+ "shape" : "[6, 1, 256]",
41
+ "name" : "ple_in",
42
+ "type" : "MultiArray"
43
+ },
44
+ {
45
+ "hasShapeFlexibility" : "0",
46
+ "isOptional" : "0",
47
+ "dataType" : "Float16",
48
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
49
+ "shortDescription" : "",
50
+ "shape" : "[1, 1, 1, 256]",
51
+ "name" : "cos_sliding",
52
+ "type" : "MultiArray"
53
+ },
54
+ {
55
+ "hasShapeFlexibility" : "0",
56
+ "isOptional" : "0",
57
+ "dataType" : "Float16",
58
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
59
+ "shortDescription" : "",
60
+ "shape" : "[1, 1, 1, 256]",
61
+ "name" : "sin_sliding",
62
+ "type" : "MultiArray"
63
+ },
64
+ {
65
+ "hasShapeFlexibility" : "0",
66
+ "isOptional" : "0",
67
+ "dataType" : "Float16",
68
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
69
+ "shortDescription" : "",
70
+ "shape" : "[1, 1, 1, 512]",
71
+ "name" : "cos_full",
72
+ "type" : "MultiArray"
73
+ },
74
+ {
75
+ "hasShapeFlexibility" : "0",
76
+ "isOptional" : "0",
77
+ "dataType" : "Float16",
78
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
79
+ "shortDescription" : "",
80
+ "shape" : "[1, 1, 1, 512]",
81
+ "name" : "sin_full",
82
+ "type" : "MultiArray"
83
+ },
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
89
+ "shortDescription" : "",
90
+ "shape" : "[1, 1, 1, 2049]",
91
+ "name" : "causal_mask_sliding",
92
+ "type" : "MultiArray"
93
+ },
94
+ {
95
+ "hasShapeFlexibility" : "0",
96
+ "isOptional" : "0",
97
+ "dataType" : "Float16",
98
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
99
+ "shortDescription" : "",
100
+ "shape" : "[1, 1, 1, 2049]",
101
+ "name" : "causal_mask_full",
102
+ "type" : "MultiArray"
103
+ },
104
+ {
105
+ "hasShapeFlexibility" : "0",
106
+ "isOptional" : "0",
107
+ "dataType" : "Float16",
108
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
109
+ "shortDescription" : "",
110
+ "shape" : "[1, 2, 2048, 256]",
111
+ "name" : "k_sliding_in",
112
+ "type" : "MultiArray"
113
+ },
114
+ {
115
+ "hasShapeFlexibility" : "0",
116
+ "isOptional" : "0",
117
+ "dataType" : "Float16",
118
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
119
+ "shortDescription" : "",
120
+ "shape" : "[1, 2, 2048, 256]",
121
+ "name" : "v_sliding_in",
122
+ "type" : "MultiArray"
123
+ },
124
+ {
125
+ "hasShapeFlexibility" : "0",
126
+ "isOptional" : "0",
127
+ "dataType" : "Float16",
128
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
129
+ "shortDescription" : "",
130
+ "shape" : "[1, 2, 2048, 512]",
131
+ "name" : "k_full_in",
132
+ "type" : "MultiArray"
133
+ },
134
+ {
135
+ "hasShapeFlexibility" : "0",
136
+ "isOptional" : "0",
137
+ "dataType" : "Float16",
138
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
139
+ "shortDescription" : "",
140
+ "shape" : "[1, 2, 2048, 512]",
141
+ "name" : "v_full_in",
142
+ "type" : "MultiArray"
143
+ },
144
+ {
145
+ "hasShapeFlexibility" : "0",
146
+ "isOptional" : "0",
147
+ "dataType" : "Float16",
148
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
149
+ "shortDescription" : "",
150
+ "shape" : "[1, 2, 1, 256]",
151
+ "name" : "k_shared_sliding_new",
152
+ "type" : "MultiArray"
153
+ },
154
+ {
155
+ "hasShapeFlexibility" : "0",
156
+ "isOptional" : "0",
157
+ "dataType" : "Float16",
158
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
159
+ "shortDescription" : "",
160
+ "shape" : "[1, 2, 1, 256]",
161
+ "name" : "v_shared_sliding_new",
162
+ "type" : "MultiArray"
163
+ },
164
+ {
165
+ "hasShapeFlexibility" : "0",
166
+ "isOptional" : "0",
167
+ "dataType" : "Float16",
168
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
169
+ "shortDescription" : "",
170
+ "shape" : "[1, 2, 1, 512]",
171
+ "name" : "k_shared_full_new",
172
+ "type" : "MultiArray"
173
+ },
174
+ {
175
+ "hasShapeFlexibility" : "0",
176
+ "isOptional" : "0",
177
+ "dataType" : "Float16",
178
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
179
+ "shortDescription" : "",
180
+ "shape" : "[1, 2, 1, 512]",
181
+ "name" : "v_shared_full_new",
182
+ "type" : "MultiArray"
183
+ }
184
+ ],
185
+ "computePrecision" : "Mixed (Float16, Int32)",
186
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
187
+ "stateSchema" : [
188
+
189
+ ],
190
+ "outputSchema" : [
191
+ {
192
+ "hasShapeFlexibility" : "0",
193
+ "isOptional" : "0",
194
+ "dataType" : "Float16",
195
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
196
+ "shortDescription" : "",
197
+ "shape" : "[1, 1, 2560]",
198
+ "name" : "hidden_out",
199
+ "type" : "MultiArray"
200
+ }
201
+ ],
202
+ "name" : "decode",
203
+ "mlProgramOperationTypeHistogram" : {
204
+ "Ios18.constexprLutToDense" : 42,
205
+ "Ios16.reduceSum" : 6,
206
+ "Ios18.conv" : 42,
207
+ "Ios18.matmul" : 24,
208
+ "Ios18.sub" : 6,
209
+ "Ios18.gelu" : 12,
210
+ "Ios18.concat" : 48,
211
+ "Ios18.add" : 36,
212
+ "Ios18.realDiv" : 6,
213
+ "Ios18.transpose" : 60,
214
+ "Ios18.layerNorm" : 36,
215
+ "Tile" : 2,
216
+ "Ios16.reduceMax" : 6,
217
+ "Ios18.reshape" : 30,
218
+ "Split" : 49,
219
+ "Ios18.exp" : 6,
220
+ "Ios18.mul" : 108
221
+ }
222
+ },
223
+ {
224
+ "inputSchema" : [
225
+ {
226
+ "hasShapeFlexibility" : "0",
227
+ "isOptional" : "0",
228
+ "dataType" : "Float16",
229
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
230
+ "shortDescription" : "",
231
+ "shape" : "[1, 64, 2560]",
232
+ "name" : "hidden_in",
233
+ "type" : "MultiArray"
234
+ },
235
+ {
236
+ "hasShapeFlexibility" : "0",
237
+ "isOptional" : "0",
238
+ "dataType" : "Float16",
239
+ "formattedType" : "MultiArray (Float16 6 × 64 × 256)",
240
+ "shortDescription" : "",
241
+ "shape" : "[6, 64, 256]",
242
+ "name" : "ple_in",
243
+ "type" : "MultiArray"
244
+ },
245
+ {
246
+ "hasShapeFlexibility" : "0",
247
+ "isOptional" : "0",
248
+ "dataType" : "Float16",
249
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
250
+ "shortDescription" : "",
251
+ "shape" : "[1, 1, 64, 256]",
252
+ "name" : "cos_sliding",
253
+ "type" : "MultiArray"
254
+ },
255
+ {
256
+ "hasShapeFlexibility" : "0",
257
+ "isOptional" : "0",
258
+ "dataType" : "Float16",
259
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
260
+ "shortDescription" : "",
261
+ "shape" : "[1, 1, 64, 256]",
262
+ "name" : "sin_sliding",
263
+ "type" : "MultiArray"
264
+ },
265
+ {
266
+ "hasShapeFlexibility" : "0",
267
+ "isOptional" : "0",
268
+ "dataType" : "Float16",
269
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
270
+ "shortDescription" : "",
271
+ "shape" : "[1, 1, 64, 512]",
272
+ "name" : "cos_full",
273
+ "type" : "MultiArray"
274
+ },
275
+ {
276
+ "hasShapeFlexibility" : "0",
277
+ "isOptional" : "0",
278
+ "dataType" : "Float16",
279
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
280
+ "shortDescription" : "",
281
+ "shape" : "[1, 1, 64, 512]",
282
+ "name" : "sin_full",
283
+ "type" : "MultiArray"
284
+ },
285
+ {
286
+ "hasShapeFlexibility" : "0",
287
+ "isOptional" : "0",
288
+ "dataType" : "Float16",
289
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
290
+ "shortDescription" : "",
291
+ "shape" : "[1, 1, 64, 2112]",
292
+ "name" : "causal_mask_sliding",
293
+ "type" : "MultiArray"
294
+ },
295
+ {
296
+ "hasShapeFlexibility" : "0",
297
+ "isOptional" : "0",
298
+ "dataType" : "Float16",
299
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
300
+ "shortDescription" : "",
301
+ "shape" : "[1, 1, 64, 2112]",
302
+ "name" : "causal_mask_full",
303
+ "type" : "MultiArray"
304
+ },
305
+ {
306
+ "hasShapeFlexibility" : "0",
307
+ "isOptional" : "0",
308
+ "dataType" : "Float16",
309
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
310
+ "shortDescription" : "",
311
+ "shape" : "[1, 2, 2048, 256]",
312
+ "name" : "k_sliding_in",
313
+ "type" : "MultiArray"
314
+ },
315
+ {
316
+ "hasShapeFlexibility" : "0",
317
+ "isOptional" : "0",
318
+ "dataType" : "Float16",
319
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
320
+ "shortDescription" : "",
321
+ "shape" : "[1, 2, 2048, 256]",
322
+ "name" : "v_sliding_in",
323
+ "type" : "MultiArray"
324
+ },
325
+ {
326
+ "hasShapeFlexibility" : "0",
327
+ "isOptional" : "0",
328
+ "dataType" : "Float16",
329
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
330
+ "shortDescription" : "",
331
+ "shape" : "[1, 2, 2048, 512]",
332
+ "name" : "k_full_in",
333
+ "type" : "MultiArray"
334
+ },
335
+ {
336
+ "hasShapeFlexibility" : "0",
337
+ "isOptional" : "0",
338
+ "dataType" : "Float16",
339
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
340
+ "shortDescription" : "",
341
+ "shape" : "[1, 2, 2048, 512]",
342
+ "name" : "v_full_in",
343
+ "type" : "MultiArray"
344
+ },
345
+ {
346
+ "hasShapeFlexibility" : "0",
347
+ "isOptional" : "0",
348
+ "dataType" : "Float16",
349
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 256)",
350
+ "shortDescription" : "",
351
+ "shape" : "[1, 2, 64, 256]",
352
+ "name" : "k_shared_sliding_new",
353
+ "type" : "MultiArray"
354
+ },
355
+ {
356
+ "hasShapeFlexibility" : "0",
357
+ "isOptional" : "0",
358
+ "dataType" : "Float16",
359
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 256)",
360
+ "shortDescription" : "",
361
+ "shape" : "[1, 2, 64, 256]",
362
+ "name" : "v_shared_sliding_new",
363
+ "type" : "MultiArray"
364
+ },
365
+ {
366
+ "hasShapeFlexibility" : "0",
367
+ "isOptional" : "0",
368
+ "dataType" : "Float16",
369
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
370
+ "shortDescription" : "",
371
+ "shape" : "[1, 2, 64, 512]",
372
+ "name" : "k_shared_full_new",
373
+ "type" : "MultiArray"
374
+ },
375
+ {
376
+ "hasShapeFlexibility" : "0",
377
+ "isOptional" : "0",
378
+ "dataType" : "Float16",
379
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
380
+ "shortDescription" : "",
381
+ "shape" : "[1, 2, 64, 512]",
382
+ "name" : "v_shared_full_new",
383
+ "type" : "MultiArray"
384
+ }
385
+ ],
386
+ "computePrecision" : "Mixed (Float16, Int32)",
387
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
388
+ "stateSchema" : [
389
+
390
+ ],
391
+ "outputSchema" : [
392
+ {
393
+ "hasShapeFlexibility" : "0",
394
+ "isOptional" : "0",
395
+ "dataType" : "Float16",
396
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
397
+ "shortDescription" : "",
398
+ "shape" : "[1, 64, 2560]",
399
+ "name" : "hidden_out",
400
+ "type" : "MultiArray"
401
+ }
402
+ ],
403
+ "name" : "prefill",
404
+ "mlProgramOperationTypeHistogram" : {
405
+ "Ios18.constexprLutToDense" : 42,
406
+ "Ios16.reduceSum" : 6,
407
+ "Ios18.conv" : 42,
408
+ "Ios18.matmul" : 24,
409
+ "Ios18.sub" : 6,
410
+ "Ios18.gelu" : 12,
411
+ "Ios18.concat" : 48,
412
+ "Ios18.add" : 36,
413
+ "Ios18.realDiv" : 6,
414
+ "Ios18.transpose" : 72,
415
+ "Ios18.layerNorm" : 36,
416
+ "Tile" : 2,
417
+ "Ios16.reduceMax" : 6,
418
+ "Ios18.reshape" : 24,
419
+ "Split" : 49,
420
+ "Ios18.exp" : 6,
421
+ "Ios18.mul" : 108
422
+ }
423
+ }
424
+ ],
425
+ "mlProgramOperationTypeHistogram" : {
426
+ "Ios18.constexprLutToDense" : 42,
427
+ "Ios16.reduceSum" : 6,
428
+ "Ios18.conv" : 42,
429
+ "Ios18.matmul" : 24,
430
+ "Ios18.sub" : 6,
431
+ "Ios18.gelu" : 12,
432
+ "Ios18.concat" : 48,
433
+ "Ios18.add" : 36,
434
+ "Ios18.realDiv" : 6,
435
+ "Ios18.transpose" : 60,
436
+ "Ios18.layerNorm" : 36,
437
+ "Tile" : 2,
438
+ "Ios16.reduceMax" : 6,
439
+ "Ios18.reshape" : 30,
440
+ "Split" : 49,
441
+ "Ios18.exp" : 6,
442
+ "Ios18.mul" : 108
443
+ },
444
+ "isUpdatable" : "0",
445
+ "stateSchema" : [
446
+
447
+ ],
448
+ "availability" : {
449
+ "macOS" : "15.0",
450
+ "tvOS" : "18.0",
451
+ "visionOS" : "2.0",
452
+ "watchOS" : "11.0",
453
+ "iOS" : "18.0",
454
+ "macCatalyst" : "18.0"
455
+ },
456
+ "computePrecision" : "Mixed (Float16, Int32)",
457
+ "modelType" : {
458
+ "name" : "MLModelType_mlProgram"
459
+ },
460
+ "inputSchema" : [
461
+ {
462
+ "hasShapeFlexibility" : "0",
463
+ "isOptional" : "0",
464
+ "dataType" : "Float16",
465
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
466
+ "shortDescription" : "",
467
+ "shape" : "[1, 1, 2560]",
468
+ "name" : "hidden_in",
469
+ "type" : "MultiArray"
470
+ },
471
+ {
472
+ "hasShapeFlexibility" : "0",
473
+ "isOptional" : "0",
474
+ "dataType" : "Float16",
475
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
476
+ "shortDescription" : "",
477
+ "shape" : "[6, 1, 256]",
478
+ "name" : "ple_in",
479
+ "type" : "MultiArray"
480
+ },
481
+ {
482
+ "hasShapeFlexibility" : "0",
483
+ "isOptional" : "0",
484
+ "dataType" : "Float16",
485
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
486
+ "shortDescription" : "",
487
+ "shape" : "[1, 1, 1, 256]",
488
+ "name" : "cos_sliding",
489
+ "type" : "MultiArray"
490
+ },
491
+ {
492
+ "hasShapeFlexibility" : "0",
493
+ "isOptional" : "0",
494
+ "dataType" : "Float16",
495
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
496
+ "shortDescription" : "",
497
+ "shape" : "[1, 1, 1, 256]",
498
+ "name" : "sin_sliding",
499
+ "type" : "MultiArray"
500
+ },
501
+ {
502
+ "hasShapeFlexibility" : "0",
503
+ "isOptional" : "0",
504
+ "dataType" : "Float16",
505
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
506
+ "shortDescription" : "",
507
+ "shape" : "[1, 1, 1, 512]",
508
+ "name" : "cos_full",
509
+ "type" : "MultiArray"
510
+ },
511
+ {
512
+ "hasShapeFlexibility" : "0",
513
+ "isOptional" : "0",
514
+ "dataType" : "Float16",
515
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
516
+ "shortDescription" : "",
517
+ "shape" : "[1, 1, 1, 512]",
518
+ "name" : "sin_full",
519
+ "type" : "MultiArray"
520
+ },
521
+ {
522
+ "hasShapeFlexibility" : "0",
523
+ "isOptional" : "0",
524
+ "dataType" : "Float16",
525
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
526
+ "shortDescription" : "",
527
+ "shape" : "[1, 1, 1, 2049]",
528
+ "name" : "causal_mask_sliding",
529
+ "type" : "MultiArray"
530
+ },
531
+ {
532
+ "hasShapeFlexibility" : "0",
533
+ "isOptional" : "0",
534
+ "dataType" : "Float16",
535
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
536
+ "shortDescription" : "",
537
+ "shape" : "[1, 1, 1, 2049]",
538
+ "name" : "causal_mask_full",
539
+ "type" : "MultiArray"
540
+ },
541
+ {
542
+ "hasShapeFlexibility" : "0",
543
+ "isOptional" : "0",
544
+ "dataType" : "Float16",
545
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
546
+ "shortDescription" : "",
547
+ "shape" : "[1, 2, 2048, 256]",
548
+ "name" : "k_sliding_in",
549
+ "type" : "MultiArray"
550
+ },
551
+ {
552
+ "hasShapeFlexibility" : "0",
553
+ "isOptional" : "0",
554
+ "dataType" : "Float16",
555
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
556
+ "shortDescription" : "",
557
+ "shape" : "[1, 2, 2048, 256]",
558
+ "name" : "v_sliding_in",
559
+ "type" : "MultiArray"
560
+ },
561
+ {
562
+ "hasShapeFlexibility" : "0",
563
+ "isOptional" : "0",
564
+ "dataType" : "Float16",
565
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
566
+ "shortDescription" : "",
567
+ "shape" : "[1, 2, 2048, 512]",
568
+ "name" : "k_full_in",
569
+ "type" : "MultiArray"
570
+ },
571
+ {
572
+ "hasShapeFlexibility" : "0",
573
+ "isOptional" : "0",
574
+ "dataType" : "Float16",
575
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
576
+ "shortDescription" : "",
577
+ "shape" : "[1, 2, 2048, 512]",
578
+ "name" : "v_full_in",
579
+ "type" : "MultiArray"
580
+ },
581
+ {
582
+ "hasShapeFlexibility" : "0",
583
+ "isOptional" : "0",
584
+ "dataType" : "Float16",
585
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
586
+ "shortDescription" : "",
587
+ "shape" : "[1, 2, 1, 256]",
588
+ "name" : "k_shared_sliding_new",
589
+ "type" : "MultiArray"
590
+ },
591
+ {
592
+ "hasShapeFlexibility" : "0",
593
+ "isOptional" : "0",
594
+ "dataType" : "Float16",
595
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
596
+ "shortDescription" : "",
597
+ "shape" : "[1, 2, 1, 256]",
598
+ "name" : "v_shared_sliding_new",
599
+ "type" : "MultiArray"
600
+ },
601
+ {
602
+ "hasShapeFlexibility" : "0",
603
+ "isOptional" : "0",
604
+ "dataType" : "Float16",
605
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
606
+ "shortDescription" : "",
607
+ "shape" : "[1, 2, 1, 512]",
608
+ "name" : "k_shared_full_new",
609
+ "type" : "MultiArray"
610
+ },
611
+ {
612
+ "hasShapeFlexibility" : "0",
613
+ "isOptional" : "0",
614
+ "dataType" : "Float16",
615
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
616
+ "shortDescription" : "",
617
+ "shape" : "[1, 2, 1, 512]",
618
+ "name" : "v_shared_full_new",
619
+ "type" : "MultiArray"
620
+ }
621
+ ],
622
+ "defaultFunctionName" : "decode",
623
+ "generatedClassName" : "chunk_4",
624
+ "userDefinedMetadata" : {
625
+
626
+ },
627
+ "method" : "predict"
628
+ }
629
+ ]
chunk_4.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
chunk_4.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd2a75f9bf39500c8e7746d7b15a754e15bbfe664778bcd76a51df3b591b1173
3
+ size 276909376
chunk_5.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:336aa9b5e21d82e997aa21524028cc2594bb5594ff7844ff2f255e2666d920bb
3
+ size 243
chunk_5.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84c2eac6ca9fdb4ab88c41656315d8df46a770b4808d9cccba1a9e1ffbabefa3
3
+ size 1228
chunk_5.mlmodelc/metadata.json ADDED
@@ -0,0 +1,629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 2560]",
13
+ "name" : "hidden_out",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 9,
21
+ "functions" : [
22
+ {
23
+ "inputSchema" : [
24
+ {
25
+ "hasShapeFlexibility" : "0",
26
+ "isOptional" : "0",
27
+ "dataType" : "Float16",
28
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
29
+ "shortDescription" : "",
30
+ "shape" : "[1, 1, 2560]",
31
+ "name" : "hidden_in",
32
+ "type" : "MultiArray"
33
+ },
34
+ {
35
+ "hasShapeFlexibility" : "0",
36
+ "isOptional" : "0",
37
+ "dataType" : "Float16",
38
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
39
+ "shortDescription" : "",
40
+ "shape" : "[6, 1, 256]",
41
+ "name" : "ple_in",
42
+ "type" : "MultiArray"
43
+ },
44
+ {
45
+ "hasShapeFlexibility" : "0",
46
+ "isOptional" : "0",
47
+ "dataType" : "Float16",
48
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
49
+ "shortDescription" : "",
50
+ "shape" : "[1, 1, 1, 256]",
51
+ "name" : "cos_sliding",
52
+ "type" : "MultiArray"
53
+ },
54
+ {
55
+ "hasShapeFlexibility" : "0",
56
+ "isOptional" : "0",
57
+ "dataType" : "Float16",
58
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
59
+ "shortDescription" : "",
60
+ "shape" : "[1, 1, 1, 256]",
61
+ "name" : "sin_sliding",
62
+ "type" : "MultiArray"
63
+ },
64
+ {
65
+ "hasShapeFlexibility" : "0",
66
+ "isOptional" : "0",
67
+ "dataType" : "Float16",
68
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
69
+ "shortDescription" : "",
70
+ "shape" : "[1, 1, 1, 512]",
71
+ "name" : "cos_full",
72
+ "type" : "MultiArray"
73
+ },
74
+ {
75
+ "hasShapeFlexibility" : "0",
76
+ "isOptional" : "0",
77
+ "dataType" : "Float16",
78
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
79
+ "shortDescription" : "",
80
+ "shape" : "[1, 1, 1, 512]",
81
+ "name" : "sin_full",
82
+ "type" : "MultiArray"
83
+ },
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
89
+ "shortDescription" : "",
90
+ "shape" : "[1, 1, 1, 2049]",
91
+ "name" : "causal_mask_sliding",
92
+ "type" : "MultiArray"
93
+ },
94
+ {
95
+ "hasShapeFlexibility" : "0",
96
+ "isOptional" : "0",
97
+ "dataType" : "Float16",
98
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
99
+ "shortDescription" : "",
100
+ "shape" : "[1, 1, 1, 2049]",
101
+ "name" : "causal_mask_full",
102
+ "type" : "MultiArray"
103
+ },
104
+ {
105
+ "hasShapeFlexibility" : "0",
106
+ "isOptional" : "0",
107
+ "dataType" : "Float16",
108
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
109
+ "shortDescription" : "",
110
+ "shape" : "[1, 2, 2048, 256]",
111
+ "name" : "k_sliding_in",
112
+ "type" : "MultiArray"
113
+ },
114
+ {
115
+ "hasShapeFlexibility" : "0",
116
+ "isOptional" : "0",
117
+ "dataType" : "Float16",
118
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
119
+ "shortDescription" : "",
120
+ "shape" : "[1, 2, 2048, 256]",
121
+ "name" : "v_sliding_in",
122
+ "type" : "MultiArray"
123
+ },
124
+ {
125
+ "hasShapeFlexibility" : "0",
126
+ "isOptional" : "0",
127
+ "dataType" : "Float16",
128
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
129
+ "shortDescription" : "",
130
+ "shape" : "[1, 2, 2048, 512]",
131
+ "name" : "k_full_in",
132
+ "type" : "MultiArray"
133
+ },
134
+ {
135
+ "hasShapeFlexibility" : "0",
136
+ "isOptional" : "0",
137
+ "dataType" : "Float16",
138
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
139
+ "shortDescription" : "",
140
+ "shape" : "[1, 2, 2048, 512]",
141
+ "name" : "v_full_in",
142
+ "type" : "MultiArray"
143
+ },
144
+ {
145
+ "hasShapeFlexibility" : "0",
146
+ "isOptional" : "0",
147
+ "dataType" : "Float16",
148
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
149
+ "shortDescription" : "",
150
+ "shape" : "[1, 2, 1, 256]",
151
+ "name" : "k_shared_sliding_new",
152
+ "type" : "MultiArray"
153
+ },
154
+ {
155
+ "hasShapeFlexibility" : "0",
156
+ "isOptional" : "0",
157
+ "dataType" : "Float16",
158
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
159
+ "shortDescription" : "",
160
+ "shape" : "[1, 2, 1, 256]",
161
+ "name" : "v_shared_sliding_new",
162
+ "type" : "MultiArray"
163
+ },
164
+ {
165
+ "hasShapeFlexibility" : "0",
166
+ "isOptional" : "0",
167
+ "dataType" : "Float16",
168
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
169
+ "shortDescription" : "",
170
+ "shape" : "[1, 2, 1, 512]",
171
+ "name" : "k_shared_full_new",
172
+ "type" : "MultiArray"
173
+ },
174
+ {
175
+ "hasShapeFlexibility" : "0",
176
+ "isOptional" : "0",
177
+ "dataType" : "Float16",
178
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
179
+ "shortDescription" : "",
180
+ "shape" : "[1, 2, 1, 512]",
181
+ "name" : "v_shared_full_new",
182
+ "type" : "MultiArray"
183
+ }
184
+ ],
185
+ "computePrecision" : "Mixed (Float16, Int32)",
186
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
187
+ "stateSchema" : [
188
+
189
+ ],
190
+ "outputSchema" : [
191
+ {
192
+ "hasShapeFlexibility" : "0",
193
+ "isOptional" : "0",
194
+ "dataType" : "Float16",
195
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
196
+ "shortDescription" : "",
197
+ "shape" : "[1, 1, 2560]",
198
+ "name" : "hidden_out",
199
+ "type" : "MultiArray"
200
+ }
201
+ ],
202
+ "name" : "decode",
203
+ "mlProgramOperationTypeHistogram" : {
204
+ "Ios18.constexprLutToDense" : 42,
205
+ "Ios16.reduceSum" : 6,
206
+ "Ios18.conv" : 42,
207
+ "Ios18.matmul" : 24,
208
+ "Ios18.sub" : 6,
209
+ "Ios18.gelu" : 12,
210
+ "Ios18.concat" : 48,
211
+ "Ios18.add" : 36,
212
+ "Ios18.realDiv" : 6,
213
+ "Ios18.transpose" : 60,
214
+ "Ios18.layerNorm" : 36,
215
+ "Tile" : 2,
216
+ "Ios16.reduceMax" : 6,
217
+ "Ios18.reshape" : 30,
218
+ "Split" : 49,
219
+ "Ios18.exp" : 6,
220
+ "Ios18.mul" : 108
221
+ }
222
+ },
223
+ {
224
+ "inputSchema" : [
225
+ {
226
+ "hasShapeFlexibility" : "0",
227
+ "isOptional" : "0",
228
+ "dataType" : "Float16",
229
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
230
+ "shortDescription" : "",
231
+ "shape" : "[1, 64, 2560]",
232
+ "name" : "hidden_in",
233
+ "type" : "MultiArray"
234
+ },
235
+ {
236
+ "hasShapeFlexibility" : "0",
237
+ "isOptional" : "0",
238
+ "dataType" : "Float16",
239
+ "formattedType" : "MultiArray (Float16 6 × 64 × 256)",
240
+ "shortDescription" : "",
241
+ "shape" : "[6, 64, 256]",
242
+ "name" : "ple_in",
243
+ "type" : "MultiArray"
244
+ },
245
+ {
246
+ "hasShapeFlexibility" : "0",
247
+ "isOptional" : "0",
248
+ "dataType" : "Float16",
249
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
250
+ "shortDescription" : "",
251
+ "shape" : "[1, 1, 64, 256]",
252
+ "name" : "cos_sliding",
253
+ "type" : "MultiArray"
254
+ },
255
+ {
256
+ "hasShapeFlexibility" : "0",
257
+ "isOptional" : "0",
258
+ "dataType" : "Float16",
259
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
260
+ "shortDescription" : "",
261
+ "shape" : "[1, 1, 64, 256]",
262
+ "name" : "sin_sliding",
263
+ "type" : "MultiArray"
264
+ },
265
+ {
266
+ "hasShapeFlexibility" : "0",
267
+ "isOptional" : "0",
268
+ "dataType" : "Float16",
269
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
270
+ "shortDescription" : "",
271
+ "shape" : "[1, 1, 64, 512]",
272
+ "name" : "cos_full",
273
+ "type" : "MultiArray"
274
+ },
275
+ {
276
+ "hasShapeFlexibility" : "0",
277
+ "isOptional" : "0",
278
+ "dataType" : "Float16",
279
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
280
+ "shortDescription" : "",
281
+ "shape" : "[1, 1, 64, 512]",
282
+ "name" : "sin_full",
283
+ "type" : "MultiArray"
284
+ },
285
+ {
286
+ "hasShapeFlexibility" : "0",
287
+ "isOptional" : "0",
288
+ "dataType" : "Float16",
289
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
290
+ "shortDescription" : "",
291
+ "shape" : "[1, 1, 64, 2112]",
292
+ "name" : "causal_mask_sliding",
293
+ "type" : "MultiArray"
294
+ },
295
+ {
296
+ "hasShapeFlexibility" : "0",
297
+ "isOptional" : "0",
298
+ "dataType" : "Float16",
299
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
300
+ "shortDescription" : "",
301
+ "shape" : "[1, 1, 64, 2112]",
302
+ "name" : "causal_mask_full",
303
+ "type" : "MultiArray"
304
+ },
305
+ {
306
+ "hasShapeFlexibility" : "0",
307
+ "isOptional" : "0",
308
+ "dataType" : "Float16",
309
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
310
+ "shortDescription" : "",
311
+ "shape" : "[1, 2, 2048, 256]",
312
+ "name" : "k_sliding_in",
313
+ "type" : "MultiArray"
314
+ },
315
+ {
316
+ "hasShapeFlexibility" : "0",
317
+ "isOptional" : "0",
318
+ "dataType" : "Float16",
319
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
320
+ "shortDescription" : "",
321
+ "shape" : "[1, 2, 2048, 256]",
322
+ "name" : "v_sliding_in",
323
+ "type" : "MultiArray"
324
+ },
325
+ {
326
+ "hasShapeFlexibility" : "0",
327
+ "isOptional" : "0",
328
+ "dataType" : "Float16",
329
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
330
+ "shortDescription" : "",
331
+ "shape" : "[1, 2, 2048, 512]",
332
+ "name" : "k_full_in",
333
+ "type" : "MultiArray"
334
+ },
335
+ {
336
+ "hasShapeFlexibility" : "0",
337
+ "isOptional" : "0",
338
+ "dataType" : "Float16",
339
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
340
+ "shortDescription" : "",
341
+ "shape" : "[1, 2, 2048, 512]",
342
+ "name" : "v_full_in",
343
+ "type" : "MultiArray"
344
+ },
345
+ {
346
+ "hasShapeFlexibility" : "0",
347
+ "isOptional" : "0",
348
+ "dataType" : "Float16",
349
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 256)",
350
+ "shortDescription" : "",
351
+ "shape" : "[1, 2, 64, 256]",
352
+ "name" : "k_shared_sliding_new",
353
+ "type" : "MultiArray"
354
+ },
355
+ {
356
+ "hasShapeFlexibility" : "0",
357
+ "isOptional" : "0",
358
+ "dataType" : "Float16",
359
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 256)",
360
+ "shortDescription" : "",
361
+ "shape" : "[1, 2, 64, 256]",
362
+ "name" : "v_shared_sliding_new",
363
+ "type" : "MultiArray"
364
+ },
365
+ {
366
+ "hasShapeFlexibility" : "0",
367
+ "isOptional" : "0",
368
+ "dataType" : "Float16",
369
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
370
+ "shortDescription" : "",
371
+ "shape" : "[1, 2, 64, 512]",
372
+ "name" : "k_shared_full_new",
373
+ "type" : "MultiArray"
374
+ },
375
+ {
376
+ "hasShapeFlexibility" : "0",
377
+ "isOptional" : "0",
378
+ "dataType" : "Float16",
379
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
380
+ "shortDescription" : "",
381
+ "shape" : "[1, 2, 64, 512]",
382
+ "name" : "v_shared_full_new",
383
+ "type" : "MultiArray"
384
+ }
385
+ ],
386
+ "computePrecision" : "Mixed (Float16, Int32)",
387
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
388
+ "stateSchema" : [
389
+
390
+ ],
391
+ "outputSchema" : [
392
+ {
393
+ "hasShapeFlexibility" : "0",
394
+ "isOptional" : "0",
395
+ "dataType" : "Float16",
396
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
397
+ "shortDescription" : "",
398
+ "shape" : "[1, 64, 2560]",
399
+ "name" : "hidden_out",
400
+ "type" : "MultiArray"
401
+ }
402
+ ],
403
+ "name" : "prefill",
404
+ "mlProgramOperationTypeHistogram" : {
405
+ "Ios18.constexprLutToDense" : 42,
406
+ "Ios16.reduceSum" : 6,
407
+ "Ios18.conv" : 42,
408
+ "Ios18.matmul" : 24,
409
+ "Ios18.sub" : 6,
410
+ "Ios18.gelu" : 12,
411
+ "Ios18.concat" : 48,
412
+ "Ios18.add" : 36,
413
+ "Ios18.realDiv" : 6,
414
+ "Ios18.transpose" : 72,
415
+ "Ios18.layerNorm" : 36,
416
+ "Tile" : 2,
417
+ "Ios16.reduceMax" : 6,
418
+ "Ios18.reshape" : 24,
419
+ "Split" : 49,
420
+ "Ios18.exp" : 6,
421
+ "Ios18.mul" : 108
422
+ }
423
+ }
424
+ ],
425
+ "mlProgramOperationTypeHistogram" : {
426
+ "Ios18.constexprLutToDense" : 42,
427
+ "Ios16.reduceSum" : 6,
428
+ "Ios18.conv" : 42,
429
+ "Ios18.matmul" : 24,
430
+ "Ios18.sub" : 6,
431
+ "Ios18.gelu" : 12,
432
+ "Ios18.concat" : 48,
433
+ "Ios18.add" : 36,
434
+ "Ios18.realDiv" : 6,
435
+ "Ios18.transpose" : 60,
436
+ "Ios18.layerNorm" : 36,
437
+ "Tile" : 2,
438
+ "Ios16.reduceMax" : 6,
439
+ "Ios18.reshape" : 30,
440
+ "Split" : 49,
441
+ "Ios18.exp" : 6,
442
+ "Ios18.mul" : 108
443
+ },
444
+ "isUpdatable" : "0",
445
+ "stateSchema" : [
446
+
447
+ ],
448
+ "availability" : {
449
+ "macOS" : "15.0",
450
+ "tvOS" : "18.0",
451
+ "visionOS" : "2.0",
452
+ "watchOS" : "11.0",
453
+ "iOS" : "18.0",
454
+ "macCatalyst" : "18.0"
455
+ },
456
+ "computePrecision" : "Mixed (Float16, Int32)",
457
+ "modelType" : {
458
+ "name" : "MLModelType_mlProgram"
459
+ },
460
+ "inputSchema" : [
461
+ {
462
+ "hasShapeFlexibility" : "0",
463
+ "isOptional" : "0",
464
+ "dataType" : "Float16",
465
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
466
+ "shortDescription" : "",
467
+ "shape" : "[1, 1, 2560]",
468
+ "name" : "hidden_in",
469
+ "type" : "MultiArray"
470
+ },
471
+ {
472
+ "hasShapeFlexibility" : "0",
473
+ "isOptional" : "0",
474
+ "dataType" : "Float16",
475
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
476
+ "shortDescription" : "",
477
+ "shape" : "[6, 1, 256]",
478
+ "name" : "ple_in",
479
+ "type" : "MultiArray"
480
+ },
481
+ {
482
+ "hasShapeFlexibility" : "0",
483
+ "isOptional" : "0",
484
+ "dataType" : "Float16",
485
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
486
+ "shortDescription" : "",
487
+ "shape" : "[1, 1, 1, 256]",
488
+ "name" : "cos_sliding",
489
+ "type" : "MultiArray"
490
+ },
491
+ {
492
+ "hasShapeFlexibility" : "0",
493
+ "isOptional" : "0",
494
+ "dataType" : "Float16",
495
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
496
+ "shortDescription" : "",
497
+ "shape" : "[1, 1, 1, 256]",
498
+ "name" : "sin_sliding",
499
+ "type" : "MultiArray"
500
+ },
501
+ {
502
+ "hasShapeFlexibility" : "0",
503
+ "isOptional" : "0",
504
+ "dataType" : "Float16",
505
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
506
+ "shortDescription" : "",
507
+ "shape" : "[1, 1, 1, 512]",
508
+ "name" : "cos_full",
509
+ "type" : "MultiArray"
510
+ },
511
+ {
512
+ "hasShapeFlexibility" : "0",
513
+ "isOptional" : "0",
514
+ "dataType" : "Float16",
515
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
516
+ "shortDescription" : "",
517
+ "shape" : "[1, 1, 1, 512]",
518
+ "name" : "sin_full",
519
+ "type" : "MultiArray"
520
+ },
521
+ {
522
+ "hasShapeFlexibility" : "0",
523
+ "isOptional" : "0",
524
+ "dataType" : "Float16",
525
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
526
+ "shortDescription" : "",
527
+ "shape" : "[1, 1, 1, 2049]",
528
+ "name" : "causal_mask_sliding",
529
+ "type" : "MultiArray"
530
+ },
531
+ {
532
+ "hasShapeFlexibility" : "0",
533
+ "isOptional" : "0",
534
+ "dataType" : "Float16",
535
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
536
+ "shortDescription" : "",
537
+ "shape" : "[1, 1, 1, 2049]",
538
+ "name" : "causal_mask_full",
539
+ "type" : "MultiArray"
540
+ },
541
+ {
542
+ "hasShapeFlexibility" : "0",
543
+ "isOptional" : "0",
544
+ "dataType" : "Float16",
545
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
546
+ "shortDescription" : "",
547
+ "shape" : "[1, 2, 2048, 256]",
548
+ "name" : "k_sliding_in",
549
+ "type" : "MultiArray"
550
+ },
551
+ {
552
+ "hasShapeFlexibility" : "0",
553
+ "isOptional" : "0",
554
+ "dataType" : "Float16",
555
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
556
+ "shortDescription" : "",
557
+ "shape" : "[1, 2, 2048, 256]",
558
+ "name" : "v_sliding_in",
559
+ "type" : "MultiArray"
560
+ },
561
+ {
562
+ "hasShapeFlexibility" : "0",
563
+ "isOptional" : "0",
564
+ "dataType" : "Float16",
565
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
566
+ "shortDescription" : "",
567
+ "shape" : "[1, 2, 2048, 512]",
568
+ "name" : "k_full_in",
569
+ "type" : "MultiArray"
570
+ },
571
+ {
572
+ "hasShapeFlexibility" : "0",
573
+ "isOptional" : "0",
574
+ "dataType" : "Float16",
575
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
576
+ "shortDescription" : "",
577
+ "shape" : "[1, 2, 2048, 512]",
578
+ "name" : "v_full_in",
579
+ "type" : "MultiArray"
580
+ },
581
+ {
582
+ "hasShapeFlexibility" : "0",
583
+ "isOptional" : "0",
584
+ "dataType" : "Float16",
585
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
586
+ "shortDescription" : "",
587
+ "shape" : "[1, 2, 1, 256]",
588
+ "name" : "k_shared_sliding_new",
589
+ "type" : "MultiArray"
590
+ },
591
+ {
592
+ "hasShapeFlexibility" : "0",
593
+ "isOptional" : "0",
594
+ "dataType" : "Float16",
595
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
596
+ "shortDescription" : "",
597
+ "shape" : "[1, 2, 1, 256]",
598
+ "name" : "v_shared_sliding_new",
599
+ "type" : "MultiArray"
600
+ },
601
+ {
602
+ "hasShapeFlexibility" : "0",
603
+ "isOptional" : "0",
604
+ "dataType" : "Float16",
605
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
606
+ "shortDescription" : "",
607
+ "shape" : "[1, 2, 1, 512]",
608
+ "name" : "k_shared_full_new",
609
+ "type" : "MultiArray"
610
+ },
611
+ {
612
+ "hasShapeFlexibility" : "0",
613
+ "isOptional" : "0",
614
+ "dataType" : "Float16",
615
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
616
+ "shortDescription" : "",
617
+ "shape" : "[1, 2, 1, 512]",
618
+ "name" : "v_shared_full_new",
619
+ "type" : "MultiArray"
620
+ }
621
+ ],
622
+ "defaultFunctionName" : "decode",
623
+ "generatedClassName" : "chunk_5",
624
+ "userDefinedMetadata" : {
625
+
626
+ },
627
+ "method" : "predict"
628
+ }
629
+ ]
chunk_5.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
chunk_5.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4856843c92ddaaf939c7ef4c6280309f6858cf73f67d550423debb25b81b9e7c
3
+ size 276909376
chunk_6.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c04b87b6e6e7c6aeca1ca252681db6c2d1095a6bf3f4fba8595b3b27594930b
3
+ size 243
chunk_6.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84c2eac6ca9fdb4ab88c41656315d8df46a770b4808d9cccba1a9e1ffbabefa3
3
+ size 1228
chunk_6.mlmodelc/metadata.json ADDED
@@ -0,0 +1,629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 2560]",
13
+ "name" : "hidden_out",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 9,
21
+ "functions" : [
22
+ {
23
+ "inputSchema" : [
24
+ {
25
+ "hasShapeFlexibility" : "0",
26
+ "isOptional" : "0",
27
+ "dataType" : "Float16",
28
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
29
+ "shortDescription" : "",
30
+ "shape" : "[1, 1, 2560]",
31
+ "name" : "hidden_in",
32
+ "type" : "MultiArray"
33
+ },
34
+ {
35
+ "hasShapeFlexibility" : "0",
36
+ "isOptional" : "0",
37
+ "dataType" : "Float16",
38
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
39
+ "shortDescription" : "",
40
+ "shape" : "[6, 1, 256]",
41
+ "name" : "ple_in",
42
+ "type" : "MultiArray"
43
+ },
44
+ {
45
+ "hasShapeFlexibility" : "0",
46
+ "isOptional" : "0",
47
+ "dataType" : "Float16",
48
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
49
+ "shortDescription" : "",
50
+ "shape" : "[1, 1, 1, 256]",
51
+ "name" : "cos_sliding",
52
+ "type" : "MultiArray"
53
+ },
54
+ {
55
+ "hasShapeFlexibility" : "0",
56
+ "isOptional" : "0",
57
+ "dataType" : "Float16",
58
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
59
+ "shortDescription" : "",
60
+ "shape" : "[1, 1, 1, 256]",
61
+ "name" : "sin_sliding",
62
+ "type" : "MultiArray"
63
+ },
64
+ {
65
+ "hasShapeFlexibility" : "0",
66
+ "isOptional" : "0",
67
+ "dataType" : "Float16",
68
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
69
+ "shortDescription" : "",
70
+ "shape" : "[1, 1, 1, 512]",
71
+ "name" : "cos_full",
72
+ "type" : "MultiArray"
73
+ },
74
+ {
75
+ "hasShapeFlexibility" : "0",
76
+ "isOptional" : "0",
77
+ "dataType" : "Float16",
78
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
79
+ "shortDescription" : "",
80
+ "shape" : "[1, 1, 1, 512]",
81
+ "name" : "sin_full",
82
+ "type" : "MultiArray"
83
+ },
84
+ {
85
+ "hasShapeFlexibility" : "0",
86
+ "isOptional" : "0",
87
+ "dataType" : "Float16",
88
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
89
+ "shortDescription" : "",
90
+ "shape" : "[1, 1, 1, 2049]",
91
+ "name" : "causal_mask_sliding",
92
+ "type" : "MultiArray"
93
+ },
94
+ {
95
+ "hasShapeFlexibility" : "0",
96
+ "isOptional" : "0",
97
+ "dataType" : "Float16",
98
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
99
+ "shortDescription" : "",
100
+ "shape" : "[1, 1, 1, 2049]",
101
+ "name" : "causal_mask_full",
102
+ "type" : "MultiArray"
103
+ },
104
+ {
105
+ "hasShapeFlexibility" : "0",
106
+ "isOptional" : "0",
107
+ "dataType" : "Float16",
108
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
109
+ "shortDescription" : "",
110
+ "shape" : "[1, 2, 2048, 256]",
111
+ "name" : "k_sliding_in",
112
+ "type" : "MultiArray"
113
+ },
114
+ {
115
+ "hasShapeFlexibility" : "0",
116
+ "isOptional" : "0",
117
+ "dataType" : "Float16",
118
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
119
+ "shortDescription" : "",
120
+ "shape" : "[1, 2, 2048, 256]",
121
+ "name" : "v_sliding_in",
122
+ "type" : "MultiArray"
123
+ },
124
+ {
125
+ "hasShapeFlexibility" : "0",
126
+ "isOptional" : "0",
127
+ "dataType" : "Float16",
128
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
129
+ "shortDescription" : "",
130
+ "shape" : "[1, 2, 2048, 512]",
131
+ "name" : "k_full_in",
132
+ "type" : "MultiArray"
133
+ },
134
+ {
135
+ "hasShapeFlexibility" : "0",
136
+ "isOptional" : "0",
137
+ "dataType" : "Float16",
138
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
139
+ "shortDescription" : "",
140
+ "shape" : "[1, 2, 2048, 512]",
141
+ "name" : "v_full_in",
142
+ "type" : "MultiArray"
143
+ },
144
+ {
145
+ "hasShapeFlexibility" : "0",
146
+ "isOptional" : "0",
147
+ "dataType" : "Float16",
148
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
149
+ "shortDescription" : "",
150
+ "shape" : "[1, 2, 1, 256]",
151
+ "name" : "k_shared_sliding_new",
152
+ "type" : "MultiArray"
153
+ },
154
+ {
155
+ "hasShapeFlexibility" : "0",
156
+ "isOptional" : "0",
157
+ "dataType" : "Float16",
158
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
159
+ "shortDescription" : "",
160
+ "shape" : "[1, 2, 1, 256]",
161
+ "name" : "v_shared_sliding_new",
162
+ "type" : "MultiArray"
163
+ },
164
+ {
165
+ "hasShapeFlexibility" : "0",
166
+ "isOptional" : "0",
167
+ "dataType" : "Float16",
168
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
169
+ "shortDescription" : "",
170
+ "shape" : "[1, 2, 1, 512]",
171
+ "name" : "k_shared_full_new",
172
+ "type" : "MultiArray"
173
+ },
174
+ {
175
+ "hasShapeFlexibility" : "0",
176
+ "isOptional" : "0",
177
+ "dataType" : "Float16",
178
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
179
+ "shortDescription" : "",
180
+ "shape" : "[1, 2, 1, 512]",
181
+ "name" : "v_shared_full_new",
182
+ "type" : "MultiArray"
183
+ }
184
+ ],
185
+ "computePrecision" : "Mixed (Float16, Int32)",
186
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
187
+ "stateSchema" : [
188
+
189
+ ],
190
+ "outputSchema" : [
191
+ {
192
+ "hasShapeFlexibility" : "0",
193
+ "isOptional" : "0",
194
+ "dataType" : "Float16",
195
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
196
+ "shortDescription" : "",
197
+ "shape" : "[1, 1, 2560]",
198
+ "name" : "hidden_out",
199
+ "type" : "MultiArray"
200
+ }
201
+ ],
202
+ "name" : "decode",
203
+ "mlProgramOperationTypeHistogram" : {
204
+ "Ios18.constexprLutToDense" : 42,
205
+ "Ios16.reduceSum" : 6,
206
+ "Ios18.conv" : 42,
207
+ "Ios18.matmul" : 24,
208
+ "Ios18.sub" : 6,
209
+ "Ios18.gelu" : 12,
210
+ "Ios18.concat" : 48,
211
+ "Ios18.add" : 36,
212
+ "Ios18.realDiv" : 6,
213
+ "Ios18.transpose" : 60,
214
+ "Ios18.layerNorm" : 36,
215
+ "Tile" : 2,
216
+ "Ios16.reduceMax" : 6,
217
+ "Ios18.reshape" : 30,
218
+ "Split" : 49,
219
+ "Ios18.exp" : 6,
220
+ "Ios18.mul" : 108
221
+ }
222
+ },
223
+ {
224
+ "inputSchema" : [
225
+ {
226
+ "hasShapeFlexibility" : "0",
227
+ "isOptional" : "0",
228
+ "dataType" : "Float16",
229
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
230
+ "shortDescription" : "",
231
+ "shape" : "[1, 64, 2560]",
232
+ "name" : "hidden_in",
233
+ "type" : "MultiArray"
234
+ },
235
+ {
236
+ "hasShapeFlexibility" : "0",
237
+ "isOptional" : "0",
238
+ "dataType" : "Float16",
239
+ "formattedType" : "MultiArray (Float16 6 × 64 × 256)",
240
+ "shortDescription" : "",
241
+ "shape" : "[6, 64, 256]",
242
+ "name" : "ple_in",
243
+ "type" : "MultiArray"
244
+ },
245
+ {
246
+ "hasShapeFlexibility" : "0",
247
+ "isOptional" : "0",
248
+ "dataType" : "Float16",
249
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
250
+ "shortDescription" : "",
251
+ "shape" : "[1, 1, 64, 256]",
252
+ "name" : "cos_sliding",
253
+ "type" : "MultiArray"
254
+ },
255
+ {
256
+ "hasShapeFlexibility" : "0",
257
+ "isOptional" : "0",
258
+ "dataType" : "Float16",
259
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 256)",
260
+ "shortDescription" : "",
261
+ "shape" : "[1, 1, 64, 256]",
262
+ "name" : "sin_sliding",
263
+ "type" : "MultiArray"
264
+ },
265
+ {
266
+ "hasShapeFlexibility" : "0",
267
+ "isOptional" : "0",
268
+ "dataType" : "Float16",
269
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
270
+ "shortDescription" : "",
271
+ "shape" : "[1, 1, 64, 512]",
272
+ "name" : "cos_full",
273
+ "type" : "MultiArray"
274
+ },
275
+ {
276
+ "hasShapeFlexibility" : "0",
277
+ "isOptional" : "0",
278
+ "dataType" : "Float16",
279
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 512)",
280
+ "shortDescription" : "",
281
+ "shape" : "[1, 1, 64, 512]",
282
+ "name" : "sin_full",
283
+ "type" : "MultiArray"
284
+ },
285
+ {
286
+ "hasShapeFlexibility" : "0",
287
+ "isOptional" : "0",
288
+ "dataType" : "Float16",
289
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
290
+ "shortDescription" : "",
291
+ "shape" : "[1, 1, 64, 2112]",
292
+ "name" : "causal_mask_sliding",
293
+ "type" : "MultiArray"
294
+ },
295
+ {
296
+ "hasShapeFlexibility" : "0",
297
+ "isOptional" : "0",
298
+ "dataType" : "Float16",
299
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 2112)",
300
+ "shortDescription" : "",
301
+ "shape" : "[1, 1, 64, 2112]",
302
+ "name" : "causal_mask_full",
303
+ "type" : "MultiArray"
304
+ },
305
+ {
306
+ "hasShapeFlexibility" : "0",
307
+ "isOptional" : "0",
308
+ "dataType" : "Float16",
309
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
310
+ "shortDescription" : "",
311
+ "shape" : "[1, 2, 2048, 256]",
312
+ "name" : "k_sliding_in",
313
+ "type" : "MultiArray"
314
+ },
315
+ {
316
+ "hasShapeFlexibility" : "0",
317
+ "isOptional" : "0",
318
+ "dataType" : "Float16",
319
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
320
+ "shortDescription" : "",
321
+ "shape" : "[1, 2, 2048, 256]",
322
+ "name" : "v_sliding_in",
323
+ "type" : "MultiArray"
324
+ },
325
+ {
326
+ "hasShapeFlexibility" : "0",
327
+ "isOptional" : "0",
328
+ "dataType" : "Float16",
329
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
330
+ "shortDescription" : "",
331
+ "shape" : "[1, 2, 2048, 512]",
332
+ "name" : "k_full_in",
333
+ "type" : "MultiArray"
334
+ },
335
+ {
336
+ "hasShapeFlexibility" : "0",
337
+ "isOptional" : "0",
338
+ "dataType" : "Float16",
339
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
340
+ "shortDescription" : "",
341
+ "shape" : "[1, 2, 2048, 512]",
342
+ "name" : "v_full_in",
343
+ "type" : "MultiArray"
344
+ },
345
+ {
346
+ "hasShapeFlexibility" : "0",
347
+ "isOptional" : "0",
348
+ "dataType" : "Float16",
349
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 256)",
350
+ "shortDescription" : "",
351
+ "shape" : "[1, 2, 64, 256]",
352
+ "name" : "k_shared_sliding_new",
353
+ "type" : "MultiArray"
354
+ },
355
+ {
356
+ "hasShapeFlexibility" : "0",
357
+ "isOptional" : "0",
358
+ "dataType" : "Float16",
359
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 256)",
360
+ "shortDescription" : "",
361
+ "shape" : "[1, 2, 64, 256]",
362
+ "name" : "v_shared_sliding_new",
363
+ "type" : "MultiArray"
364
+ },
365
+ {
366
+ "hasShapeFlexibility" : "0",
367
+ "isOptional" : "0",
368
+ "dataType" : "Float16",
369
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
370
+ "shortDescription" : "",
371
+ "shape" : "[1, 2, 64, 512]",
372
+ "name" : "k_shared_full_new",
373
+ "type" : "MultiArray"
374
+ },
375
+ {
376
+ "hasShapeFlexibility" : "0",
377
+ "isOptional" : "0",
378
+ "dataType" : "Float16",
379
+ "formattedType" : "MultiArray (Float16 1 × 2 × 64 × 512)",
380
+ "shortDescription" : "",
381
+ "shape" : "[1, 2, 64, 512]",
382
+ "name" : "v_shared_full_new",
383
+ "type" : "MultiArray"
384
+ }
385
+ ],
386
+ "computePrecision" : "Mixed (Float16, Int32)",
387
+ "storagePrecision" : "Mixed (Float16, Palettized (10 bits), Palettized (11 bits), Palettized (13 bits), Palettized (7 bits), UInt4)",
388
+ "stateSchema" : [
389
+
390
+ ],
391
+ "outputSchema" : [
392
+ {
393
+ "hasShapeFlexibility" : "0",
394
+ "isOptional" : "0",
395
+ "dataType" : "Float16",
396
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2560)",
397
+ "shortDescription" : "",
398
+ "shape" : "[1, 64, 2560]",
399
+ "name" : "hidden_out",
400
+ "type" : "MultiArray"
401
+ }
402
+ ],
403
+ "name" : "prefill",
404
+ "mlProgramOperationTypeHistogram" : {
405
+ "Ios18.constexprLutToDense" : 42,
406
+ "Ios16.reduceSum" : 6,
407
+ "Ios18.conv" : 42,
408
+ "Ios18.matmul" : 24,
409
+ "Ios18.sub" : 6,
410
+ "Ios18.gelu" : 12,
411
+ "Ios18.concat" : 48,
412
+ "Ios18.add" : 36,
413
+ "Ios18.realDiv" : 6,
414
+ "Ios18.transpose" : 72,
415
+ "Ios18.layerNorm" : 36,
416
+ "Tile" : 2,
417
+ "Ios16.reduceMax" : 6,
418
+ "Ios18.reshape" : 24,
419
+ "Split" : 49,
420
+ "Ios18.exp" : 6,
421
+ "Ios18.mul" : 108
422
+ }
423
+ }
424
+ ],
425
+ "mlProgramOperationTypeHistogram" : {
426
+ "Ios18.constexprLutToDense" : 42,
427
+ "Ios16.reduceSum" : 6,
428
+ "Ios18.conv" : 42,
429
+ "Ios18.matmul" : 24,
430
+ "Ios18.sub" : 6,
431
+ "Ios18.gelu" : 12,
432
+ "Ios18.concat" : 48,
433
+ "Ios18.add" : 36,
434
+ "Ios18.realDiv" : 6,
435
+ "Ios18.transpose" : 60,
436
+ "Ios18.layerNorm" : 36,
437
+ "Tile" : 2,
438
+ "Ios16.reduceMax" : 6,
439
+ "Ios18.reshape" : 30,
440
+ "Split" : 49,
441
+ "Ios18.exp" : 6,
442
+ "Ios18.mul" : 108
443
+ },
444
+ "isUpdatable" : "0",
445
+ "stateSchema" : [
446
+
447
+ ],
448
+ "availability" : {
449
+ "macOS" : "15.0",
450
+ "tvOS" : "18.0",
451
+ "visionOS" : "2.0",
452
+ "watchOS" : "11.0",
453
+ "iOS" : "18.0",
454
+ "macCatalyst" : "18.0"
455
+ },
456
+ "computePrecision" : "Mixed (Float16, Int32)",
457
+ "modelType" : {
458
+ "name" : "MLModelType_mlProgram"
459
+ },
460
+ "inputSchema" : [
461
+ {
462
+ "hasShapeFlexibility" : "0",
463
+ "isOptional" : "0",
464
+ "dataType" : "Float16",
465
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
466
+ "shortDescription" : "",
467
+ "shape" : "[1, 1, 2560]",
468
+ "name" : "hidden_in",
469
+ "type" : "MultiArray"
470
+ },
471
+ {
472
+ "hasShapeFlexibility" : "0",
473
+ "isOptional" : "0",
474
+ "dataType" : "Float16",
475
+ "formattedType" : "MultiArray (Float16 6 × 1 × 256)",
476
+ "shortDescription" : "",
477
+ "shape" : "[6, 1, 256]",
478
+ "name" : "ple_in",
479
+ "type" : "MultiArray"
480
+ },
481
+ {
482
+ "hasShapeFlexibility" : "0",
483
+ "isOptional" : "0",
484
+ "dataType" : "Float16",
485
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
486
+ "shortDescription" : "",
487
+ "shape" : "[1, 1, 1, 256]",
488
+ "name" : "cos_sliding",
489
+ "type" : "MultiArray"
490
+ },
491
+ {
492
+ "hasShapeFlexibility" : "0",
493
+ "isOptional" : "0",
494
+ "dataType" : "Float16",
495
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 256)",
496
+ "shortDescription" : "",
497
+ "shape" : "[1, 1, 1, 256]",
498
+ "name" : "sin_sliding",
499
+ "type" : "MultiArray"
500
+ },
501
+ {
502
+ "hasShapeFlexibility" : "0",
503
+ "isOptional" : "0",
504
+ "dataType" : "Float16",
505
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
506
+ "shortDescription" : "",
507
+ "shape" : "[1, 1, 1, 512]",
508
+ "name" : "cos_full",
509
+ "type" : "MultiArray"
510
+ },
511
+ {
512
+ "hasShapeFlexibility" : "0",
513
+ "isOptional" : "0",
514
+ "dataType" : "Float16",
515
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 512)",
516
+ "shortDescription" : "",
517
+ "shape" : "[1, 1, 1, 512]",
518
+ "name" : "sin_full",
519
+ "type" : "MultiArray"
520
+ },
521
+ {
522
+ "hasShapeFlexibility" : "0",
523
+ "isOptional" : "0",
524
+ "dataType" : "Float16",
525
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
526
+ "shortDescription" : "",
527
+ "shape" : "[1, 1, 1, 2049]",
528
+ "name" : "causal_mask_sliding",
529
+ "type" : "MultiArray"
530
+ },
531
+ {
532
+ "hasShapeFlexibility" : "0",
533
+ "isOptional" : "0",
534
+ "dataType" : "Float16",
535
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 2049)",
536
+ "shortDescription" : "",
537
+ "shape" : "[1, 1, 1, 2049]",
538
+ "name" : "causal_mask_full",
539
+ "type" : "MultiArray"
540
+ },
541
+ {
542
+ "hasShapeFlexibility" : "0",
543
+ "isOptional" : "0",
544
+ "dataType" : "Float16",
545
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
546
+ "shortDescription" : "",
547
+ "shape" : "[1, 2, 2048, 256]",
548
+ "name" : "k_sliding_in",
549
+ "type" : "MultiArray"
550
+ },
551
+ {
552
+ "hasShapeFlexibility" : "0",
553
+ "isOptional" : "0",
554
+ "dataType" : "Float16",
555
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 256)",
556
+ "shortDescription" : "",
557
+ "shape" : "[1, 2, 2048, 256]",
558
+ "name" : "v_sliding_in",
559
+ "type" : "MultiArray"
560
+ },
561
+ {
562
+ "hasShapeFlexibility" : "0",
563
+ "isOptional" : "0",
564
+ "dataType" : "Float16",
565
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
566
+ "shortDescription" : "",
567
+ "shape" : "[1, 2, 2048, 512]",
568
+ "name" : "k_full_in",
569
+ "type" : "MultiArray"
570
+ },
571
+ {
572
+ "hasShapeFlexibility" : "0",
573
+ "isOptional" : "0",
574
+ "dataType" : "Float16",
575
+ "formattedType" : "MultiArray (Float16 1 × 2 × 2048 × 512)",
576
+ "shortDescription" : "",
577
+ "shape" : "[1, 2, 2048, 512]",
578
+ "name" : "v_full_in",
579
+ "type" : "MultiArray"
580
+ },
581
+ {
582
+ "hasShapeFlexibility" : "0",
583
+ "isOptional" : "0",
584
+ "dataType" : "Float16",
585
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
586
+ "shortDescription" : "",
587
+ "shape" : "[1, 2, 1, 256]",
588
+ "name" : "k_shared_sliding_new",
589
+ "type" : "MultiArray"
590
+ },
591
+ {
592
+ "hasShapeFlexibility" : "0",
593
+ "isOptional" : "0",
594
+ "dataType" : "Float16",
595
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 256)",
596
+ "shortDescription" : "",
597
+ "shape" : "[1, 2, 1, 256]",
598
+ "name" : "v_shared_sliding_new",
599
+ "type" : "MultiArray"
600
+ },
601
+ {
602
+ "hasShapeFlexibility" : "0",
603
+ "isOptional" : "0",
604
+ "dataType" : "Float16",
605
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
606
+ "shortDescription" : "",
607
+ "shape" : "[1, 2, 1, 512]",
608
+ "name" : "k_shared_full_new",
609
+ "type" : "MultiArray"
610
+ },
611
+ {
612
+ "hasShapeFlexibility" : "0",
613
+ "isOptional" : "0",
614
+ "dataType" : "Float16",
615
+ "formattedType" : "MultiArray (Float16 1 × 2 × 1 × 512)",
616
+ "shortDescription" : "",
617
+ "shape" : "[1, 2, 1, 512]",
618
+ "name" : "v_shared_full_new",
619
+ "type" : "MultiArray"
620
+ }
621
+ ],
622
+ "defaultFunctionName" : "decode",
623
+ "generatedClassName" : "chunk_6",
624
+ "userDefinedMetadata" : {
625
+
626
+ },
627
+ "method" : "predict"
628
+ }
629
+ ]
chunk_6.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
chunk_6.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:713aeb6ea00a2e7b705eb4c1a88754df67c336d7037a3036038a163714223dbd
3
+ size 276909376
embed_ple_q4.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fe1ff0c858c9462f7ed706a77b4c61940523d365efb02cd67b6615960694d0c
3
+ size 1409286144
embed_ple_scales.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c0a9f0bd4326d3c21662f628a957363ea29c301a631d86538fa660372bc28ed
3
+ size 22020096
embed_tokens_q8.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6360ff44b0eb5cb1e4b9d62e84d8df69ef4d7d8c67422cb137e39d3bc5ec9dd0
3
+ size 671088640
embed_tokens_scales.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93d6b987f9eaafab5f84ff3b2fef304abaa7ad53fba1b5d72479a72e8c0faff1
3
+ size 524288
hf_model/chat_template.jinja ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#
2
+ Template: Google Gemma 4 Canonical Chat Template
3
+ Author: Google Gemma Engineering Team
4
+ Published: 2026-07-09
5
+ Context: Fixed tool-calling loops, turn closures, and thinking content-ordering.
6
+ #}
7
+ {%- macro format_parameters(properties, required, filter_keys=false) -%}
8
+ {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}
9
+ {%- set ns = namespace(found_first=false) -%}
10
+ {%- for key, value in properties | dictsort -%}
11
+ {%- set add_comma = false -%}
12
+ {%- if not filter_keys or key not in standard_keys -%}
13
+ {%- if ns.found_first %},{% endif -%}
14
+ {%- set ns.found_first = true -%}
15
+ {{ key }}:{
16
+ {%- if value['description'] -%}
17
+ description:<|"|>{{ value['description'] }}<|"|>
18
+ {%- set add_comma = true -%}
19
+ {%- endif -%}
20
+ {%- if value['type'] | upper == 'STRING' -%}
21
+ {%- if value['enum'] -%}
22
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
23
+ enum:{{ format_argument(value['enum']) }}
24
+ {%- endif -%}
25
+ {%- elif value['type'] | upper == 'ARRAY' -%}
26
+ {%- if value['items'] is mapping and value['items'] -%}
27
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
28
+ items:{
29
+ {%- set ns_items = namespace(found_first=false) -%}
30
+ {%- for item_key, item_value in value['items'] | dictsort -%}
31
+ {%- if item_value is not none -%}
32
+ {%- if ns_items.found_first %},{% endif -%}
33
+ {%- set ns_items.found_first = true -%}
34
+ {%- if item_key == 'properties' -%}
35
+ properties:{
36
+ {%- if item_value is mapping -%}
37
+ {{- format_parameters(item_value, value['items']['required'] | default([])) -}}
38
+ {%- endif -%}
39
+ }
40
+ {%- elif item_key == 'required' -%}
41
+ required:[
42
+ {%- for req_item in item_value -%}
43
+ <|"|>{{- req_item -}}<|"|>
44
+ {%- if not loop.last %},{% endif -%}
45
+ {%- endfor -%}
46
+ ]
47
+ {%- elif item_key == 'type' -%}
48
+ {%- if item_value is string -%}
49
+ type:{{ format_argument(item_value | upper) }}
50
+ {%- else -%}
51
+ type:{{ format_argument(item_value | map('upper') | list) }}
52
+ {%- endif -%}
53
+ {%- else -%}
54
+ {{ item_key }}:{{ format_argument(item_value) }}
55
+ {%- endif -%}
56
+ {%- endif -%}
57
+ {%- endfor -%}
58
+ }
59
+ {%- endif -%}
60
+ {%- endif -%}
61
+ {%- if value['nullable'] %}
62
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
63
+ nullable:true
64
+ {%- endif -%}
65
+ {%- if value['type'] | upper == 'OBJECT' -%}
66
+ {%- if value['properties'] is defined and value['properties'] is mapping -%}
67
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
68
+ properties:{
69
+ {{- format_parameters(value['properties'], value['required'] | default([])) -}}
70
+ }
71
+ {%- elif value is mapping -%}
72
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
73
+ properties:{
74
+ {{- format_parameters(value, value['required'] | default([]), filter_keys=true) -}}
75
+ }
76
+ {%- endif -%}
77
+ {%- if value['required'] -%}
78
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
79
+ required:[
80
+ {%- for item in value['required'] | default([]) -%}
81
+ <|"|>{{- item -}}<|"|>
82
+ {%- if not loop.last %},{% endif -%}
83
+ {%- endfor -%}
84
+ ]
85
+ {%- endif -%}
86
+ {%- endif -%}
87
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
88
+ type:<|"|>{{ value['type'] | upper }}<|"|>}
89
+ {%- endif -%}
90
+ {%- endfor -%}
91
+ {%- endmacro -%}
92
+ {%- macro format_function_declaration(tool_data) -%}
93
+ declaration:{{- tool_data['function']['name'] -}}{description:<|"|>{{- tool_data['function']['description'] -}}<|"|>
94
+ {%- set params = tool_data['function']['parameters'] -%}
95
+ {%- if params -%}
96
+ ,parameters:{
97
+ {%- if params['properties'] -%}
98
+ properties:{ {{- format_parameters(params['properties'], params['required']) -}} },
99
+ {%- endif -%}
100
+ {%- if params['required'] -%}
101
+ required:[
102
+ {%- for item in params['required'] -%}
103
+ <|"|>{{- item -}}<|"|>
104
+ {{- ',' if not loop.last -}}
105
+ {%- endfor -%}
106
+ ],
107
+ {%- endif -%}
108
+ {%- if params['type'] -%}
109
+ type:<|"|>{{- params['type'] | upper -}}<|"|>}
110
+ {%- endif -%}
111
+ {%- endif -%}
112
+ {%- if 'response' in tool_data['function'] -%}
113
+ {%- set response_declaration = tool_data['function']['response'] -%}
114
+ ,response:{
115
+ {%- if response_declaration['description'] -%}
116
+ description:<|"|>{{- response_declaration['description'] -}}<|"|>,
117
+ {%- endif -%}
118
+ {%- if response_declaration['type'] | upper == 'OBJECT' -%}
119
+ type:<|"|>{{- response_declaration['type'] | upper -}}<|"|>}
120
+ {%- endif -%}
121
+ {%- endif -%}
122
+ }
123
+ {%- endmacro -%}
124
+ {%- macro format_argument(argument, escape_keys=True) -%}
125
+ {%- if argument is none -%}
126
+ {{- 'null' -}}
127
+ {%- elif argument is string -%}
128
+ {{- '<|"|>' + argument + '<|"|>' -}}
129
+ {%- elif argument is boolean -%}
130
+ {{- 'true' if argument else 'false' -}}
131
+ {%- elif argument is mapping -%}
132
+ {{- '{' -}}
133
+ {%- set ns = namespace(found_first=false) -%}
134
+ {%- for key, value in argument | dictsort -%}
135
+ {%- if ns.found_first %},{% endif -%}
136
+ {%- set ns.found_first = true -%}
137
+ {%- if escape_keys -%}
138
+ {{- '<|"|>' + key + '<|"|>' -}}
139
+ {%- else -%}
140
+ {{- key -}}
141
+ {%- endif -%}
142
+ :{{- format_argument(value, escape_keys=escape_keys) -}}
143
+ {%- endfor -%}
144
+ {{- '}' -}}
145
+ {%- elif argument is sequence -%}
146
+ {{- '[' -}}
147
+ {%- for item in argument -%}
148
+ {{- format_argument(item, escape_keys=escape_keys) -}}
149
+ {%- if not loop.last %},{% endif -%}
150
+ {%- endfor -%}
151
+ {{- ']' -}}
152
+ {%- else -%}
153
+ {{- argument -}}
154
+ {%- endif -%}
155
+ {%- endmacro -%}
156
+ {%- macro strip_thinking(text) -%}
157
+ {%- set ns = namespace(result='') -%}
158
+ {%- for part in text.split('<channel|>') -%}
159
+ {%- if '<|channel>' in part -%}
160
+ {%- set ns.result = ns.result + part.split('<|channel>')[0] -%}
161
+ {%- else -%}
162
+ {%- set ns.result = ns.result + part -%}
163
+ {%- endif -%}
164
+ {%- endfor -%}
165
+ {{- ns.result | trim -}}
166
+ {%- endmacro -%}
167
+
168
+ {%- macro format_tool_response_block(tool_name, response) -%}
169
+ {{- '<|tool_response>' -}}
170
+ {%- if response is mapping -%}
171
+ {{- 'response:' + tool_name + '{' -}}
172
+ {%- for key, value in response | dictsort -%}
173
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
174
+ {%- if not loop.last %},{% endif -%}
175
+ {%- endfor -%}
176
+ {{- '}' -}}
177
+ {%- else -%}
178
+ {{- 'response:' + tool_name + '{value:' + format_argument(response, escape_keys=False) + '}' -}}
179
+ {%- endif -%}
180
+ {{- '<tool_response|>' -}}
181
+ {%- endmacro -%}
182
+
183
+ {#- ===== SETUP ===== -#}
184
+ {%- set ns = namespace(prev_message_type=None, prev_non_tool_role=None) -%}
185
+ {%- set loop_messages = messages -%}
186
+ {%- set enable_thinking = enable_thinking | default(false) -%}
187
+ {%- set preserve_thinking = preserve_thinking | default(false) -%}
188
+ {{- bos_token -}}
189
+ {#- Handle System/Tool Definitions Block -#}
190
+ {%- if enable_thinking or tools or (messages and messages[0]['role'] in ['system', 'developer']) -%}
191
+ {{- '<|turn>system\n' -}}
192
+ {#- Inject Thinking token at the very top of the FIRST system turn -#}
193
+ {%- if enable_thinking -%}
194
+ {{- '<|think|>\n' -}}
195
+ {%- set ns.prev_message_type = 'think' -%}
196
+ {%- endif -%}
197
+ {%- if messages and messages[0]['role'] in ['system', 'developer'] -%}
198
+ {%- if messages[0]['content'] is string -%}
199
+ {{- messages[0]['content'] | trim -}}
200
+ {%- elif messages[0]['content'] is sequence -%}
201
+ {%- for item in messages[0]['content'] -%}
202
+ {{- item['text'] | trim + ' '-}}
203
+ {%- endfor -%}
204
+ {%- endif -%}
205
+ {%- set loop_messages = messages[1:] -%}
206
+ {%- endif -%}
207
+ {%- if tools -%}
208
+ {%- for tool in tools %}
209
+ {{- '<|tool>' -}}
210
+ {{- format_function_declaration(tool) | trim -}}
211
+ {{- '<tool|>' -}}
212
+ {%- endfor %}
213
+ {%- set ns.prev_message_type = 'tool' -%}
214
+ {%- endif -%}
215
+ {{- '<turn|>\n' -}}
216
+ {%- endif %}
217
+
218
+ {#- Pre-scan: find last user message index for reasoning guard -#}
219
+ {%- set ns_turn = namespace(last_user_idx=-1) -%}
220
+ {%- for i in range(loop_messages | length) -%}
221
+ {%- if loop_messages[i]['role'] == 'user' -%}
222
+ {%- set ns_turn.last_user_idx = i -%}
223
+ {%- endif -%}
224
+ {%- endfor -%}
225
+
226
+ {#- Loop through messages -#}
227
+ {%- for message in loop_messages -%}
228
+ {%- if message['role'] != 'tool' -%}
229
+ {%- set ns.prev_message_type = None -%}
230
+ {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}
231
+ {#- Detect continuation using tracked state — O(1) instead of O(n) backward scan -#}
232
+ {%- set continue_same_model_turn = (role == 'model' and ns.prev_non_tool_role == 'assistant') -%}
233
+ {%- if not continue_same_model_turn -%}
234
+ {{- '<|turn>' + role + '\n' }}
235
+ {%- endif -%}
236
+
237
+ {#- Render reasoning/reasoning_content as thinking channel -#}
238
+ {%- set thinking_text = message.get('reasoning') or message.get('reasoning_content') -%}
239
+ {%- set thinking_gate = (loop.index0 > ns_turn.last_user_idx) or (preserve_thinking and message.get('tool_calls')) -%}
240
+ {%- if thinking_text and thinking_gate -%}
241
+ {{- '<|channel>thought\n' + thinking_text + '\n<channel|>' -}}
242
+ {%- endif -%}
243
+
244
+ {%- if message.get('tool_calls') -%}
245
+ {%- for tool_call in message.get('tool_calls') -%}
246
+ {%- set function = tool_call['function'] -%}
247
+ {{- '<|tool_call>call:' + function['name'] + '{' -}}
248
+ {%- if function['arguments'] is mapping -%}
249
+ {%- set ns_args = namespace(found_first=false) -%}
250
+ {%- for key, value in function['arguments'] | dictsort -%}
251
+ {%- if ns_args.found_first %},{% endif -%}
252
+ {%- set ns_args.found_first = true -%}
253
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
254
+ {%- endfor -%}
255
+ {%- elif function['arguments'] is none -%}
256
+ {%- else -%}
257
+ {{- raise_exception(
258
+ "chat_template: tool_calls[].function.arguments must be a "
259
+ "JSON object (mapping), not a string. Deserialize arguments "
260
+ "before passing to the template."
261
+ ) -}}
262
+ {%- endif -%}
263
+ {{- '}<tool_call|>' -}}
264
+ {%- endfor -%}
265
+ {%- set ns.prev_message_type = 'tool_call' -%}
266
+ {%- endif -%}
267
+
268
+ {%- set ns_tr_out = namespace(flag=false) -%}
269
+ {%- if message.get('tool_responses') -%}
270
+ {#- Legacy: tool_responses embedded on the assistant message (Google/Gemma native) -#}
271
+ {%- for tool_response in message.get('tool_responses') -%}
272
+ {{- format_tool_response_block(tool_response['name'] | default('unknown', true), tool_response['response']) -}}
273
+ {%- set ns_tr_out.flag = true -%}
274
+ {%- set ns.prev_message_type = 'tool_response' -%}
275
+ {%- endfor -%}
276
+ {%- elif message.get('tool_calls') -%}
277
+ {#- OpenAI Chat Completions: forward-scan consecutive role:tool messages -#}
278
+ {%- set ns_tool_scan = namespace(stopped=false) -%}
279
+ {%- for k in range(loop.index0 + 1, loop_messages | length) -%}
280
+ {%- if ns_tool_scan.stopped -%}
281
+ {%- elif loop_messages[k]['role'] != 'tool' -%}
282
+ {%- set ns_tool_scan.stopped = true -%}
283
+ {%- else -%}
284
+ {%- set follow = loop_messages[k] -%}
285
+ {#- Resolve tool_call_id to function name -#}
286
+ {%- set ns_tname = namespace(name=follow.get('name') or 'unknown') -%}
287
+ {%- for tc in message.get('tool_calls') -%}
288
+ {%- if tc.get('id') == follow.get('tool_call_id') -%}
289
+ {%- set ns_tname.name = tc['function']['name'] -%}
290
+ {%- endif -%}
291
+ {%- endfor -%}
292
+ {#- Handle content as string or content-parts array -#}
293
+ {%- set tool_body = follow.get('content') -%}
294
+ {%- if tool_body is string -%}
295
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
296
+ {%- elif tool_body is sequence and tool_body is not string -%}
297
+ {%- set ns_txt = namespace(s='') -%}
298
+ {%- for part in tool_body -%}
299
+ {%- if part.get('type') == 'text' -%}
300
+ {%- set ns_txt.s = ns_txt.s + (part.get('text') | default('')) -%}
301
+ {%- endif -%}
302
+ {%- endfor -%}
303
+ {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
304
+ {%- for part in tool_body -%}
305
+ {%- if part.get('type') in ['image', 'image_url'] -%}
306
+ {{- '<|image|>' -}}
307
+ {%- elif part.get('type') in ['audio', 'input_audio'] -%}
308
+ {{- '<|audio|>' -}}
309
+ {%- elif part.get('type') == 'video' -%}
310
+ {{- '<|video|>' -}}
311
+ {%- endif -%}
312
+ {%- endfor -%}
313
+ {%- else -%}
314
+ {{- format_tool_response_block(ns_tname.name, tool_body) -}}
315
+ {%- endif -%}
316
+ {%- set ns_tr_out.flag = true -%}
317
+ {%- set ns.prev_message_type = 'tool_response' -%}
318
+ {%- endif -%}
319
+ {%- endfor -%}
320
+ {%- endif -%}
321
+
322
+ {%- set captured_content -%}
323
+ {%- if message.get('content') is string -%}
324
+ {%- if role == 'model' -%}
325
+ {{- strip_thinking(message['content']) -}}
326
+ {%- else -%}
327
+ {{- message['content'] | trim -}}
328
+ {%- endif -%}
329
+ {%- elif message.get('content') is sequence -%}
330
+ {%- for item in message['content'] -%}
331
+ {%- if item.get('type') == 'text' -%}
332
+ {%- if role == 'model' -%}
333
+ {{- strip_thinking(item['text']) -}}
334
+ {%- else -%}
335
+ {{- item['text'] | trim -}}
336
+ {%- endif -%}
337
+ {%- elif item.get('type') in ['image', 'image_url'] -%}
338
+ {{- '<|image|>' -}}
339
+ {%- elif item.get('type') in ['audio', 'input_audio'] -%}
340
+ {{- '<|audio|>' -}}
341
+ {%- elif item.get('type') == 'video' -%}
342
+ {{- '<|video|>' -}}
343
+ {%- endif -%}
344
+ {%- endfor -%}
345
+ {%- endif -%}
346
+ {%- endset -%}
347
+
348
+ {{- captured_content -}}
349
+ {%- set has_content = captured_content | trim | length > 0 -%}
350
+
351
+ {#- Forward-scan: find next non-tool message role for continuation detection -#}
352
+ {%- set next_nt = namespace(role=None, found=false) -%}
353
+ {%- for j in range(loop.index0 + 1, loop_messages | length) -%}
354
+ {%- if not next_nt.found -%}
355
+ {%- if loop_messages[j]['role'] != 'tool' -%}
356
+ {%- set next_nt.role = loop_messages[j]['role'] -%}
357
+ {%- set next_nt.found = true -%}
358
+ {%- endif -%}
359
+ {%- endif -%}
360
+ {%- endfor -%}
361
+
362
+ {%- set continues_into_next = (
363
+ role == 'model'
364
+ and next_nt.role == 'assistant'
365
+ and (not message.get('tool_calls') or ns_tr_out.flag)
366
+ ) -%}
367
+
368
+ {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
369
+ {{- '<|tool_response>' -}}
370
+ {%- elif continues_into_next -%}
371
+ {%- elif not (ns_tr_out.flag and not has_content and not next_nt.found) -%}
372
+ {{- '<turn|>\n' -}}
373
+ {%- endif -%}
374
+
375
+ {#- Track previous non-tool role for next iteration (avoids O(n) backward scan) -#}
376
+ {%- set ns.prev_non_tool_role = message['role'] -%}
377
+ {%- endif -%}
378
+ {%- endfor -%}
379
+
380
+ {%- if add_generation_prompt -%}
381
+ {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}
382
+ {{- '<|turn>model\n' -}}
383
+ {%- elif ns.prev_message_type == 'tool_response' and enable_thinking -%}
384
+ {{- '<|channel>thought\n' -}}
385
+ {%- endif -%}
386
+ {%- endif -%}
hf_model/config.json ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma4ForConditionalGeneration"
4
+ ],
5
+ "audio_config": {
6
+ "_name_or_path": "",
7
+ "architectures": null,
8
+ "attention_chunk_size": 12,
9
+ "attention_context_left": 13,
10
+ "attention_context_right": 0,
11
+ "attention_invalid_logits_value": -1000000000.0,
12
+ "attention_logit_cap": 50.0,
13
+ "chunk_size_feed_forward": 0,
14
+ "conv_kernel_size": 5,
15
+ "dtype": "bfloat16",
16
+ "gradient_clipping": 10000000000.0,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 1024,
19
+ "id2label": {
20
+ "0": "LABEL_0",
21
+ "1": "LABEL_1"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "is_encoder_decoder": false,
25
+ "label2id": {
26
+ "LABEL_0": 0,
27
+ "LABEL_1": 1
28
+ },
29
+ "model_type": "gemma4_audio",
30
+ "num_attention_heads": 8,
31
+ "num_hidden_layers": 12,
32
+ "output_attentions": false,
33
+ "output_hidden_states": false,
34
+ "output_proj_dims": 1536,
35
+ "problem_type": null,
36
+ "residual_weight": 0.5,
37
+ "return_dict": true,
38
+ "rms_norm_eps": 1e-06,
39
+ "subsampling_conv_channels": [
40
+ 128,
41
+ 32
42
+ ],
43
+ "use_clipped_linears": true
44
+ },
45
+ "audio_token_id": 258881,
46
+ "boa_token_id": 256000,
47
+ "boi_token_id": 255999,
48
+ "dtype": "bfloat16",
49
+ "eoa_token_id": 258883,
50
+ "eoa_token_index": 258883,
51
+ "eoi_token_id": 258882,
52
+ "eos_token_id": [
53
+ 1,
54
+ 106
55
+ ],
56
+ "image_token_id": 258880,
57
+ "initializer_range": 0.02,
58
+ "model_type": "gemma4",
59
+ "text_config": {
60
+ "attention_bias": false,
61
+ "attention_dropout": 0.0,
62
+ "attention_k_eq_v": false,
63
+ "bos_token_id": 2,
64
+ "dtype": "bfloat16",
65
+ "enable_moe_block": false,
66
+ "eos_token_id": 1,
67
+ "expert_intermediate_size": null,
68
+ "final_logit_softcapping": 30.0,
69
+ "global_head_dim": 512,
70
+ "head_dim": 256,
71
+ "hidden_activation": "gelu_pytorch_tanh",
72
+ "hidden_size": 2560,
73
+ "hidden_size_per_layer_input": 256,
74
+ "initializer_range": 0.02,
75
+ "intermediate_size": 10240,
76
+ "layer_types": [
77
+ "sliding_attention",
78
+ "sliding_attention",
79
+ "sliding_attention",
80
+ "sliding_attention",
81
+ "sliding_attention",
82
+ "full_attention",
83
+ "sliding_attention",
84
+ "sliding_attention",
85
+ "sliding_attention",
86
+ "sliding_attention",
87
+ "sliding_attention",
88
+ "full_attention",
89
+ "sliding_attention",
90
+ "sliding_attention",
91
+ "sliding_attention",
92
+ "sliding_attention",
93
+ "sliding_attention",
94
+ "full_attention",
95
+ "sliding_attention",
96
+ "sliding_attention",
97
+ "sliding_attention",
98
+ "sliding_attention",
99
+ "sliding_attention",
100
+ "full_attention",
101
+ "sliding_attention",
102
+ "sliding_attention",
103
+ "sliding_attention",
104
+ "sliding_attention",
105
+ "sliding_attention",
106
+ "full_attention",
107
+ "sliding_attention",
108
+ "sliding_attention",
109
+ "sliding_attention",
110
+ "sliding_attention",
111
+ "sliding_attention",
112
+ "full_attention",
113
+ "sliding_attention",
114
+ "sliding_attention",
115
+ "sliding_attention",
116
+ "sliding_attention",
117
+ "sliding_attention",
118
+ "full_attention"
119
+ ],
120
+ "max_position_embeddings": 131072,
121
+ "model_type": "gemma4_text",
122
+ "num_attention_heads": 8,
123
+ "num_experts": null,
124
+ "num_global_key_value_heads": null,
125
+ "num_hidden_layers": 42,
126
+ "num_key_value_heads": 2,
127
+ "num_kv_shared_layers": 18,
128
+ "pad_token_id": 0,
129
+ "rms_norm_eps": 1e-06,
130
+ "rope_parameters": {
131
+ "full_attention": {
132
+ "partial_rotary_factor": 0.25,
133
+ "rope_theta": 1000000.0,
134
+ "rope_type": "proportional"
135
+ },
136
+ "sliding_attention": {
137
+ "rope_theta": 10000.0,
138
+ "rope_type": "default"
139
+ }
140
+ },
141
+ "sliding_window": 512,
142
+ "tie_word_embeddings": true,
143
+ "top_k_experts": null,
144
+ "use_bidirectional_attention": null,
145
+ "use_cache": true,
146
+ "use_double_wide_mlp": false,
147
+ "vocab_size": 262144,
148
+ "vocab_size_per_layer_input": 262144
149
+ },
150
+ "tie_word_embeddings": true,
151
+ "transformers_version": "5.5.0.dev0",
152
+ "video_token_id": 258884,
153
+ "vision_config": {
154
+ "_name_or_path": "",
155
+ "architectures": null,
156
+ "attention_bias": false,
157
+ "attention_dropout": 0.0,
158
+ "chunk_size_feed_forward": 0,
159
+ "default_output_length": 280,
160
+ "dtype": "bfloat16",
161
+ "global_head_dim": 64,
162
+ "head_dim": 64,
163
+ "hidden_activation": "gelu_pytorch_tanh",
164
+ "hidden_size": 768,
165
+ "id2label": {
166
+ "0": "LABEL_0",
167
+ "1": "LABEL_1"
168
+ },
169
+ "initializer_range": 0.02,
170
+ "intermediate_size": 3072,
171
+ "is_encoder_decoder": false,
172
+ "label2id": {
173
+ "LABEL_0": 0,
174
+ "LABEL_1": 1
175
+ },
176
+ "max_position_embeddings": 131072,
177
+ "model_type": "gemma4_vision",
178
+ "num_attention_heads": 12,
179
+ "num_hidden_layers": 16,
180
+ "num_key_value_heads": 12,
181
+ "output_attentions": false,
182
+ "output_hidden_states": false,
183
+ "patch_size": 16,
184
+ "pooling_kernel_size": 3,
185
+ "position_embedding_size": 10240,
186
+ "problem_type": null,
187
+ "return_dict": true,
188
+ "rms_norm_eps": 1e-06,
189
+ "rope_parameters": {
190
+ "rope_theta": 100.0,
191
+ "rope_type": "default"
192
+ },
193
+ "standardize": false,
194
+ "use_clipped_linears": true
195
+ },
196
+ "vision_soft_tokens_per_image": 280
197
+ }
hf_model/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 2,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 1,
6
+ 106,
7
+ 50
8
+ ],
9
+ "pad_token_id": 0,
10
+ "temperature": 1.0,
11
+ "top_k": 64,
12
+ "top_p": 0.95,
13
+ "transformers_version": "5.5.0.dev0"
14
+ }
hf_model/processor_config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_ms_per_token": 40,
3
+ "audio_seq_length": 750,
4
+ "feature_extractor": {
5
+ "dither": 0.0,
6
+ "feature_extractor_type": "Gemma4AudioFeatureExtractor",
7
+ "feature_size": 128,
8
+ "fft_length": 512,
9
+ "fft_overdrive": false,
10
+ "frame_length": 320,
11
+ "hop_length": 160,
12
+ "input_scale_factor": 1.0,
13
+ "max_frequency": 8000.0,
14
+ "mel_floor": 0.001,
15
+ "min_frequency": 0.0,
16
+ "padding_side": "right",
17
+ "padding_value": 0.0,
18
+ "per_bin_mean": null,
19
+ "per_bin_stddev": null,
20
+ "preemphasis": 0.0,
21
+ "preemphasis_htk_flavor": true,
22
+ "return_attention_mask": true,
23
+ "sampling_rate": 16000
24
+ },
25
+ "image_processor": {
26
+ "do_convert_rgb": true,
27
+ "do_normalize": false,
28
+ "do_rescale": true,
29
+ "do_resize": true,
30
+ "image_mean": [
31
+ 0.0,
32
+ 0.0,
33
+ 0.0
34
+ ],
35
+ "image_processor_type": "Gemma4ImageProcessor",
36
+ "image_seq_length": 280,
37
+ "image_std": [
38
+ 1.0,
39
+ 1.0,
40
+ 1.0
41
+ ],
42
+ "max_soft_tokens": 280,
43
+ "patch_size": 16,
44
+ "pooling_kernel_size": 3,
45
+ "resample": 3,
46
+ "rescale_factor": 0.00392156862745098
47
+ },
48
+ "image_seq_length": 280,
49
+ "processor_class": "Gemma4Processor",
50
+ "video_processor": {
51
+ "do_convert_rgb": true,
52
+ "do_normalize": true,
53
+ "do_rescale": true,
54
+ "do_resize": true,
55
+ "do_sample_frames": true,
56
+ "image_mean": [
57
+ 0.0,
58
+ 0.0,
59
+ 0.0
60
+ ],
61
+ "image_std": [
62
+ 1.0,
63
+ 1.0,
64
+ 1.0
65
+ ],
66
+ "max_soft_tokens": 70,
67
+ "num_frames": 32,
68
+ "patch_size": 16,
69
+ "pooling_kernel_size": 3,
70
+ "resample": 3,
71
+ "rescale_factor": 0.00392156862745098,
72
+ "return_metadata": false,
73
+ "video_processor_type": "Gemma4VideoProcessor"
74
+ }
75
+ }
hf_model/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91d9cf86906f78e197021fda88214d448e5c120665d0243a8e776e046986c6bc
3
+ size 32156428
hf_model/tokenizer_config.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_token": "<|audio|>",
3
+ "backend": "tokenizers",
4
+ "boa_token": "<|audio>",
5
+ "boi_token": "<|image>",
6
+ "bos_token": "<bos>",
7
+ "eoa_token": "<audio|>",
8
+ "eoc_token": "<channel|>",
9
+ "eoi_token": "<image|>",
10
+ "eos_token": "<eos>",
11
+ "eot_token": "<turn|>",
12
+ "escape_token": "<|\"|>",
13
+ "etc_token": "<tool_call|>",
14
+ "etd_token": "<tool|>",
15
+ "etr_token": "<tool_response|>",
16
+ "extra_special_tokens": [
17
+ "<|video|>"
18
+ ],
19
+ "image_token": "<|image|>",
20
+ "mask_token": "<mask>",
21
+ "model_max_length": 1000000000000000019884624838656,
22
+ "pad_token": "<pad>",
23
+ "padding_side": "left",
24
+ "processor_class": "Gemma4Processor",
25
+ "response_schema": {
26
+ "type": "object",
27
+ "properties": {
28
+ "role": {
29
+ "const": "assistant"
30
+ },
31
+ "thinking": {
32
+ "type": "string"
33
+ },
34
+ "content": {
35
+ "type": "string"
36
+ },
37
+ "tool_calls": {
38
+ "x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>",
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "const": "function"
45
+ },
46
+ "function": {
47
+ "type": "object",
48
+ "x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})",
49
+ "properties": {
50
+ "name": {
51
+ "type": "string"
52
+ },
53
+ "arguments": {
54
+ "type": "object",
55
+ "x-parser": "gemma4-tool-call",
56
+ "additionalProperties": {}
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ },
64
+ "x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"
65
+ },
66
+ "response_template": {
67
+ "defaults": {
68
+ "role": "assistant"
69
+ },
70
+ "fields": {
71
+ "content": {
72
+ "close": [
73
+ "<turn|>",
74
+ "<|tool_response>",
75
+ "<eos>"
76
+ ],
77
+ "content": "text"
78
+ },
79
+ "thinking": {
80
+ "close": "<channel|>",
81
+ "content": "text",
82
+ "open": "<|channel>thought\n"
83
+ },
84
+ "tool_calls": {
85
+ "close": "<tool_call|>",
86
+ "content": "json",
87
+ "content_args": {
88
+ "string_delims": [
89
+ [
90
+ "<|\"|>",
91
+ "<|\"|>"
92
+ ]
93
+ ],
94
+ "unquoted_keys": true
95
+ },
96
+ "open_pattern": "<\\|tool_call>call:(?P<name>\\w+)",
97
+ "repeats": true,
98
+ "transform": {
99
+ "function": {
100
+ "arguments": "{content}",
101
+ "name": "{name}"
102
+ },
103
+ "type": "function"
104
+ }
105
+ }
106
+ },
107
+ "start_anchor": [
108
+ "<|turn>model\n",
109
+ "<tool_response|>"
110
+ ]
111
+ },
112
+ "soc_token": "<|channel>",
113
+ "sot_token": "<|turn>",
114
+ "stc_token": "<|tool_call>",
115
+ "std_token": "<|tool>",
116
+ "str_token": "<|tool_response>",
117
+ "think_token": "<|think|>",
118
+ "tokenizer_class": "GemmaTokenizer",
119
+ "unk_token": "<unk>"
120
+ }
lm_head_0.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cdc6d2b058039fcef5313ca1d576c185615aac8ddbdfa67ef3c838429356695
3
+ size 243
lm_head_0.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ad02216d78c9e02c1d237c6bb797b8393f2254385e40bc450c247cceb44e1ae
3
+ size 378
lm_head_0.mlmodelc/metadata.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "storagePrecision" : "Mixed (Float16, Palettized (15 bits), UInt4)",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 65536)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 65536]",
13
+ "name" : "logits",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "modelParameters" : [
18
+
19
+ ],
20
+ "specificationVersion" : 9,
21
+ "mlProgramOperationTypeHistogram" : {
22
+ "Ios18.concat" : 1,
23
+ "Split" : 1,
24
+ "Ios18.transpose" : 2,
25
+ "Ios18.layerNorm" : 1,
26
+ "Ios18.constexprLutToDense" : 1,
27
+ "Ios18.conv" : 1,
28
+ "Ios18.mul" : 4,
29
+ "Ios18.tanh" : 1
30
+ },
31
+ "computePrecision" : "Mixed (Float16, Int32)",
32
+ "isUpdatable" : "0",
33
+ "stateSchema" : [
34
+
35
+ ],
36
+ "availability" : {
37
+ "macOS" : "15.0",
38
+ "tvOS" : "18.0",
39
+ "visionOS" : "2.0",
40
+ "watchOS" : "11.0",
41
+ "iOS" : "18.0",
42
+ "macCatalyst" : "18.0"
43
+ },
44
+ "modelType" : {
45
+ "name" : "MLModelType_mlProgram"
46
+ },
47
+ "userDefinedMetadata" : {
48
+ "com.github.apple.coremltools.conversion_date" : "2026-11-28",
49
+ "com.github.apple.coremltools.source" : "torch==2.15.0",
50
+ "com.github.apple.coremltools.version" : "9.0",
51
+ "com.github.apple.coremltools.source_dialect" : "TorchScript"
52
+ },
53
+ "inputSchema" : [
54
+ {
55
+ "hasShapeFlexibility" : "0",
56
+ "isOptional" : "0",
57
+ "dataType" : "Float16",
58
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2560)",
59
+ "shortDescription" : "",
60
+ "shape" : "[1, 1, 2560]",
61
+ "name" : "hidden_in",
62
+ "type" : "MultiArray"
63
+ }
64
+ ],
65
+ "generatedClassName" : "lm_head_0",
66
+ "method" : "predict"
67
+ }
68
+ ]