MaziyarPanahi commited on
Commit
7e17ffd
·
verified ·
1 Parent(s): 7e31bbe

Publish onnx-android artifact

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ model.ort filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: token-classification
4
+ library_name: openmed
5
+ tags:
6
+ - openmed
7
+ - medical-nlp
8
+ ---
9
+
10
+ # OpenMed-NER-AnatomyDetect-SuperClinical-141M-v1-onnx-android
11
+
12
+ This model card is rendered from the OpenMed model manifest. Update `models.jsonl` and rerun the publish step instead of editing this file directly.
13
+
14
+ ## Manifest Summary
15
+
16
+ | Field | Value |
17
+ |---|---|
18
+ | Repository | `OpenMed/OpenMed-NER-AnatomyDetect-SuperClinical-141M-v1-onnx-android` |
19
+ | Family | NER |
20
+ | Task | token-classification |
21
+ | Languages | en |
22
+ | Tier | Not specified |
23
+ | Parameters | 141M (141,000,000) |
24
+ | Architecture | deberta-v2 |
25
+ | Base model | OpenMed/OpenMed-NER-AnatomyDetect-SuperClinical-141M |
26
+ | Formats | onnx-android, int8, ort-android |
27
+ | License | apache-2.0 |
28
+ | arXiv | [arXiv:2508.01630](https://arxiv.org/abs/2508.01630) |
29
+ | Reproducibility hash | `sha256:998460384625361595fdf7ed7531b401c7b40e99ad75f31f6849e61b9137ee77` |
30
+ | Released | 2026-07-09 |
31
+
32
+ ## Benchmark
33
+
34
+ | Dataset | Micro F1 | Recall |
35
+ |---|---:|---:|
36
+ | Not reported | Not reported | Not reported |
37
+
38
+ ## Canonical Labels
39
+
40
+ `Anatomy`
41
+
42
+ ## Artifact Format
43
+
44
+ | Field | Value |
45
+ |---|---|
46
+ | Runtime artifacts | onnx-android, ort-android |
47
+ | Quantization | int8 |
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformers_version": "5.12.1",
3
+ "architectures": [
4
+ "DebertaV2ForTokenClassification"
5
+ ],
6
+ "output_hidden_states": false,
7
+ "return_dict": true,
8
+ "dtype": "bfloat16",
9
+ "chunk_size_feed_forward": 0,
10
+ "is_encoder_decoder": false,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-Anatomy",
14
+ "2": "I-Anatomy"
15
+ },
16
+ "label2id": {
17
+ "B-Anatomy": 1,
18
+ "I-Anatomy": 2,
19
+ "O": 0
20
+ },
21
+ "problem_type": null,
22
+ "vocab_size": 128100,
23
+ "hidden_size": 768,
24
+ "num_hidden_layers": 6,
25
+ "num_attention_heads": 12,
26
+ "intermediate_size": 3072,
27
+ "hidden_act": "gelu",
28
+ "hidden_dropout_prob": 0.2,
29
+ "attention_probs_dropout_prob": 0.2,
30
+ "max_position_embeddings": 512,
31
+ "type_vocab_size": 0,
32
+ "initializer_range": 0.02,
33
+ "layer_norm_eps": 1e-07,
34
+ "relative_attention": true,
35
+ "max_relative_positions": -1,
36
+ "pad_token_id": 0,
37
+ "bos_token_id": null,
38
+ "eos_token_id": null,
39
+ "position_biased_input": false,
40
+ "pos_att_type": [
41
+ "p2c",
42
+ "c2p"
43
+ ],
44
+ "pooler_dropout": 0,
45
+ "pooler_hidden_act": "gelu",
46
+ "legacy": true,
47
+ "tie_word_embeddings": true,
48
+ "pooler_hidden_size": 768,
49
+ "_name_or_path": "OpenMed/OpenMed-NER-AnatomyDetect-SuperClinical-141M",
50
+ "model_type": "deberta-v2",
51
+ "norm_rel_ebd": "layer_norm",
52
+ "position_buckets": 256,
53
+ "share_att_key": true,
54
+ "output_attentions": false,
55
+ "max_sequence_length": 512
56
+ }
id2label.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "0": "O",
3
+ "1": "B-Anatomy",
4
+ "2": "I-Anatomy"
5
+ }
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b257afa8ab6978bf519f9970f43656255729b761623488c0020fae529d33f72
3
+ size 565752469
model.ort ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8d9cf5f84faacc6f229ae89d91f5ff2be0448481b96b7f738bbd21b491db660
3
+ size 583189624
model.required_operators_and_types.config ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Generated from model/s:
2
+ # - /Users/maziyar/Developer/openmed/dist/onnx-android/OpenMed/OpenMed-NER-AnatomyDetect-SuperClinical-141M/model.ort
3
+ ai.onnx;1;Not
4
+ ai.onnx;7;And
5
+ ai.onnx;11;Range{"inputs": {"0": ["int64_t"]}}
6
+ ai.onnx;13;Abs{"inputs": {"0": ["int64_t"]}},Cast{"inputs": {"0": ["float", "int64_t"]}, "outputs": {"0": ["bool", "float", "int64_t"]}},Ceil{"inputs": {"0": ["float"]}},Clip{"inputs": {"0": ["int64_t"]}},Concat{"inputs": {"0": ["int64_t"]}},Equal{"inputs": {"0": ["int64_t"]}},Expand{"inputs": {"0": ["int64_t"]}},Gather{"inputs": {"0": ["float", "int64_t"], "1": ["int64_t"]}},GatherElements{"inputs": {"0": ["float"], "1": ["int64_t"]}},Greater{"inputs": {"0": ["int64_t"]}},Less{"inputs": {"0": ["int64_t"]}},Log{"inputs": {"0": ["float"]}},MatMul{"inputs": {"0": ["float"]}},Neg{"inputs": {"0": ["int64_t"]}},Sign{"inputs": {"0": ["int64_t"]}},Slice{"inputs": {"0": ["int64_t"], "1": ["int64_t"]}},Softmax{"inputs": {"0": ["float"]}},Sqrt{"inputs": {"0": ["float"]}},Squeeze,Tile,Transpose{"inputs": {"0": ["float"]}},Unsqueeze
7
+ ai.onnx;14;Add{"inputs": {"0": ["float", "int64_t"]}},Div{"inputs": {"0": ["float", "int64_t"]}},Mul{"inputs": {"0": ["float", "int64_t"]}},Reshape,Sub{"inputs": {"0": ["int64_t"]}}
8
+ ai.onnx;15;Shape
9
+ ai.onnx;16;Identity,If,LessOrEqual,Where{"inputs": {"1": ["float", "int64_t"]}}
10
+ ai.onnx;17;LayerNormalization
11
+ com.microsoft;1;BiasGelu,FusedMatMul
model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ded0a85d4d741acb7c06571a8c507423e12431fb21490e3797e9ee7f77c7794
3
+ size 283332797
model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95654023d0cf6eca476b23a05a0d83cd79ea35ed7ba82bcc3527258e78b101bb
3
+ size 466905717
model_int8.sorted.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fe4c46be3a0d741f43e22209e57d3d72342fbf9fb3abfe8625306153420b0ac
3
+ size 466905717
model_int8.sorted2.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95654023d0cf6eca476b23a05a0d83cd79ea35ed7ba82bcc3527258e78b101bb
3
+ size 466905717
openmed-onnx.json ADDED
@@ -0,0 +1,537 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "openmed-onnx",
3
+ "format_version": 1,
4
+ "formats": [
5
+ "onnx-android",
6
+ "onnx-int8",
7
+ "ort-android"
8
+ ],
9
+ "task": "token-classification",
10
+ "family": "deberta-v2",
11
+ "source_model_id": "OpenMed/OpenMed-NER-AnatomyDetect-SuperClinical-141M",
12
+ "config_path": "config.json",
13
+ "label_map_path": "id2label.json",
14
+ "artifacts": [
15
+ {
16
+ "format": "onnx-android",
17
+ "path": "model.onnx",
18
+ "precision": "float32",
19
+ "metadata": {
20
+ "profile": "android",
21
+ "opset": 18,
22
+ "execution_providers": [
23
+ "NNAPI",
24
+ "XNNPACK"
25
+ ],
26
+ "inputs": [
27
+ {
28
+ "name": "input_ids",
29
+ "dtype": "int64",
30
+ "axes": [
31
+ "batch",
32
+ "sequence"
33
+ ],
34
+ "shape": [
35
+ {
36
+ "kind": "dynamic",
37
+ "name": "batch"
38
+ },
39
+ {
40
+ "kind": "dynamic",
41
+ "name": "sequence"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "attention_mask",
47
+ "dtype": "int64",
48
+ "axes": [
49
+ "batch",
50
+ "sequence"
51
+ ],
52
+ "shape": [
53
+ {
54
+ "kind": "dynamic",
55
+ "name": "batch"
56
+ },
57
+ {
58
+ "kind": "dynamic",
59
+ "name": "sequence"
60
+ }
61
+ ]
62
+ }
63
+ ],
64
+ "outputs": [
65
+ {
66
+ "name": "logits",
67
+ "dtype": "float32",
68
+ "axes": [
69
+ "batch",
70
+ "sequence",
71
+ "labels"
72
+ ],
73
+ "shape": [
74
+ {
75
+ "kind": "dynamic",
76
+ "name": "batch"
77
+ },
78
+ {
79
+ "kind": "dynamic",
80
+ "name": "sequence"
81
+ },
82
+ {
83
+ "kind": "static",
84
+ "value": 3
85
+ }
86
+ ]
87
+ }
88
+ ],
89
+ "operators": [
90
+ "Identity",
91
+ "Constant",
92
+ "Gather",
93
+ "LayerNormalization",
94
+ "Unsqueeze",
95
+ "Cast",
96
+ "Mul",
97
+ "Squeeze",
98
+ "Shape",
99
+ "Slice",
100
+ "Range",
101
+ "Sub",
102
+ "Sign",
103
+ "Less",
104
+ "Greater",
105
+ "And",
106
+ "Abs",
107
+ "Where",
108
+ "Div",
109
+ "Log",
110
+ "Ceil",
111
+ "Add",
112
+ "LessOrEqual",
113
+ "MatMul",
114
+ "Concat",
115
+ "Reshape",
116
+ "Transpose",
117
+ "Sqrt",
118
+ "ConstantOfShape",
119
+ "Expand",
120
+ "Tile",
121
+ "Clip",
122
+ "Equal",
123
+ "GatherElements",
124
+ "Not",
125
+ "If",
126
+ "Neg",
127
+ "Softmax",
128
+ "Erf"
129
+ ],
130
+ "unsupported_ops": [
131
+ "Sign",
132
+ "Greater",
133
+ "Abs",
134
+ "Ceil",
135
+ "LessOrEqual",
136
+ "If"
137
+ ],
138
+ "warnings": [
139
+ "Sign is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
140
+ "Greater is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
141
+ "Abs is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
142
+ "Ceil is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
143
+ "LessOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
144
+ "If is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set"
145
+ ]
146
+ }
147
+ },
148
+ {
149
+ "format": "onnx-android",
150
+ "path": "model_fp16.onnx",
151
+ "precision": "float16",
152
+ "metadata": {
153
+ "profile": "android",
154
+ "opset": 18,
155
+ "execution_providers": [
156
+ "NNAPI",
157
+ "XNNPACK"
158
+ ],
159
+ "inputs": [
160
+ {
161
+ "name": "input_ids",
162
+ "dtype": "int64",
163
+ "axes": [
164
+ "batch",
165
+ "sequence"
166
+ ],
167
+ "shape": [
168
+ {
169
+ "kind": "dynamic",
170
+ "name": "batch"
171
+ },
172
+ {
173
+ "kind": "dynamic",
174
+ "name": "sequence"
175
+ }
176
+ ]
177
+ },
178
+ {
179
+ "name": "attention_mask",
180
+ "dtype": "int64",
181
+ "axes": [
182
+ "batch",
183
+ "sequence"
184
+ ],
185
+ "shape": [
186
+ {
187
+ "kind": "dynamic",
188
+ "name": "batch"
189
+ },
190
+ {
191
+ "kind": "dynamic",
192
+ "name": "sequence"
193
+ }
194
+ ]
195
+ }
196
+ ],
197
+ "outputs": [
198
+ {
199
+ "name": "logits",
200
+ "dtype": "float32",
201
+ "axes": [
202
+ "batch",
203
+ "sequence",
204
+ "labels"
205
+ ],
206
+ "shape": [
207
+ {
208
+ "kind": "dynamic",
209
+ "name": "batch"
210
+ },
211
+ {
212
+ "kind": "dynamic",
213
+ "name": "sequence"
214
+ },
215
+ {
216
+ "kind": "static",
217
+ "value": 3
218
+ }
219
+ ]
220
+ }
221
+ ],
222
+ "operators": [
223
+ "Identity",
224
+ "Constant",
225
+ "Gather",
226
+ "LayerNormalization",
227
+ "Unsqueeze",
228
+ "Cast",
229
+ "Mul",
230
+ "Squeeze",
231
+ "Shape",
232
+ "Slice",
233
+ "Range",
234
+ "Sub",
235
+ "Sign",
236
+ "Less",
237
+ "Greater",
238
+ "And",
239
+ "Abs",
240
+ "Where",
241
+ "Div",
242
+ "Log",
243
+ "Ceil",
244
+ "Add",
245
+ "LessOrEqual",
246
+ "MatMul",
247
+ "Concat",
248
+ "Reshape",
249
+ "Transpose",
250
+ "Sqrt",
251
+ "ConstantOfShape",
252
+ "Expand",
253
+ "Tile",
254
+ "Clip",
255
+ "Equal",
256
+ "GatherElements",
257
+ "Not",
258
+ "If",
259
+ "Neg",
260
+ "Softmax",
261
+ "Erf"
262
+ ],
263
+ "unsupported_ops": [
264
+ "Sign",
265
+ "Greater",
266
+ "Abs",
267
+ "Ceil",
268
+ "LessOrEqual",
269
+ "If"
270
+ ],
271
+ "warnings": [
272
+ "Sign is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
273
+ "Greater is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
274
+ "Abs is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
275
+ "Ceil is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
276
+ "LessOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
277
+ "If is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set"
278
+ ]
279
+ }
280
+ },
281
+ {
282
+ "format": "onnx-int8",
283
+ "path": "model_int8.onnx",
284
+ "precision": "int8",
285
+ "metadata": {
286
+ "format": "onnx-int8",
287
+ "quantization": {
288
+ "scheme": "dynamic",
289
+ "weight_type": "qint8",
290
+ "op_types": [
291
+ "MatMul",
292
+ "Gemm"
293
+ ],
294
+ "calibration": "none",
295
+ "target": "arm64-cpu",
296
+ "output": "model_int8.onnx"
297
+ },
298
+ "profile": "android",
299
+ "opset": 18,
300
+ "execution_providers": [
301
+ "NNAPI",
302
+ "XNNPACK"
303
+ ],
304
+ "inputs": [
305
+ {
306
+ "name": "input_ids",
307
+ "dtype": "int64",
308
+ "axes": [
309
+ "batch",
310
+ "sequence"
311
+ ],
312
+ "shape": [
313
+ {
314
+ "kind": "dynamic",
315
+ "name": "batch"
316
+ },
317
+ {
318
+ "kind": "dynamic",
319
+ "name": "sequence"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "name": "attention_mask",
325
+ "dtype": "int64",
326
+ "axes": [
327
+ "batch",
328
+ "sequence"
329
+ ],
330
+ "shape": [
331
+ {
332
+ "kind": "dynamic",
333
+ "name": "batch"
334
+ },
335
+ {
336
+ "kind": "dynamic",
337
+ "name": "sequence"
338
+ }
339
+ ]
340
+ }
341
+ ],
342
+ "outputs": [
343
+ {
344
+ "name": "logits",
345
+ "dtype": "float32",
346
+ "axes": [
347
+ "batch",
348
+ "sequence",
349
+ "labels"
350
+ ],
351
+ "shape": [
352
+ {
353
+ "kind": "dynamic",
354
+ "name": "batch"
355
+ },
356
+ {
357
+ "kind": "dynamic",
358
+ "name": "sequence"
359
+ },
360
+ {
361
+ "kind": "static",
362
+ "value": 3
363
+ }
364
+ ]
365
+ }
366
+ ],
367
+ "operators": [
368
+ "Constant",
369
+ "LayerNormalization",
370
+ "Gather",
371
+ "Identity",
372
+ "Unsqueeze",
373
+ "Slice",
374
+ "Cast",
375
+ "Mul",
376
+ "Squeeze",
377
+ "MatMul",
378
+ "Shape",
379
+ "DynamicQuantizeLinear",
380
+ "Add",
381
+ "MatMulInteger",
382
+ "Reshape",
383
+ "Transpose",
384
+ "Not",
385
+ "Range",
386
+ "Sub",
387
+ "Sign",
388
+ "Less",
389
+ "Greater",
390
+ "Abs",
391
+ "And",
392
+ "Concat",
393
+ "Where",
394
+ "LessOrEqual",
395
+ "Div",
396
+ "Log",
397
+ "Ceil",
398
+ "Equal",
399
+ "Sqrt",
400
+ "ConstantOfShape",
401
+ "Clip",
402
+ "Expand",
403
+ "Tile",
404
+ "GatherElements",
405
+ "If",
406
+ "Neg",
407
+ "Softmax",
408
+ "Erf"
409
+ ],
410
+ "unsupported_ops": [
411
+ "DynamicQuantizeLinear",
412
+ "MatMulInteger",
413
+ "Sign",
414
+ "Greater",
415
+ "Abs",
416
+ "LessOrEqual",
417
+ "Ceil",
418
+ "If"
419
+ ],
420
+ "warnings": [
421
+ "DynamicQuantizeLinear is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
422
+ "MatMulInteger is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
423
+ "Sign is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
424
+ "Greater is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
425
+ "Abs is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
426
+ "LessOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
427
+ "Ceil is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
428
+ "If is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set"
429
+ ]
430
+ }
431
+ },
432
+ {
433
+ "format": "ort-android",
434
+ "path": "model.ort",
435
+ "precision": "float32",
436
+ "metadata": {
437
+ "format": "ort-android",
438
+ "profile": "android",
439
+ "source_onnx_path": "model.onnx",
440
+ "optimization_style": "Fixed",
441
+ "target_platform": "arm",
442
+ "op_config_type": "required_operators_and_types",
443
+ "enable_type_reduction": true,
444
+ "ort_path": "model.ort",
445
+ "op_config_path": "model.required_operators_and_types.config",
446
+ "operators": [
447
+ "Identity",
448
+ "Constant",
449
+ "Gather",
450
+ "LayerNormalization",
451
+ "Unsqueeze",
452
+ "Cast",
453
+ "Mul",
454
+ "Squeeze",
455
+ "Shape",
456
+ "Slice",
457
+ "Range",
458
+ "Sub",
459
+ "Sign",
460
+ "Less",
461
+ "Greater",
462
+ "And",
463
+ "Abs",
464
+ "Where",
465
+ "Div",
466
+ "Log",
467
+ "Ceil",
468
+ "Add",
469
+ "LessOrEqual",
470
+ "MatMul",
471
+ "Concat",
472
+ "Reshape",
473
+ "Transpose",
474
+ "Sqrt",
475
+ "ConstantOfShape",
476
+ "Expand",
477
+ "Tile",
478
+ "Clip",
479
+ "Equal",
480
+ "GatherElements",
481
+ "Not",
482
+ "If",
483
+ "Neg",
484
+ "Softmax",
485
+ "Erf"
486
+ ],
487
+ "opset": 18
488
+ }
489
+ }
490
+ ],
491
+ "minimum_opset": 18,
492
+ "max_sequence_length": 512,
493
+ "dynamic_shapes": {
494
+ "batch_axis": "dynamic",
495
+ "sequence_axis": "dynamic",
496
+ "shape_buckets": {
497
+ "strategy": "next_configured_bucket_or_exact",
498
+ "axes": {
499
+ "input": [
500
+ "batch",
501
+ "sequence"
502
+ ],
503
+ "output": [
504
+ "batch",
505
+ "sequence"
506
+ ]
507
+ },
508
+ "buckets": [
509
+ 8,
510
+ 16,
511
+ 32,
512
+ 64,
513
+ 128,
514
+ 256,
515
+ 512,
516
+ 1024,
517
+ 2048
518
+ ],
519
+ "min_length": 8,
520
+ "max_length": 2048,
521
+ "overflow": "exact_length"
522
+ }
523
+ },
524
+ "optimization": {
525
+ "enabled": false,
526
+ "minimum_opset": 18
527
+ },
528
+ "validation": {},
529
+ "operator_fallbacks": [],
530
+ "tokenizer": {
531
+ "path": ".",
532
+ "files": [
533
+ "tokenizer.json",
534
+ "tokenizer_config.json"
535
+ ]
536
+ }
537
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "[CLS]",
5
+ "clean_up_tokenization_spaces": true,
6
+ "cls_token": "[CLS]",
7
+ "do_lower_case": false,
8
+ "eos_token": "[SEP]",
9
+ "is_local": false,
10
+ "local_files_only": false,
11
+ "mask_token": "[MASK]",
12
+ "max_length": 512,
13
+ "model_max_length": 1000000000000000019884624838656,
14
+ "pad_to_multiple_of": null,
15
+ "pad_token": "[PAD]",
16
+ "pad_token_type_id": 0,
17
+ "padding_side": "right",
18
+ "sep_token": "[SEP]",
19
+ "sp_model_kwargs": {},
20
+ "split_by_punct": false,
21
+ "stride": 0,
22
+ "tokenizer_class": "DebertaV2Tokenizer",
23
+ "truncation_side": "right",
24
+ "truncation_strategy": "longest_first",
25
+ "unk_id": 3,
26
+ "unk_token": "[UNK]",
27
+ "vocab_type": "spm"
28
+ }