sp00ktober commited on
Commit
6e953d1
·
verified ·
1 Parent(s): f08c7b2

Upload folder using huggingface_hub

Browse files
Files changed (37) hide show
  1. config.json +4 -0
  2. generation_config.json +6 -0
  3. llama_FFN_PF_lut6_chunk_01of01.mlmodelc/analytics/coremldata.bin +3 -0
  4. llama_FFN_PF_lut6_chunk_01of01.mlmodelc/coremldata.bin +3 -0
  5. llama_FFN_PF_lut6_chunk_01of01.mlmodelc/metadata.json +333 -0
  6. llama_FFN_PF_lut6_chunk_01of01.mlmodelc/model.mil +0 -0
  7. llama_FFN_PF_lut6_chunk_01of01.mlmodelc/weights/weight.bin +3 -0
  8. llama_FFN_PF_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  9. llama_FFN_PF_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  10. llama_FFN_PF_lut6_chunk_01of01.mlpackage/Manifest.json +18 -0
  11. llama_FFN_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  12. llama_FFN_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  13. llama_FFN_lut6_chunk_01of01.mlpackage/Manifest.json +18 -0
  14. llama_embeddings.mlmodelc/analytics/coremldata.bin +3 -0
  15. llama_embeddings.mlmodelc/coremldata.bin +3 -0
  16. llama_embeddings.mlmodelc/metadata.json +72 -0
  17. llama_embeddings.mlmodelc/model.mil +22 -0
  18. llama_embeddings.mlmodelc/weights/weight.bin +3 -0
  19. llama_embeddings.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  20. llama_embeddings.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  21. llama_embeddings.mlpackage/Manifest.json +18 -0
  22. llama_lm_head_lut6.mlmodelc/analytics/coremldata.bin +3 -0
  23. llama_lm_head_lut6.mlmodelc/coremldata.bin +3 -0
  24. llama_lm_head_lut6.mlmodelc/metadata.json +143 -0
  25. llama_lm_head_lut6.mlmodelc/model.mil +98 -0
  26. llama_lm_head_lut6.mlmodelc/weights/weight.bin +3 -0
  27. llama_lm_head_lut6.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  28. llama_lm_head_lut6.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  29. llama_lm_head_lut6.mlpackage/Manifest.json +18 -0
  30. llama_prefill_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  31. llama_prefill_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  32. llama_prefill_lut6_chunk_01of01.mlpackage/Manifest.json +18 -0
  33. meta.yaml +54 -0
  34. meta_progress.yaml +51 -0
  35. special_tokens_map.json +23 -0
  36. tokenizer.json +0 -0
  37. tokenizer_config.json +199 -0
config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "tokenizer_class": "LlamaTokenizer",
3
+ "model_type": "llama"
4
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 32013,
4
+ "eos_token_id": 32021,
5
+ "transformers_version": "4.44.0"
6
+ }
llama_FFN_PF_lut6_chunk_01of01.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17938c53011ac313c0025a2c5a965fb4410522ea19bf92333b055f5b502ec584
3
+ size 243
llama_FFN_PF_lut6_chunk_01of01.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8225ce129cbaa2bce30c233864a2ece535c6ee4b5a43b806836ca37026f7939
3
+ size 981
llama_FFN_PF_lut6_chunk_01of01.mlmodelc/metadata.json ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "metadataOutputVersion" : "3.0",
4
+ "userDefinedMetadata" : {
5
+ "com.github.apple.coremltools.source" : "torch==2.5.0",
6
+ "com.github.apple.coremltools.source_dialect" : "TorchScript",
7
+ "com.anemll.chunk_no" : "1",
8
+ "com.anemll.context_length" : "1024",
9
+ "com.github.apple.coremltools.version" : "9.0",
10
+ "com.anemll.num_chunks" : "1",
11
+ "com.anemll.batch_size" : "64",
12
+ "com.anemll.info" : "Converted with Anemll v0.1.1",
13
+ "com.anemll.lut_bits" : "6"
14
+ },
15
+ "availability" : {
16
+ "macOS" : "15.0",
17
+ "tvOS" : "18.0",
18
+ "visionOS" : "2.0",
19
+ "watchOS" : "11.0",
20
+ "iOS" : "18.0",
21
+ "macCatalyst" : "18.0"
22
+ },
23
+ "inputSchema" : [
24
+ {
25
+ "hasShapeFlexibility" : "0",
26
+ "isOptional" : "0",
27
+ "dataType" : "Float16",
28
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
29
+ "shortDescription" : "",
30
+ "shape" : "[1, 1, 2048]",
31
+ "name" : "hidden_states",
32
+ "type" : "MultiArray"
33
+ },
34
+ {
35
+ "hasShapeFlexibility" : "0",
36
+ "isOptional" : "0",
37
+ "dataType" : "Int32",
38
+ "formattedType" : "MultiArray (Int32 1)",
39
+ "shortDescription" : "",
40
+ "shape" : "[1]",
41
+ "name" : "position_ids",
42
+ "type" : "MultiArray"
43
+ },
44
+ {
45
+ "hasShapeFlexibility" : "0",
46
+ "isOptional" : "0",
47
+ "dataType" : "Float16",
48
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 1024)",
49
+ "shortDescription" : "",
50
+ "shape" : "[1, 1, 1, 1024]",
51
+ "name" : "causal_mask",
52
+ "type" : "MultiArray"
53
+ },
54
+ {
55
+ "hasShapeFlexibility" : "0",
56
+ "isOptional" : "0",
57
+ "dataType" : "Int32",
58
+ "formattedType" : "MultiArray (Int32 1)",
59
+ "shortDescription" : "",
60
+ "shape" : "[1]",
61
+ "name" : "current_pos",
62
+ "type" : "MultiArray"
63
+ }
64
+ ],
65
+ "outputSchema" : [
66
+ {
67
+ "hasShapeFlexibility" : "0",
68
+ "isOptional" : "0",
69
+ "dataType" : "Float16",
70
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
71
+ "shortDescription" : "",
72
+ "shape" : "[1, 1, 2048]",
73
+ "name" : "output_hidden_states",
74
+ "type" : "MultiArray"
75
+ }
76
+ ],
77
+ "modelParameters" : [
78
+
79
+ ],
80
+ "storagePrecision" : "Mixed (Float16, Palettized (14 bits), Palettized (16 bits), UInt6)",
81
+ "method" : "predict",
82
+ "functions" : [
83
+ {
84
+ "inputSchema" : [
85
+ {
86
+ "hasShapeFlexibility" : "0",
87
+ "isOptional" : "0",
88
+ "dataType" : "Float16",
89
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
90
+ "shortDescription" : "",
91
+ "shape" : "[1, 1, 2048]",
92
+ "name" : "hidden_states",
93
+ "type" : "MultiArray"
94
+ },
95
+ {
96
+ "hasShapeFlexibility" : "0",
97
+ "isOptional" : "0",
98
+ "dataType" : "Int32",
99
+ "formattedType" : "MultiArray (Int32 1)",
100
+ "shortDescription" : "",
101
+ "shape" : "[1]",
102
+ "name" : "position_ids",
103
+ "type" : "MultiArray"
104
+ },
105
+ {
106
+ "hasShapeFlexibility" : "0",
107
+ "isOptional" : "0",
108
+ "dataType" : "Float16",
109
+ "formattedType" : "MultiArray (Float16 1 × 1 × 1 × 1024)",
110
+ "shortDescription" : "",
111
+ "shape" : "[1, 1, 1, 1024]",
112
+ "name" : "causal_mask",
113
+ "type" : "MultiArray"
114
+ },
115
+ {
116
+ "hasShapeFlexibility" : "0",
117
+ "isOptional" : "0",
118
+ "dataType" : "Int32",
119
+ "formattedType" : "MultiArray (Int32 1)",
120
+ "shortDescription" : "",
121
+ "shape" : "[1]",
122
+ "name" : "current_pos",
123
+ "type" : "MultiArray"
124
+ }
125
+ ],
126
+ "computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
127
+ "storagePrecision" : "Mixed (Float16, Palettized (14 bits), Palettized (16 bits), UInt6)",
128
+ "stateSchema" : [
129
+ {
130
+ "dataType" : "Float16",
131
+ "isOptional" : "0",
132
+ "formattedType" : "State (Float16 48 × 16 × 1024 × 128)",
133
+ "shortDescription" : "",
134
+ "shape" : "[48, 16, 1024, 128]",
135
+ "name" : "model_model_kv_cache_0",
136
+ "type" : "State"
137
+ }
138
+ ],
139
+ "outputSchema" : [
140
+ {
141
+ "hasShapeFlexibility" : "0",
142
+ "isOptional" : "0",
143
+ "dataType" : "Float16",
144
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
145
+ "shortDescription" : "",
146
+ "shape" : "[1, 1, 2048]",
147
+ "name" : "output_hidden_states",
148
+ "type" : "MultiArray"
149
+ }
150
+ ],
151
+ "name" : "infer",
152
+ "mlProgramOperationTypeHistogram" : {
153
+ "Ios18.expandDims" : 96,
154
+ "Ios18.mul" : 338,
155
+ "Ios18.matmul" : 48,
156
+ "Identity" : 1,
157
+ "Ios18.exp" : 24,
158
+ "Ios18.realDiv" : 24,
159
+ "Ios18.greaterEqual" : 2,
160
+ "Select" : 2,
161
+ "Ios18.readState" : 49,
162
+ "Ios16.reduceMax" : 24,
163
+ "Ios18.gather" : 2,
164
+ "Ios18.add" : 123,
165
+ "Ios18.layerNorm" : 49,
166
+ "Ios18.sliceUpdate" : 48,
167
+ "Ios18.writeState" : 48,
168
+ "Ios18.reshape" : 146,
169
+ "Ios16.reduceSum" : 24,
170
+ "Ios18.constexprLutToDense" : 168,
171
+ "Ios18.conv" : 144,
172
+ "Ios18.concat" : 193,
173
+ "Ios18.transpose" : 96,
174
+ "Ios18.sub" : 72,
175
+ "Ios18.cast" : 5,
176
+ "Ios18.linear" : 24,
177
+ "Ios18.silu" : 24,
178
+ "Ios18.sliceByIndex" : 195,
179
+ "Ios18.squeeze" : 72
180
+ }
181
+ },
182
+ {
183
+ "inputSchema" : [
184
+ {
185
+ "hasShapeFlexibility" : "0",
186
+ "isOptional" : "0",
187
+ "dataType" : "Float16",
188
+ "formattedType" : "MultiArray (Float16 1 × 64 × 2048)",
189
+ "shortDescription" : "",
190
+ "shape" : "[1, 64, 2048]",
191
+ "name" : "hidden_states",
192
+ "type" : "MultiArray"
193
+ },
194
+ {
195
+ "hasShapeFlexibility" : "0",
196
+ "isOptional" : "0",
197
+ "dataType" : "Int32",
198
+ "formattedType" : "MultiArray (Int32 64)",
199
+ "shortDescription" : "",
200
+ "shape" : "[64]",
201
+ "name" : "position_ids",
202
+ "type" : "MultiArray"
203
+ },
204
+ {
205
+ "hasShapeFlexibility" : "0",
206
+ "isOptional" : "0",
207
+ "dataType" : "Float16",
208
+ "formattedType" : "MultiArray (Float16 1 × 1 × 64 × 1024)",
209
+ "shortDescription" : "",
210
+ "shape" : "[1, 1, 64, 1024]",
211
+ "name" : "causal_mask",
212
+ "type" : "MultiArray"
213
+ },
214
+ {
215
+ "hasShapeFlexibility" : "0",
216
+ "isOptional" : "0",
217
+ "dataType" : "Int32",
218
+ "formattedType" : "MultiArray (Int32 1)",
219
+ "shortDescription" : "",
220
+ "shape" : "[1]",
221
+ "name" : "current_pos",
222
+ "type" : "MultiArray"
223
+ }
224
+ ],
225
+ "computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
226
+ "storagePrecision" : "Mixed (Float16, Palettized (14 bits), Palettized (16 bits), UInt6)",
227
+ "stateSchema" : [
228
+ {
229
+ "dataType" : "Float16",
230
+ "isOptional" : "0",
231
+ "formattedType" : "State (Float16 48 × 16 × 1024 × 128)",
232
+ "shortDescription" : "",
233
+ "shape" : "[48, 16, 1024, 128]",
234
+ "name" : "model_model_kv_cache_0",
235
+ "type" : "State"
236
+ }
237
+ ],
238
+ "outputSchema" : [
239
+ {
240
+ "hasShapeFlexibility" : "0",
241
+ "isOptional" : "0",
242
+ "dataType" : "Float16",
243
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
244
+ "shortDescription" : "",
245
+ "shape" : "[1, 1, 2048]",
246
+ "name" : "output_hidden_states",
247
+ "type" : "MultiArray"
248
+ }
249
+ ],
250
+ "name" : "prefill",
251
+ "mlProgramOperationTypeHistogram" : {
252
+ "Ios18.expandDims" : 95,
253
+ "Ios18.mul" : 333,
254
+ "Ios18.matmul" : 48,
255
+ "Ios18.exp" : 24,
256
+ "Ios18.realDiv" : 24,
257
+ "Ios18.greaterEqual" : 2,
258
+ "Select" : 2,
259
+ "Ios18.readState" : 49,
260
+ "Ios16.reduceMax" : 24,
261
+ "Ios18.gather" : 2,
262
+ "Ios18.add" : 122,
263
+ "Ios18.layerNorm" : 47,
264
+ "Ios18.sliceUpdate" : 48,
265
+ "Ios18.writeState" : 48,
266
+ "Ios18.reshape" : 194,
267
+ "Ios16.reduceSum" : 24,
268
+ "Ios18.constexprLutToDense" : 165,
269
+ "Ios18.conv" : 141,
270
+ "Ios18.concat" : 191,
271
+ "Ios18.transpose" : 168,
272
+ "Ios18.sub" : 72,
273
+ "Ios18.cast" : 5,
274
+ "Ios18.linear" : 24,
275
+ "Ios18.silu" : 23,
276
+ "Ios18.sliceByIndex" : 194,
277
+ "Ios18.squeeze" : 71
278
+ }
279
+ }
280
+ ],
281
+ "version" : "0.1.1",
282
+ "isUpdatable" : "0",
283
+ "defaultFunctionName" : "infer",
284
+ "specificationVersion" : 9,
285
+ "stateSchema" : [
286
+ {
287
+ "dataType" : "Float16",
288
+ "isOptional" : "0",
289
+ "formattedType" : "State (Float16 48 × 16 × 1024 × 128)",
290
+ "shortDescription" : "",
291
+ "shape" : "[48, 16, 1024, 128]",
292
+ "name" : "model_model_kv_cache_0",
293
+ "type" : "State"
294
+ }
295
+ ],
296
+ "computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)",
297
+ "mlProgramOperationTypeHistogram" : {
298
+ "Ios18.expandDims" : 96,
299
+ "Ios18.mul" : 338,
300
+ "Ios18.matmul" : 48,
301
+ "Identity" : 1,
302
+ "Ios18.exp" : 24,
303
+ "Ios18.realDiv" : 24,
304
+ "Ios18.greaterEqual" : 2,
305
+ "Select" : 2,
306
+ "Ios18.readState" : 49,
307
+ "Ios16.reduceMax" : 24,
308
+ "Ios18.gather" : 2,
309
+ "Ios18.add" : 123,
310
+ "Ios18.layerNorm" : 49,
311
+ "Ios18.sliceUpdate" : 48,
312
+ "Ios18.writeState" : 48,
313
+ "Ios18.reshape" : 146,
314
+ "Ios16.reduceSum" : 24,
315
+ "Ios18.constexprLutToDense" : 168,
316
+ "Ios18.conv" : 144,
317
+ "Ios18.concat" : 193,
318
+ "Ios18.transpose" : 96,
319
+ "Ios18.sub" : 72,
320
+ "Ios18.cast" : 5,
321
+ "Ios18.linear" : 24,
322
+ "Ios18.silu" : 24,
323
+ "Ios18.sliceByIndex" : 195,
324
+ "Ios18.squeeze" : 72
325
+ },
326
+ "shortDescription" : "Anemll Model: Multifunction FFN+Prefill",
327
+ "generatedClassName" : "llama_FFN_PF_lut6_chunk_01of01",
328
+ "author" : "Converted with Anemll v0.1.1",
329
+ "modelType" : {
330
+ "name" : "MLModelType_mlProgram"
331
+ }
332
+ }
333
+ ]
llama_FFN_PF_lut6_chunk_01of01.mlmodelc/model.mil ADDED
The diff for this file is too large to render. See raw diff
 
llama_FFN_PF_lut6_chunk_01of01.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ab7d9694da65b9cd8a5d99c562a28b0498188ae7e538920a3f406985fcece2c
3
+ size 920125760
llama_FFN_PF_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52c8672f083aacdae7f87be7e6c5bc73ee01f8a03f5e864fbfc03824cea0d1e3
3
+ size 1614653
llama_FFN_PF_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ab7d9694da65b9cd8a5d99c562a28b0498188ae7e538920a3f406985fcece2c
3
+ size 920125760
llama_FFN_PF_lut6_chunk_01of01.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "5E6563AB-A377-430B-89CB-BE475D879D8A": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "AC66F985-E4E6-412A-B887-C17CCC4A5C83": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "AC66F985-E4E6-412A-B887-C17CCC4A5C83"
18
+ }
llama_FFN_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f28bf2f88c1f443421055e42a1611da8386c8a6e5d900dc9faccf65bd81b260
3
+ size 799512
llama_FFN_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ab7d9694da65b9cd8a5d99c562a28b0498188ae7e538920a3f406985fcece2c
3
+ size 920125760
llama_FFN_lut6_chunk_01of01.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "17709A97-98C6-4B44-A8F2-956BB64BDDC2": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Specification",
7
+ "name": "model.mlmodel",
8
+ "path": "com.apple.CoreML/model.mlmodel"
9
+ },
10
+ "CC80579D-0AFC-4EF2-A2F5-0DB15E3A99C6": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Weights",
13
+ "name": "weights",
14
+ "path": "com.apple.CoreML/weights"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "17709A97-98C6-4B44-A8F2-956BB64BDDC2"
18
+ }
llama_embeddings.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac37b9d556cd88e169770a2f1c53b97f74d632bdaa80bdb4e0ab0a0ca2212e8c
3
+ size 243
llama_embeddings.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26456d242e64e2bc27cf5ba609e9b49f77b8a5d174068db67b74d1187b469d24
3
+ size 560
llama_embeddings.mlmodelc/metadata.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "shortDescription" : "Anemll Model (Embeddings) converted to CoreML",
4
+ "metadataOutputVersion" : "3.0",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16)",
11
+ "shortDescription" : "",
12
+ "shape" : "[]",
13
+ "name" : "hidden_states",
14
+ "type" : "MultiArray"
15
+ }
16
+ ],
17
+ "version" : "0.1.1",
18
+ "modelParameters" : [
19
+
20
+ ],
21
+ "author" : "Converted with Anemll v0.1.1",
22
+ "specificationVersion" : 9,
23
+ "storagePrecision" : "Float16",
24
+ "mlProgramOperationTypeHistogram" : {
25
+ "Ios18.greaterEqual" : 1,
26
+ "Ios18.add" : 1,
27
+ "Ios18.cast" : 3,
28
+ "Select" : 1,
29
+ "Ios18.gather" : 1
30
+ },
31
+ "computePrecision" : "Mixed (Float16, Int16, Int32)",
32
+ "stateSchema" : [
33
+
34
+ ],
35
+ "isUpdatable" : "0",
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
+ "inputSchema" : [
48
+ {
49
+ "shortDescription" : "",
50
+ "dataType" : "Int32",
51
+ "hasShapeFlexibility" : "1",
52
+ "isOptional" : "0",
53
+ "shapeFlexibility" : "1 × 1 | 1 × 64",
54
+ "formattedType" : "MultiArray (Int32 1 × 1)",
55
+ "type" : "MultiArray",
56
+ "shape" : "[1, 1]",
57
+ "name" : "input_ids",
58
+ "enumeratedShapes" : "[[1, 1], [1, 64]]"
59
+ }
60
+ ],
61
+ "userDefinedMetadata" : {
62
+ "com.anemll.info" : "Converted with Anemll v0.1.1",
63
+ "com.github.apple.coremltools.source_dialect" : "TorchScript",
64
+ "com.github.apple.coremltools.conversion_date" : "2026-03-16",
65
+ "com.github.apple.coremltools.source" : "torch==2.5.0",
66
+ "com.github.apple.coremltools.version" : "9.0",
67
+ "com.anemll.context_length" : "1024"
68
+ },
69
+ "generatedClassName" : "llama_embeddings",
70
+ "method" : "predict"
71
+ }
72
+ ]
llama_embeddings.mlmodelc/model.mil ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ program(1.3)
2
+ [buildInfo = dict<string, string>({{"coremlc-component-MIL", "3510.2.1"}, {"coremlc-version", "3500.32.1"}, {"coremltools-component-torch", "2.5.0"}, {"coremltools-source-dialect", "TorchScript"}, {"coremltools-version", "9.0"}})]
3
+ {
4
+ func main<ios18>(tensor<int32, [1, ?]> input_ids) [FlexibleShapeInformation = tuple<tuple<string, dict<string, tensor<int32, [?]>>>, tuple<string, dict<string, dict<string, tensor<int32, [?]>>>>>((("DefaultShapes", {{"input_ids", [1, 1]}}), ("EnumeratedShapes", {{"79ae981e", {{"input_ids", [1, 1]}}}, {"ed9b58c8", {{"input_ids", [1, 64]}}}})))] {
5
+ int32 hidden_states_batch_dims_0 = const()[name = string("hidden_states_batch_dims_0"), val = int32(0)];
6
+ bool hidden_states_validate_indices_0 = const()[name = string("hidden_states_validate_indices_0"), val = bool(false)];
7
+ tensor<fp16, [32256, 2048]> embed_tokens_weight_to_fp16 = const()[name = string("embed_tokens_weight_to_fp16"), val = tensor<fp16, [32256, 2048]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(64)))];
8
+ string input_ids_to_int16_dtype_0 = const()[name = string("input_ids_to_int16_dtype_0"), val = string("int16")];
9
+ string cast_1_dtype_0 = const()[name = string("cast_1_dtype_0"), val = string("int32")];
10
+ int32 greater_equal_0_y_0 = const()[name = string("greater_equal_0_y_0"), val = int32(0)];
11
+ tensor<int16, [1, ?]> input_ids_to_int16 = cast(dtype = input_ids_to_int16_dtype_0, x = input_ids)[name = string("cast_4")];
12
+ tensor<int32, [1, ?]> cast_1 = cast(dtype = cast_1_dtype_0, x = input_ids_to_int16)[name = string("cast_3")];
13
+ tensor<bool, [1, ?]> greater_equal_0 = greater_equal(x = cast_1, y = greater_equal_0_y_0)[name = string("greater_equal_0")];
14
+ int32 slice_by_index_0 = const()[name = string("slice_by_index_0"), val = int32(32256)];
15
+ tensor<int32, [1, ?]> add_0 = add(x = cast_1, y = slice_by_index_0)[name = string("add_0")];
16
+ tensor<int32, [1, ?]> select_0 = select(a = cast_1, b = add_0, cond = greater_equal_0)[name = string("select_0")];
17
+ int32 hidden_states_cast_fp16_cast_uint16_axis_0 = const()[name = string("hidden_states_cast_fp16_cast_uint16_axis_0"), val = int32(0)];
18
+ string select_0_to_int16_dtype_0 = const()[name = string("select_0_to_int16_dtype_0"), val = string("int16")];
19
+ tensor<int16, [1, ?]> select_0_to_int16 = cast(dtype = select_0_to_int16_dtype_0, x = select_0)[name = string("cast_2")];
20
+ tensor<fp16, [1, ?, 2048]> hidden_states = gather(axis = hidden_states_cast_fp16_cast_uint16_axis_0, batch_dims = hidden_states_batch_dims_0, indices = select_0_to_int16, validate_indices = hidden_states_validate_indices_0, x = embed_tokens_weight_to_fp16)[name = string("hidden_states_cast_fp16_cast_uint16_cast_uint16")];
21
+ } -> (hidden_states);
22
+ }
llama_embeddings.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:852a384d0c577ec63eb8faf2f7d7afa24aaca03b1d3e373fb5bb46fc07af283b
3
+ size 132120704
llama_embeddings.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:add2c2ca8fc5c414a622ea3c4edcf95c1b76826cdf3967b181a52522a979f1f8
3
+ size 3061
llama_embeddings.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:852a384d0c577ec63eb8faf2f7d7afa24aaca03b1d3e373fb5bb46fc07af283b
3
+ size 132120704
llama_embeddings.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "268450C4-E730-4EC7-A687-801422F8A707": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "A9E16A8E-F35B-4363-A969-610989B4D6BD": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "A9E16A8E-F35B-4363-A969-610989B4D6BD"
18
+ }
llama_lm_head_lut6.mlmodelc/analytics/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:623184d69c0a04ba476276153492df1b10e3462375b86ced39ad1136ae5aace0
3
+ size 243
llama_lm_head_lut6.mlmodelc/coremldata.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:339f31ecd0d721647b8812000e0fd986fa01cd24f95b3db3ff45d2b0a90f240e
3
+ size 859
llama_lm_head_lut6.mlmodelc/metadata.json ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "shortDescription" : "Anemll Model (LM Head) converted to CoreML",
4
+ "metadataOutputVersion" : "3.0",
5
+ "outputSchema" : [
6
+ {
7
+ "hasShapeFlexibility" : "0",
8
+ "isOptional" : "0",
9
+ "dataType" : "Float16",
10
+ "formattedType" : "MultiArray (Float16 1 × 1 × 4032)",
11
+ "shortDescription" : "",
12
+ "shape" : "[1, 1, 4032]",
13
+ "name" : "logits1",
14
+ "type" : "MultiArray"
15
+ },
16
+ {
17
+ "hasShapeFlexibility" : "0",
18
+ "isOptional" : "0",
19
+ "dataType" : "Float16",
20
+ "formattedType" : "MultiArray (Float16 1 × 1 × 4032)",
21
+ "shortDescription" : "",
22
+ "shape" : "[1, 1, 4032]",
23
+ "name" : "logits2",
24
+ "type" : "MultiArray"
25
+ },
26
+ {
27
+ "hasShapeFlexibility" : "0",
28
+ "isOptional" : "0",
29
+ "dataType" : "Float16",
30
+ "formattedType" : "MultiArray (Float16 1 × 1 × 4032)",
31
+ "shortDescription" : "",
32
+ "shape" : "[1, 1, 4032]",
33
+ "name" : "logits3",
34
+ "type" : "MultiArray"
35
+ },
36
+ {
37
+ "hasShapeFlexibility" : "0",
38
+ "isOptional" : "0",
39
+ "dataType" : "Float16",
40
+ "formattedType" : "MultiArray (Float16 1 × 1 × 4032)",
41
+ "shortDescription" : "",
42
+ "shape" : "[1, 1, 4032]",
43
+ "name" : "logits4",
44
+ "type" : "MultiArray"
45
+ },
46
+ {
47
+ "hasShapeFlexibility" : "0",
48
+ "isOptional" : "0",
49
+ "dataType" : "Float16",
50
+ "formattedType" : "MultiArray (Float16 1 × 1 × 4032)",
51
+ "shortDescription" : "",
52
+ "shape" : "[1, 1, 4032]",
53
+ "name" : "logits5",
54
+ "type" : "MultiArray"
55
+ },
56
+ {
57
+ "hasShapeFlexibility" : "0",
58
+ "isOptional" : "0",
59
+ "dataType" : "Float16",
60
+ "formattedType" : "MultiArray (Float16 1 × 1 × 4032)",
61
+ "shortDescription" : "",
62
+ "shape" : "[1, 1, 4032]",
63
+ "name" : "logits6",
64
+ "type" : "MultiArray"
65
+ },
66
+ {
67
+ "hasShapeFlexibility" : "0",
68
+ "isOptional" : "0",
69
+ "dataType" : "Float16",
70
+ "formattedType" : "MultiArray (Float16 1 × 1 × 4032)",
71
+ "shortDescription" : "",
72
+ "shape" : "[1, 1, 4032]",
73
+ "name" : "logits7",
74
+ "type" : "MultiArray"
75
+ },
76
+ {
77
+ "hasShapeFlexibility" : "0",
78
+ "isOptional" : "0",
79
+ "dataType" : "Float16",
80
+ "formattedType" : "MultiArray (Float16 1 × 1 × 4032)",
81
+ "shortDescription" : "",
82
+ "shape" : "[1, 1, 4032]",
83
+ "name" : "logits8",
84
+ "type" : "MultiArray"
85
+ }
86
+ ],
87
+ "version" : "0.1.1",
88
+ "modelParameters" : [
89
+
90
+ ],
91
+ "author" : "Converted with Anemll v0.1.1",
92
+ "specificationVersion" : 9,
93
+ "storagePrecision" : "Mixed (Float16, Palettized (15 bits), UInt6)",
94
+ "mlProgramOperationTypeHistogram" : {
95
+ "Ios18.transpose" : 9,
96
+ "Ios18.constexprLutToDense" : 8,
97
+ "Ios18.expandDims" : 1,
98
+ "Ios18.conv" : 8,
99
+ "Ios18.squeeze" : 8
100
+ },
101
+ "computePrecision" : "Mixed (Float16, Int32)",
102
+ "stateSchema" : [
103
+
104
+ ],
105
+ "isUpdatable" : "0",
106
+ "availability" : {
107
+ "macOS" : "15.0",
108
+ "tvOS" : "18.0",
109
+ "visionOS" : "2.0",
110
+ "watchOS" : "11.0",
111
+ "iOS" : "18.0",
112
+ "macCatalyst" : "18.0"
113
+ },
114
+ "modelType" : {
115
+ "name" : "MLModelType_mlProgram"
116
+ },
117
+ "inputSchema" : [
118
+ {
119
+ "hasShapeFlexibility" : "0",
120
+ "isOptional" : "0",
121
+ "dataType" : "Float16",
122
+ "formattedType" : "MultiArray (Float16 1 × 1 × 2048)",
123
+ "shortDescription" : "",
124
+ "shape" : "[1, 1, 2048]",
125
+ "name" : "hidden_states",
126
+ "type" : "MultiArray"
127
+ }
128
+ ],
129
+ "userDefinedMetadata" : {
130
+ "com.github.apple.coremltools.source" : "torch==2.5.0",
131
+ "com.github.apple.coremltools.version" : "9.0",
132
+ "com.anemll.context_length" : "1024",
133
+ "com.github.apple.coremltools.source_dialect" : "TorchScript",
134
+ "com.anemll.lm_head_chunk_sizes" : "4032,4032,4032,4032,4032,4032,4032,4032",
135
+ "com.github.apple.coremltools.conversion_date" : "2026-03-16",
136
+ "com.anemll.vocab_size" : "32256",
137
+ "com.anemll.info" : "Converted with Anemll v0.1.1",
138
+ "com.anemll.lut_bits" : "6"
139
+ },
140
+ "generatedClassName" : "llama_lm_head_lut6",
141
+ "method" : "predict"
142
+ }
143
+ ]
llama_lm_head_lut6.mlmodelc/model.mil ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ program(1.3)
2
+ [buildInfo = dict<string, string>({{"coremlc-component-MIL", "3510.2.1"}, {"coremlc-version", "3500.32.1"}})]
3
+ {
4
+ func main<ios18>(tensor<fp16, [1, 1, 2048]> hidden_states) {
5
+ tensor<int32, [3]> var_5 = const()[name = string("op_5"), val = tensor<int32, [3]>([0, 2, 1])];
6
+ tensor<int32, [1]> input_axes_0 = const()[name = string("input_axes_0"), val = tensor<int32, [1]>([2])];
7
+ tensor<fp16, [1, 2048, 1]> var_6_cast_fp16 = transpose(perm = var_5, x = hidden_states)[name = string("transpose_8")];
8
+ tensor<fp16, [1, 2048, 1, 1]> input_cast_fp16 = expand_dims(axes = input_axes_0, x = var_6_cast_fp16)[name = string("input_cast_fp16")];
9
+ string var_29_pad_type_0 = const()[name = string("op_29_pad_type_0"), val = string("valid")];
10
+ tensor<int32, [2]> var_29_strides_0 = const()[name = string("op_29_strides_0"), val = tensor<int32, [2]>([1, 1])];
11
+ tensor<int32, [4]> var_29_pad_0 = const()[name = string("op_29_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
12
+ tensor<int32, [2]> var_29_dilations_0 = const()[name = string("op_29_dilations_0"), val = tensor<int32, [2]>([1, 1])];
13
+ int32 var_29_groups_0 = const()[name = string("op_29_groups_0"), val = int32(1)];
14
+ tensor<fp16, [4032, 2048, 1, 1]> op_9_promoted_to_fp16_palettized = constexpr_lut_to_dense(indices = tensor<uint6, [4032, 2048, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(64))), lut = tensor<fp16, [504, 1, 1, 1, 64, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(6193280))))[name = string("op_9_promoted_to_fp16_palettized")];
15
+ tensor<fp16, [1, 4032, 1, 1]> var_29_cast_fp16 = conv(dilations = var_29_dilations_0, groups = var_29_groups_0, pad = var_29_pad_0, pad_type = var_29_pad_type_0, strides = var_29_strides_0, weight = op_9_promoted_to_fp16_palettized, x = input_cast_fp16)[name = string("op_29_cast_fp16")];
16
+ tensor<int32, [1]> var_31_axes_0 = const()[name = string("op_31_axes_0"), val = tensor<int32, [1]>([2])];
17
+ tensor<fp16, [1, 4032, 1]> var_31_cast_fp16 = squeeze(axes = var_31_axes_0, x = var_29_cast_fp16)[name = string("op_31_cast_fp16")];
18
+ tensor<int32, [3]> var_34_perm_0 = const()[name = string("op_34_perm_0"), val = tensor<int32, [3]>([0, 2, 1])];
19
+ string var_55_pad_type_0 = const()[name = string("op_55_pad_type_0"), val = string("valid")];
20
+ tensor<int32, [2]> var_55_strides_0 = const()[name = string("op_55_strides_0"), val = tensor<int32, [2]>([1, 1])];
21
+ tensor<int32, [4]> var_55_pad_0 = const()[name = string("op_55_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
22
+ tensor<int32, [2]> var_55_dilations_0 = const()[name = string("op_55_dilations_0"), val = tensor<int32, [2]>([1, 1])];
23
+ int32 var_55_groups_0 = const()[name = string("op_55_groups_0"), val = int32(1)];
24
+ tensor<fp16, [4032, 2048, 1, 1]> op_35_promoted_to_fp16_palettized = constexpr_lut_to_dense(indices = tensor<uint6, [4032, 2048, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(6257856))), lut = tensor<fp16, [504, 1, 1, 1, 64, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(12451072))))[name = string("op_35_promoted_to_fp16_palettized")];
25
+ tensor<fp16, [1, 4032, 1, 1]> var_55_cast_fp16 = conv(dilations = var_55_dilations_0, groups = var_55_groups_0, pad = var_55_pad_0, pad_type = var_55_pad_type_0, strides = var_55_strides_0, weight = op_35_promoted_to_fp16_palettized, x = input_cast_fp16)[name = string("op_55_cast_fp16")];
26
+ tensor<int32, [1]> var_57_axes_0 = const()[name = string("op_57_axes_0"), val = tensor<int32, [1]>([2])];
27
+ tensor<fp16, [1, 4032, 1]> var_57_cast_fp16 = squeeze(axes = var_57_axes_0, x = var_55_cast_fp16)[name = string("op_57_cast_fp16")];
28
+ tensor<int32, [3]> var_60_perm_0 = const()[name = string("op_60_perm_0"), val = tensor<int32, [3]>([0, 2, 1])];
29
+ string var_81_pad_type_0 = const()[name = string("op_81_pad_type_0"), val = string("valid")];
30
+ tensor<int32, [2]> var_81_strides_0 = const()[name = string("op_81_strides_0"), val = tensor<int32, [2]>([1, 1])];
31
+ tensor<int32, [4]> var_81_pad_0 = const()[name = string("op_81_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
32
+ tensor<int32, [2]> var_81_dilations_0 = const()[name = string("op_81_dilations_0"), val = tensor<int32, [2]>([1, 1])];
33
+ int32 var_81_groups_0 = const()[name = string("op_81_groups_0"), val = int32(1)];
34
+ tensor<fp16, [4032, 2048, 1, 1]> op_61_promoted_to_fp16_palettized = constexpr_lut_to_dense(indices = tensor<uint6, [4032, 2048, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(12515648))), lut = tensor<fp16, [504, 1, 1, 1, 64, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(18708864))))[name = string("op_61_promoted_to_fp16_palettized")];
35
+ tensor<fp16, [1, 4032, 1, 1]> var_81_cast_fp16 = conv(dilations = var_81_dilations_0, groups = var_81_groups_0, pad = var_81_pad_0, pad_type = var_81_pad_type_0, strides = var_81_strides_0, weight = op_61_promoted_to_fp16_palettized, x = input_cast_fp16)[name = string("op_81_cast_fp16")];
36
+ tensor<int32, [1]> var_83_axes_0 = const()[name = string("op_83_axes_0"), val = tensor<int32, [1]>([2])];
37
+ tensor<fp16, [1, 4032, 1]> var_83_cast_fp16 = squeeze(axes = var_83_axes_0, x = var_81_cast_fp16)[name = string("op_83_cast_fp16")];
38
+ tensor<int32, [3]> var_86_perm_0 = const()[name = string("op_86_perm_0"), val = tensor<int32, [3]>([0, 2, 1])];
39
+ string var_107_pad_type_0 = const()[name = string("op_107_pad_type_0"), val = string("valid")];
40
+ tensor<int32, [2]> var_107_strides_0 = const()[name = string("op_107_strides_0"), val = tensor<int32, [2]>([1, 1])];
41
+ tensor<int32, [4]> var_107_pad_0 = const()[name = string("op_107_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
42
+ tensor<int32, [2]> var_107_dilations_0 = const()[name = string("op_107_dilations_0"), val = tensor<int32, [2]>([1, 1])];
43
+ int32 var_107_groups_0 = const()[name = string("op_107_groups_0"), val = int32(1)];
44
+ tensor<fp16, [4032, 2048, 1, 1]> op_87_promoted_to_fp16_palettized = constexpr_lut_to_dense(indices = tensor<uint6, [4032, 2048, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(18773440))), lut = tensor<fp16, [504, 1, 1, 1, 64, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(24966656))))[name = string("op_87_promoted_to_fp16_palettized")];
45
+ tensor<fp16, [1, 4032, 1, 1]> var_107_cast_fp16 = conv(dilations = var_107_dilations_0, groups = var_107_groups_0, pad = var_107_pad_0, pad_type = var_107_pad_type_0, strides = var_107_strides_0, weight = op_87_promoted_to_fp16_palettized, x = input_cast_fp16)[name = string("op_107_cast_fp16")];
46
+ tensor<int32, [1]> var_109_axes_0 = const()[name = string("op_109_axes_0"), val = tensor<int32, [1]>([2])];
47
+ tensor<fp16, [1, 4032, 1]> var_109_cast_fp16 = squeeze(axes = var_109_axes_0, x = var_107_cast_fp16)[name = string("op_109_cast_fp16")];
48
+ tensor<int32, [3]> var_112_perm_0 = const()[name = string("op_112_perm_0"), val = tensor<int32, [3]>([0, 2, 1])];
49
+ string var_133_pad_type_0 = const()[name = string("op_133_pad_type_0"), val = string("valid")];
50
+ tensor<int32, [2]> var_133_strides_0 = const()[name = string("op_133_strides_0"), val = tensor<int32, [2]>([1, 1])];
51
+ tensor<int32, [4]> var_133_pad_0 = const()[name = string("op_133_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
52
+ tensor<int32, [2]> var_133_dilations_0 = const()[name = string("op_133_dilations_0"), val = tensor<int32, [2]>([1, 1])];
53
+ int32 var_133_groups_0 = const()[name = string("op_133_groups_0"), val = int32(1)];
54
+ tensor<fp16, [4032, 2048, 1, 1]> op_113_promoted_to_fp16_palettized = constexpr_lut_to_dense(indices = tensor<uint6, [4032, 2048, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(25031232))), lut = tensor<fp16, [504, 1, 1, 1, 64, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(31224448))))[name = string("op_113_promoted_to_fp16_palettized")];
55
+ tensor<fp16, [1, 4032, 1, 1]> var_133_cast_fp16 = conv(dilations = var_133_dilations_0, groups = var_133_groups_0, pad = var_133_pad_0, pad_type = var_133_pad_type_0, strides = var_133_strides_0, weight = op_113_promoted_to_fp16_palettized, x = input_cast_fp16)[name = string("op_133_cast_fp16")];
56
+ tensor<int32, [1]> var_135_axes_0 = const()[name = string("op_135_axes_0"), val = tensor<int32, [1]>([2])];
57
+ tensor<fp16, [1, 4032, 1]> var_135_cast_fp16 = squeeze(axes = var_135_axes_0, x = var_133_cast_fp16)[name = string("op_135_cast_fp16")];
58
+ tensor<int32, [3]> var_138_perm_0 = const()[name = string("op_138_perm_0"), val = tensor<int32, [3]>([0, 2, 1])];
59
+ string var_159_pad_type_0 = const()[name = string("op_159_pad_type_0"), val = string("valid")];
60
+ tensor<int32, [2]> var_159_strides_0 = const()[name = string("op_159_strides_0"), val = tensor<int32, [2]>([1, 1])];
61
+ tensor<int32, [4]> var_159_pad_0 = const()[name = string("op_159_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
62
+ tensor<int32, [2]> var_159_dilations_0 = const()[name = string("op_159_dilations_0"), val = tensor<int32, [2]>([1, 1])];
63
+ int32 var_159_groups_0 = const()[name = string("op_159_groups_0"), val = int32(1)];
64
+ tensor<fp16, [4032, 2048, 1, 1]> op_139_promoted_to_fp16_palettized = constexpr_lut_to_dense(indices = tensor<uint6, [4032, 2048, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(31289024))), lut = tensor<fp16, [504, 1, 1, 1, 64, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(37482240))))[name = string("op_139_promoted_to_fp16_palettized")];
65
+ tensor<fp16, [1, 4032, 1, 1]> var_159_cast_fp16 = conv(dilations = var_159_dilations_0, groups = var_159_groups_0, pad = var_159_pad_0, pad_type = var_159_pad_type_0, strides = var_159_strides_0, weight = op_139_promoted_to_fp16_palettized, x = input_cast_fp16)[name = string("op_159_cast_fp16")];
66
+ tensor<int32, [1]> var_161_axes_0 = const()[name = string("op_161_axes_0"), val = tensor<int32, [1]>([2])];
67
+ tensor<fp16, [1, 4032, 1]> var_161_cast_fp16 = squeeze(axes = var_161_axes_0, x = var_159_cast_fp16)[name = string("op_161_cast_fp16")];
68
+ tensor<int32, [3]> var_164_perm_0 = const()[name = string("op_164_perm_0"), val = tensor<int32, [3]>([0, 2, 1])];
69
+ string var_185_pad_type_0 = const()[name = string("op_185_pad_type_0"), val = string("valid")];
70
+ tensor<int32, [2]> var_185_strides_0 = const()[name = string("op_185_strides_0"), val = tensor<int32, [2]>([1, 1])];
71
+ tensor<int32, [4]> var_185_pad_0 = const()[name = string("op_185_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
72
+ tensor<int32, [2]> var_185_dilations_0 = const()[name = string("op_185_dilations_0"), val = tensor<int32, [2]>([1, 1])];
73
+ int32 var_185_groups_0 = const()[name = string("op_185_groups_0"), val = int32(1)];
74
+ tensor<fp16, [4032, 2048, 1, 1]> op_165_promoted_to_fp16_palettized = constexpr_lut_to_dense(indices = tensor<uint6, [4032, 2048, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(37546816))), lut = tensor<fp16, [504, 1, 1, 1, 64, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(43740032))))[name = string("op_165_promoted_to_fp16_palettized")];
75
+ tensor<fp16, [1, 4032, 1, 1]> var_185_cast_fp16 = conv(dilations = var_185_dilations_0, groups = var_185_groups_0, pad = var_185_pad_0, pad_type = var_185_pad_type_0, strides = var_185_strides_0, weight = op_165_promoted_to_fp16_palettized, x = input_cast_fp16)[name = string("op_185_cast_fp16")];
76
+ tensor<int32, [1]> var_187_axes_0 = const()[name = string("op_187_axes_0"), val = tensor<int32, [1]>([2])];
77
+ tensor<fp16, [1, 4032, 1]> var_187_cast_fp16 = squeeze(axes = var_187_axes_0, x = var_185_cast_fp16)[name = string("op_187_cast_fp16")];
78
+ tensor<int32, [3]> var_190_perm_0 = const()[name = string("op_190_perm_0"), val = tensor<int32, [3]>([0, 2, 1])];
79
+ string var_211_pad_type_0 = const()[name = string("op_211_pad_type_0"), val = string("valid")];
80
+ tensor<int32, [2]> var_211_strides_0 = const()[name = string("op_211_strides_0"), val = tensor<int32, [2]>([1, 1])];
81
+ tensor<int32, [4]> var_211_pad_0 = const()[name = string("op_211_pad_0"), val = tensor<int32, [4]>([0, 0, 0, 0])];
82
+ tensor<int32, [2]> var_211_dilations_0 = const()[name = string("op_211_dilations_0"), val = tensor<int32, [2]>([1, 1])];
83
+ int32 var_211_groups_0 = const()[name = string("op_211_groups_0"), val = int32(1)];
84
+ tensor<fp16, [4032, 2048, 1, 1]> op_191_promoted_to_fp16_palettized = constexpr_lut_to_dense(indices = tensor<uint6, [4032, 2048, 1, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(43804608))), lut = tensor<fp16, [504, 1, 1, 1, 64, 1]>(BLOBFILE(path = string("@model_path/weights/weight.bin"), offset = uint64(49997824))))[name = string("op_191_promoted_to_fp16_palettized")];
85
+ tensor<fp16, [1, 4032, 1, 1]> var_211_cast_fp16 = conv(dilations = var_211_dilations_0, groups = var_211_groups_0, pad = var_211_pad_0, pad_type = var_211_pad_type_0, strides = var_211_strides_0, weight = op_191_promoted_to_fp16_palettized, x = input_cast_fp16)[name = string("op_211_cast_fp16")];
86
+ tensor<int32, [1]> var_213_axes_0 = const()[name = string("op_213_axes_0"), val = tensor<int32, [1]>([2])];
87
+ tensor<fp16, [1, 4032, 1]> var_213_cast_fp16 = squeeze(axes = var_213_axes_0, x = var_211_cast_fp16)[name = string("op_213_cast_fp16")];
88
+ tensor<int32, [3]> var_216_perm_0 = const()[name = string("op_216_perm_0"), val = tensor<int32, [3]>([0, 2, 1])];
89
+ tensor<fp16, [1, 1, 4032]> logits1 = transpose(perm = var_34_perm_0, x = var_31_cast_fp16)[name = string("transpose_0")];
90
+ tensor<fp16, [1, 1, 4032]> logits2 = transpose(perm = var_60_perm_0, x = var_57_cast_fp16)[name = string("transpose_1")];
91
+ tensor<fp16, [1, 1, 4032]> logits3 = transpose(perm = var_86_perm_0, x = var_83_cast_fp16)[name = string("transpose_2")];
92
+ tensor<fp16, [1, 1, 4032]> logits4 = transpose(perm = var_112_perm_0, x = var_109_cast_fp16)[name = string("transpose_3")];
93
+ tensor<fp16, [1, 1, 4032]> logits5 = transpose(perm = var_138_perm_0, x = var_135_cast_fp16)[name = string("transpose_4")];
94
+ tensor<fp16, [1, 1, 4032]> logits6 = transpose(perm = var_164_perm_0, x = var_161_cast_fp16)[name = string("transpose_5")];
95
+ tensor<fp16, [1, 1, 4032]> logits7 = transpose(perm = var_190_perm_0, x = var_187_cast_fp16)[name = string("transpose_6")];
96
+ tensor<fp16, [1, 1, 4032]> logits8 = transpose(perm = var_216_perm_0, x = var_213_cast_fp16)[name = string("transpose_7")];
97
+ } -> (logits1, logits2, logits3, logits4, logits5, logits6, logits7, logits8);
98
+ }
llama_lm_head_lut6.mlmodelc/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8194981a11603b43da42a4d396dc17c54f1c5c637b990c78b38b9bf542b9acf
3
+ size 50062400
llama_lm_head_lut6.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65606ee6e0e0a887b8569deccba6febe7778206768d6d3685a921729d585ec13
3
+ size 15426
llama_lm_head_lut6.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8194981a11603b43da42a4d396dc17c54f1c5c637b990c78b38b9bf542b9acf
3
+ size 50062400
llama_lm_head_lut6.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "4321CC1B-5826-4BD9-8829-91AF793943AB": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "EE098C18-E716-451B-AD13-2BB790200715": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "EE098C18-E716-451B-AD13-2BB790200715"
18
+ }
llama_prefill_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77e3bb2cc6c422f9bfb6967cfb411da41b53bb8f4395966916d3b7110f827a1d
3
+ size 815469
llama_prefill_lut6_chunk_01of01.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7adf027ba3d13d28df912eccaf78d1c131fac5f95eca6c8e2f44c299d3370d26
3
+ size 894545728
llama_prefill_lut6_chunk_01of01.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "66205458-4F89-4B4F-B7B7-199ECD4384FF": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "6CD10062-0555-40A2-A11B-0ED3A96265F4": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "6CD10062-0555-40A2-A11B-0ED3A96265F4"
18
+ }
meta.yaml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model_info:
2
+ name: anemll-Prem-1B-SQL-ctx1024
3
+ version: 0.3.5
4
+ description: |
5
+ Demonstarates running Prem-1B-SQL on Apple Neural Engine
6
+ Context length: 1024
7
+ Batch size: 64
8
+ Chunks: 1
9
+ license: MIT
10
+ author: Anemll
11
+ framework: Core ML
12
+ language: Python
13
+ architecture: llama
14
+ parameters:
15
+ context_length: 1024
16
+ batch_size: 64
17
+ lut_embeddings: none
18
+ lut_ffn: 6
19
+ lut_lmhead: 6
20
+ num_chunks: 1
21
+ model_prefix: llama
22
+ embeddings: llama_embeddings.mlmodelc
23
+ lm_head: llama_lm_head_lut6.mlmodelc
24
+ ffn: llama_FFN_PF_lut6_chunk_01of01.mlmodelc
25
+ split_lm_head: 8
26
+ vocab_size: 32256
27
+ lm_head_chunk_sizes: [4032, 4032, 4032, 4032, 4032, 4032, 4032, 4032]
28
+ prefill_dynamic_slice: true
29
+
30
+ # =============================================================================
31
+ # Conversion Parameters (for troubleshooting)
32
+ # =============================================================================
33
+ # Generated: 2026-03-16 19:55:12
34
+ #
35
+ # model_path: /tmp/ios_models/downloads/Prem-1B-SQL
36
+ # output_dir: /tmp/ios_models/Prem-1B-SQL-ctx1024
37
+ # command_line: ./anemll/utils/convert_model.sh --model /tmp/ios_models/downloads/Prem-1B-SQL --output /tmp/ios_models/Prem-1B-SQL-ctx1024 --context 1024 --batch 64 --chunk 1 --lut2 6 --lut3 6 --prefix llama
38
+ # context_length: 1024
39
+ # batch_size: 64
40
+ # num_chunks: 1
41
+ # lut_part1: none
42
+ # lut_part2: 6
43
+ # lut_part3: 6
44
+ # prefix: llama
45
+ # architecture: llama
46
+ # argmax_in_model: false
47
+ # split_rotate: false
48
+ # single_cache: false
49
+ # dynamic_prefill_slice: true
50
+ # monolithic: false
51
+ # anemll_version: 0.3.5
52
+ # vocab_size: 32256
53
+ # lm_head_chunk_sizes: "[4032, 4032, 4032, 4032, 4032, 4032, 4032, 4032]"
54
+ # =============================================================================
meta_progress.yaml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Conversion in progress - this file is for monitoring only
2
+ # Final meta.yaml will be created at step 7
3
+ conversion:
4
+ status: in_progress
5
+ start_time: 2026-03-16T16:14:15Z
6
+ model_path: /tmp/ios_models/downloads/Prem-1B-SQL
7
+ output_dir: /tmp/ios_models/Prem-1B-SQL-ctx1024
8
+ context_length: 1024
9
+ batch_size: 64
10
+ num_chunks: 1
11
+ prefix: llama
12
+ architecture: llama
13
+ lut_part1: none
14
+ lut_part2: 6
15
+ lut_part3: 6
16
+ fp16_scale: none
17
+ argmax: false
18
+ split_rotate: false
19
+ steps:
20
+ - name: embeddings
21
+ part: 1
22
+ status: pending
23
+ - name: lm_head
24
+ part: 3
25
+ status: pending
26
+ - name: ffn
27
+ part: 2
28
+ status: pending
29
+ - name: prefill
30
+ part: 2_prefill
31
+ status: pending
32
+ - name: ffn_rotate
33
+ part: 2_rotate
34
+ status: pending
35
+ gemma3_only: true
36
+ - name: prefill_rotate
37
+ part: 2_prefill_rotate
38
+ status: pending
39
+ gemma3_only: true
40
+ - name: combine
41
+ part: 5
42
+ status: pending
43
+ - name: compile
44
+ part: 6
45
+ status: pending
46
+ - name: tokenizer
47
+ part: 7
48
+ status: pending
49
+ - name: test
50
+ part: 8
51
+ status: pending
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|begin▁of▁sentence|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|EOT|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|end▁of▁sentence|>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "32000": {
7
+ "content": "õ",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": false
13
+ },
14
+ "32001": {
15
+ "content": "÷",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": false
21
+ },
22
+ "32002": {
23
+ "content": "Á",
24
+ "lstrip": false,
25
+ "normalized": true,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": false
29
+ },
30
+ "32003": {
31
+ "content": "ý",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": false
37
+ },
38
+ "32004": {
39
+ "content": "À",
40
+ "lstrip": false,
41
+ "normalized": true,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": false
45
+ },
46
+ "32005": {
47
+ "content": "ÿ",
48
+ "lstrip": false,
49
+ "normalized": true,
50
+ "rstrip": false,
51
+ "single_word": false,
52
+ "special": false
53
+ },
54
+ "32006": {
55
+ "content": "ø",
56
+ "lstrip": false,
57
+ "normalized": true,
58
+ "rstrip": false,
59
+ "single_word": false,
60
+ "special": false
61
+ },
62
+ "32007": {
63
+ "content": "ú",
64
+ "lstrip": false,
65
+ "normalized": true,
66
+ "rstrip": false,
67
+ "single_word": false,
68
+ "special": false
69
+ },
70
+ "32008": {
71
+ "content": "þ",
72
+ "lstrip": false,
73
+ "normalized": true,
74
+ "rstrip": false,
75
+ "single_word": false,
76
+ "special": false
77
+ },
78
+ "32009": {
79
+ "content": "ü",
80
+ "lstrip": false,
81
+ "normalized": true,
82
+ "rstrip": false,
83
+ "single_word": false,
84
+ "special": false
85
+ },
86
+ "32010": {
87
+ "content": "ù",
88
+ "lstrip": false,
89
+ "normalized": true,
90
+ "rstrip": false,
91
+ "single_word": false,
92
+ "special": false
93
+ },
94
+ "32011": {
95
+ "content": "ö",
96
+ "lstrip": false,
97
+ "normalized": true,
98
+ "rstrip": false,
99
+ "single_word": false,
100
+ "special": false
101
+ },
102
+ "32012": {
103
+ "content": "û",
104
+ "lstrip": false,
105
+ "normalized": true,
106
+ "rstrip": false,
107
+ "single_word": false,
108
+ "special": false
109
+ },
110
+ "32013": {
111
+ "content": "<|begin▁of▁sentence|>",
112
+ "lstrip": false,
113
+ "normalized": true,
114
+ "rstrip": false,
115
+ "single_word": false,
116
+ "special": true
117
+ },
118
+ "32014": {
119
+ "content": "<|end▁of▁sentence|>",
120
+ "lstrip": false,
121
+ "normalized": true,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": true
125
+ },
126
+ "32015": {
127
+ "content": "<|fim▁hole|>",
128
+ "lstrip": false,
129
+ "normalized": true,
130
+ "rstrip": false,
131
+ "single_word": false,
132
+ "special": false
133
+ },
134
+ "32016": {
135
+ "content": "<|fim▁begin|>",
136
+ "lstrip": false,
137
+ "normalized": true,
138
+ "rstrip": false,
139
+ "single_word": false,
140
+ "special": false
141
+ },
142
+ "32017": {
143
+ "content": "<|fim▁end|>",
144
+ "lstrip": false,
145
+ "normalized": true,
146
+ "rstrip": false,
147
+ "single_word": false,
148
+ "special": false
149
+ },
150
+ "32018": {
151
+ "content": "<pad>",
152
+ "lstrip": false,
153
+ "normalized": true,
154
+ "rstrip": false,
155
+ "single_word": false,
156
+ "special": false
157
+ },
158
+ "32019": {
159
+ "content": "<|User|>",
160
+ "lstrip": false,
161
+ "normalized": true,
162
+ "rstrip": false,
163
+ "single_word": false,
164
+ "special": false
165
+ },
166
+ "32020": {
167
+ "content": "<|Assistant|>",
168
+ "lstrip": false,
169
+ "normalized": true,
170
+ "rstrip": false,
171
+ "single_word": false,
172
+ "special": false
173
+ },
174
+ "32021": {
175
+ "content": "<|EOT|>",
176
+ "lstrip": false,
177
+ "normalized": true,
178
+ "rstrip": false,
179
+ "single_word": false,
180
+ "special": true
181
+ }
182
+ },
183
+ "bos_token": "<|begin▁of▁sentence|>",
184
+ "chat_template": "{% if not add_generation_prompt is defined %}\n{% set add_generation_prompt = false %}\n{% endif %}\n{%- set ns = namespace(found=false) -%}\n{%- for message in messages -%}\n {%- if message['role'] == 'system' -%}\n {%- set ns.found = true -%}\n {%- endif -%}\n{%- endfor -%}\n{{bos_token}}{%- if not ns.found -%}\n{{'You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer\\n'}}\n{%- endif %}\n{%- for message in messages %}\n {%- if message['role'] == 'system' %}\n{{ message['content'] }}\n {%- else %}\n {%- if message['role'] == 'user' %}\n{{'### Instruction:\\n' + message['content'] + '\\n'}}\n {%- else %}\n{{'### Response:\\n' + message['content'] + '\\n<|EOT|>\\n'}}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{% if add_generation_prompt %}\n{{'### Response:'}}\n{% endif %}",
185
+ "clean_up_tokenization_spaces": false,
186
+ "eos_token": "<|EOT|>",
187
+ "legacy": true,
188
+ "max_length": null,
189
+ "model_max_length": 16384,
190
+ "pad_to_multiple_of": null,
191
+ "pad_token": "<|end▁of▁sentence|>",
192
+ "pad_token_type_id": 0,
193
+ "padding_side": "left",
194
+ "padding_size": "right",
195
+ "sp_model_kwargs": {},
196
+ "tokenizer_class": "LlamaTokenizer",
197
+ "unk_token": null,
198
+ "use_default_system_prompt": false
199
+ }