MaziyarPanahi commited on
Commit
f9eef3a
·
verified ·
1 Parent(s): 83e292f

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-PII-Dutch-BioClinicalModern-Base-149M-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-PII-Dutch-BioClinicalModern-Base-149M-v1-onnx-android` |
19
+ | Family | PII |
20
+ | Task | token-classification |
21
+ | Languages | nl |
22
+ | Tier | Base |
23
+ | Parameters | 149M (149,000,000) |
24
+ | Architecture | modernbert |
25
+ | Base model | OpenMed/OpenMed-PII-Dutch-BioClinicalModern-Base-149M-v1 |
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:725a41d408f26a0b378f4d60deb9d997d419796d29b80618435e334133628ebb` |
30
+ | Released | 2026-07-11 |
31
+
32
+ ## Benchmark
33
+
34
+ | Dataset | Micro F1 | Recall |
35
+ |---|---:|---:|
36
+ | Not reported | Not reported | Not reported |
37
+
38
+ ## Canonical Labels
39
+
40
+ `ACCOUNTNAME`, `AGE`, `AMOUNT`, `BANKACCOUNT`, `BIC`, `BITCOINADDRESS`, `BUILDINGNUMBER`, `CITY`, `COUNTY`, `CREDITCARD`, `CREDITCARDISSUER`, `CURRENCY`, `CURRENCYCODE`, `CURRENCYNAME`, `CURRENCYSYMBOL`, `CVV`, `DATE`, `DATEOFBIRTH`, `EMAIL`, `ETHEREUMADDRESS`, `EYECOLOR`, `FIRSTNAME`, `GENDER`, `GPSCOORDINATES`, `HEIGHT`, `IBAN`, `IMEI`, `IPADDRESS`, `JOBDEPARTMENT`, `JOBTITLE`, `LASTNAME`, `LITECOINADDRESS`, `MACADDRESS`, `MASKEDNUMBER`, `MIDDLENAME`, `OCCUPATION`, `ORDINALDIRECTION`, `ORGANIZATION`, `PASSWORD`, `PHONE`, `PIN`, `PREFIX`, `SECONDARYADDRESS`, `SEX`, `SSN`, `STATE`, `STREET`, `TIME`, `URL`, `USERAGENT`, `USERNAME`, `VIN`, `VRM`, `ZIPCODE`
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,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformers_version": "5.12.1",
3
+ "architectures": [
4
+ "ModernBertForTokenClassification"
5
+ ],
6
+ "output_hidden_states": false,
7
+ "return_dict": true,
8
+ "dtype": "float32",
9
+ "chunk_size_feed_forward": 0,
10
+ "is_encoder_decoder": false,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-ACCOUNTNAME",
14
+ "2": "B-AGE",
15
+ "3": "B-AMOUNT",
16
+ "4": "B-BANKACCOUNT",
17
+ "5": "B-BIC",
18
+ "6": "B-BITCOINADDRESS",
19
+ "7": "B-BUILDINGNUMBER",
20
+ "8": "B-CITY",
21
+ "9": "B-COUNTY",
22
+ "10": "B-CREDITCARD",
23
+ "11": "B-CREDITCARDISSUER",
24
+ "12": "B-CURRENCY",
25
+ "13": "B-CURRENCYCODE",
26
+ "14": "B-CURRENCYNAME",
27
+ "15": "B-CURRENCYSYMBOL",
28
+ "16": "B-CVV",
29
+ "17": "B-DATE",
30
+ "18": "B-DATEOFBIRTH",
31
+ "19": "B-EMAIL",
32
+ "20": "B-ETHEREUMADDRESS",
33
+ "21": "B-EYECOLOR",
34
+ "22": "B-FIRSTNAME",
35
+ "23": "B-GENDER",
36
+ "24": "B-GPSCOORDINATES",
37
+ "25": "B-HEIGHT",
38
+ "26": "B-IBAN",
39
+ "27": "B-IMEI",
40
+ "28": "B-IPADDRESS",
41
+ "29": "B-JOBDEPARTMENT",
42
+ "30": "B-JOBTITLE",
43
+ "31": "B-LASTNAME",
44
+ "32": "B-LITECOINADDRESS",
45
+ "33": "B-MACADDRESS",
46
+ "34": "B-MASKEDNUMBER",
47
+ "35": "B-MIDDLENAME",
48
+ "36": "B-OCCUPATION",
49
+ "37": "B-ORDINALDIRECTION",
50
+ "38": "B-ORGANIZATION",
51
+ "39": "B-PASSWORD",
52
+ "40": "B-PHONE",
53
+ "41": "B-PIN",
54
+ "42": "B-PREFIX",
55
+ "43": "B-SECONDARYADDRESS",
56
+ "44": "B-SEX",
57
+ "45": "B-SSN",
58
+ "46": "B-STATE",
59
+ "47": "B-STREET",
60
+ "48": "B-TIME",
61
+ "49": "B-URL",
62
+ "50": "B-USERAGENT",
63
+ "51": "B-USERNAME",
64
+ "52": "B-VIN",
65
+ "53": "B-VRM",
66
+ "54": "B-ZIPCODE",
67
+ "55": "I-ACCOUNTNAME",
68
+ "56": "I-AGE",
69
+ "57": "I-AMOUNT",
70
+ "58": "I-CITY",
71
+ "59": "I-COUNTY",
72
+ "60": "I-CURRENCY",
73
+ "61": "I-CURRENCYNAME",
74
+ "62": "I-DATE",
75
+ "63": "I-DATEOFBIRTH",
76
+ "64": "I-EYECOLOR",
77
+ "65": "I-GENDER",
78
+ "66": "I-HEIGHT",
79
+ "67": "I-JOBTITLE",
80
+ "68": "I-ORGANIZATION",
81
+ "69": "I-PHONE",
82
+ "70": "I-SECONDARYADDRESS",
83
+ "71": "I-SSN",
84
+ "72": "I-STATE",
85
+ "73": "I-STREET",
86
+ "74": "I-TIME",
87
+ "75": "I-USERAGENT"
88
+ },
89
+ "label2id": {
90
+ "B-ACCOUNTNAME": 1,
91
+ "B-AGE": 2,
92
+ "B-AMOUNT": 3,
93
+ "B-BANKACCOUNT": 4,
94
+ "B-BIC": 5,
95
+ "B-BITCOINADDRESS": 6,
96
+ "B-BUILDINGNUMBER": 7,
97
+ "B-CITY": 8,
98
+ "B-COUNTY": 9,
99
+ "B-CREDITCARD": 10,
100
+ "B-CREDITCARDISSUER": 11,
101
+ "B-CURRENCY": 12,
102
+ "B-CURRENCYCODE": 13,
103
+ "B-CURRENCYNAME": 14,
104
+ "B-CURRENCYSYMBOL": 15,
105
+ "B-CVV": 16,
106
+ "B-DATE": 17,
107
+ "B-DATEOFBIRTH": 18,
108
+ "B-EMAIL": 19,
109
+ "B-ETHEREUMADDRESS": 20,
110
+ "B-EYECOLOR": 21,
111
+ "B-FIRSTNAME": 22,
112
+ "B-GENDER": 23,
113
+ "B-GPSCOORDINATES": 24,
114
+ "B-HEIGHT": 25,
115
+ "B-IBAN": 26,
116
+ "B-IMEI": 27,
117
+ "B-IPADDRESS": 28,
118
+ "B-JOBDEPARTMENT": 29,
119
+ "B-JOBTITLE": 30,
120
+ "B-LASTNAME": 31,
121
+ "B-LITECOINADDRESS": 32,
122
+ "B-MACADDRESS": 33,
123
+ "B-MASKEDNUMBER": 34,
124
+ "B-MIDDLENAME": 35,
125
+ "B-OCCUPATION": 36,
126
+ "B-ORDINALDIRECTION": 37,
127
+ "B-ORGANIZATION": 38,
128
+ "B-PASSWORD": 39,
129
+ "B-PHONE": 40,
130
+ "B-PIN": 41,
131
+ "B-PREFIX": 42,
132
+ "B-SECONDARYADDRESS": 43,
133
+ "B-SEX": 44,
134
+ "B-SSN": 45,
135
+ "B-STATE": 46,
136
+ "B-STREET": 47,
137
+ "B-TIME": 48,
138
+ "B-URL": 49,
139
+ "B-USERAGENT": 50,
140
+ "B-USERNAME": 51,
141
+ "B-VIN": 52,
142
+ "B-VRM": 53,
143
+ "B-ZIPCODE": 54,
144
+ "I-ACCOUNTNAME": 55,
145
+ "I-AGE": 56,
146
+ "I-AMOUNT": 57,
147
+ "I-CITY": 58,
148
+ "I-COUNTY": 59,
149
+ "I-CURRENCY": 60,
150
+ "I-CURRENCYNAME": 61,
151
+ "I-DATE": 62,
152
+ "I-DATEOFBIRTH": 63,
153
+ "I-EYECOLOR": 64,
154
+ "I-GENDER": 65,
155
+ "I-HEIGHT": 66,
156
+ "I-JOBTITLE": 67,
157
+ "I-ORGANIZATION": 68,
158
+ "I-PHONE": 69,
159
+ "I-SECONDARYADDRESS": 70,
160
+ "I-SSN": 71,
161
+ "I-STATE": 72,
162
+ "I-STREET": 73,
163
+ "I-TIME": 74,
164
+ "I-USERAGENT": 75,
165
+ "O": 0
166
+ },
167
+ "problem_type": null,
168
+ "vocab_size": 50368,
169
+ "hidden_size": 768,
170
+ "intermediate_size": 1152,
171
+ "num_hidden_layers": 22,
172
+ "num_attention_heads": 12,
173
+ "hidden_activation": "gelu",
174
+ "max_position_embeddings": 8192,
175
+ "initializer_range": 0.02,
176
+ "initializer_cutoff_factor": 2.0,
177
+ "norm_eps": 1e-05,
178
+ "norm_bias": false,
179
+ "pad_token_id": 50283,
180
+ "eos_token_id": null,
181
+ "bos_token_id": null,
182
+ "cls_token_id": 50281,
183
+ "sep_token_id": 50282,
184
+ "attention_bias": false,
185
+ "attention_dropout": 0.0,
186
+ "layer_types": [
187
+ "full_attention",
188
+ "sliding_attention",
189
+ "sliding_attention",
190
+ "full_attention",
191
+ "sliding_attention",
192
+ "sliding_attention",
193
+ "full_attention",
194
+ "sliding_attention",
195
+ "sliding_attention",
196
+ "full_attention",
197
+ "sliding_attention",
198
+ "sliding_attention",
199
+ "full_attention",
200
+ "sliding_attention",
201
+ "sliding_attention",
202
+ "full_attention",
203
+ "sliding_attention",
204
+ "sliding_attention",
205
+ "full_attention",
206
+ "sliding_attention",
207
+ "sliding_attention",
208
+ "full_attention"
209
+ ],
210
+ "rope_parameters": {
211
+ "full_attention": {
212
+ "rope_theta": 160000.0,
213
+ "rope_type": "default"
214
+ },
215
+ "sliding_attention": {
216
+ "rope_theta": 10000.0,
217
+ "rope_type": "default"
218
+ }
219
+ },
220
+ "local_attention": 128,
221
+ "embedding_dropout": 0.0,
222
+ "mlp_bias": false,
223
+ "mlp_dropout": 0.0,
224
+ "decoder_bias": true,
225
+ "classifier_pooling": "mean",
226
+ "classifier_dropout": 0.0,
227
+ "classifier_bias": false,
228
+ "classifier_activation": "silu",
229
+ "deterministic_flash_attn": false,
230
+ "sparse_prediction": false,
231
+ "sparse_pred_ignore_index": -100,
232
+ "tie_word_embeddings": true,
233
+ "_name_or_path": "OpenMed/OpenMed-PII-Dutch-BioClinicalModern-Base-149M-v1",
234
+ "global_attn_every_n_layers": 3,
235
+ "gradient_checkpointing": false,
236
+ "layer_norm_eps": 1e-05,
237
+ "model_type": "modernbert",
238
+ "position_embedding_type": "absolute",
239
+ "output_attentions": false,
240
+ "max_sequence_length": 512
241
+ }
id2label.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "0": "O",
3
+ "1": "B-ACCOUNTNAME",
4
+ "2": "B-AGE",
5
+ "3": "B-AMOUNT",
6
+ "4": "B-BANKACCOUNT",
7
+ "5": "B-BIC",
8
+ "6": "B-BITCOINADDRESS",
9
+ "7": "B-BUILDINGNUMBER",
10
+ "8": "B-CITY",
11
+ "9": "B-COUNTY",
12
+ "10": "B-CREDITCARD",
13
+ "11": "B-CREDITCARDISSUER",
14
+ "12": "B-CURRENCY",
15
+ "13": "B-CURRENCYCODE",
16
+ "14": "B-CURRENCYNAME",
17
+ "15": "B-CURRENCYSYMBOL",
18
+ "16": "B-CVV",
19
+ "17": "B-DATE",
20
+ "18": "B-DATEOFBIRTH",
21
+ "19": "B-EMAIL",
22
+ "20": "B-ETHEREUMADDRESS",
23
+ "21": "B-EYECOLOR",
24
+ "22": "B-FIRSTNAME",
25
+ "23": "B-GENDER",
26
+ "24": "B-GPSCOORDINATES",
27
+ "25": "B-HEIGHT",
28
+ "26": "B-IBAN",
29
+ "27": "B-IMEI",
30
+ "28": "B-IPADDRESS",
31
+ "29": "B-JOBDEPARTMENT",
32
+ "30": "B-JOBTITLE",
33
+ "31": "B-LASTNAME",
34
+ "32": "B-LITECOINADDRESS",
35
+ "33": "B-MACADDRESS",
36
+ "34": "B-MASKEDNUMBER",
37
+ "35": "B-MIDDLENAME",
38
+ "36": "B-OCCUPATION",
39
+ "37": "B-ORDINALDIRECTION",
40
+ "38": "B-ORGANIZATION",
41
+ "39": "B-PASSWORD",
42
+ "40": "B-PHONE",
43
+ "41": "B-PIN",
44
+ "42": "B-PREFIX",
45
+ "43": "B-SECONDARYADDRESS",
46
+ "44": "B-SEX",
47
+ "45": "B-SSN",
48
+ "46": "B-STATE",
49
+ "47": "B-STREET",
50
+ "48": "B-TIME",
51
+ "49": "B-URL",
52
+ "50": "B-USERAGENT",
53
+ "51": "B-USERNAME",
54
+ "52": "B-VIN",
55
+ "53": "B-VRM",
56
+ "54": "B-ZIPCODE",
57
+ "55": "I-ACCOUNTNAME",
58
+ "56": "I-AGE",
59
+ "57": "I-AMOUNT",
60
+ "58": "I-CITY",
61
+ "59": "I-COUNTY",
62
+ "60": "I-CURRENCY",
63
+ "61": "I-CURRENCYNAME",
64
+ "62": "I-DATE",
65
+ "63": "I-DATEOFBIRTH",
66
+ "64": "I-EYECOLOR",
67
+ "65": "I-GENDER",
68
+ "66": "I-HEIGHT",
69
+ "67": "I-JOBTITLE",
70
+ "68": "I-ORGANIZATION",
71
+ "69": "I-PHONE",
72
+ "70": "I-SECONDARYADDRESS",
73
+ "71": "I-SSN",
74
+ "72": "I-STATE",
75
+ "73": "I-STREET",
76
+ "74": "I-TIME",
77
+ "75": "I-USERAGENT"
78
+ }
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88c2de415bdfd9508538a919a4842e528dc289115fa73407cfab8094f56a537c
3
+ size 599371079
model.ort ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fd217b8366b46ba754bb346b9cbe9a6ea4bd6295d8ddfa690f3adcbe2c4f087
3
+ size 599703824
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-PII-Dutch-BioClinicalModern-Base-149M-v1/model.ort
3
+ ai.onnx;7;And,Cos,Sin{"inputs": {"0": ["float"]}}
4
+ ai.onnx;11;Range{"inputs": {"0": ["int64_t"]}}
5
+ ai.onnx;13;Abs{"inputs": {"0": ["int64_t"]}},Cast{"inputs": {"0": ["int64_t"]}, "outputs": {"0": ["bool", "float"]}},Concat{"inputs": {"0": ["float", "int64_t"]}},Equal{"inputs": {"0": ["int64_t"]}},Expand{"inputs": {"0": ["bool", "float"]}},Flatten,Gather{"inputs": {"0": ["bool", "float", "int64_t"], "1": ["int64_t"]}},IsNaN{"inputs": {"0": ["float"]}},MatMul{"inputs": {"0": ["float"]}},Neg{"inputs": {"0": ["float"]}},Slice{"inputs": {"0": ["float"], "1": ["int64_t"]}},Softmax{"inputs": {"0": ["float"]}},Squeeze,Transpose{"inputs": {"0": ["float"]}},Unsqueeze
6
+ ai.onnx;14;Add{"inputs": {"0": ["float", "int64_t"]}},Div{"inputs": {"0": ["int64_t"]}},Mul{"inputs": {"0": ["float", "int64_t"]}},Reshape,Sub{"inputs": {"0": ["int64_t"]}}
7
+ ai.onnx;15;Shape
8
+ ai.onnx;16;GreaterOrEqual,LessOrEqual,Where{"inputs": {"1": ["float", "int64_t"]}}
9
+ ai.onnx;17;LayerNormalization
10
+ ai.onnx;18;Split{"inputs": {"0": ["float"]}}
11
+ com.microsoft;1;FusedMatMul,Gelu,QuickGelu
model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76eeb65a98f14d952222a0301c0a334e411ae6062c7b4c578631c4858525b90d
3
+ size 300230763
model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a821328396f72166666773c5a43edcfd738ff9230532d30cf9e28a0b65d9f18b
3
+ size 266911660
openmed-onnx.json ADDED
@@ -0,0 +1,523 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "modernbert",
11
+ "source_model_id": "OpenMed/OpenMed-PII-Dutch-BioClinicalModern-Base-149M-v1",
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": 76
85
+ }
86
+ ]
87
+ }
88
+ ],
89
+ "operators": [
90
+ "Shape",
91
+ "Constant",
92
+ "Gather",
93
+ "Cast",
94
+ "Range",
95
+ "Unsqueeze",
96
+ "LayerNormalization",
97
+ "ConstantOfShape",
98
+ "GreaterOrEqual",
99
+ "And",
100
+ "Flatten",
101
+ "Mul",
102
+ "Add",
103
+ "Reshape",
104
+ "Concat",
105
+ "Equal",
106
+ "Where",
107
+ "Expand",
108
+ "Sub",
109
+ "Abs",
110
+ "LessOrEqual",
111
+ "MatMul",
112
+ "Transpose",
113
+ "Cos",
114
+ "Sin",
115
+ "Split",
116
+ "Squeeze",
117
+ "Div",
118
+ "Slice",
119
+ "Neg",
120
+ "Softmax",
121
+ "IsNaN",
122
+ "Erf",
123
+ "Sigmoid"
124
+ ],
125
+ "unsupported_ops": [
126
+ "GreaterOrEqual",
127
+ "Flatten",
128
+ "Abs",
129
+ "LessOrEqual",
130
+ "Cos",
131
+ "Sin",
132
+ "IsNaN"
133
+ ],
134
+ "warnings": [
135
+ "GreaterOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
136
+ "Flatten is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
137
+ "Abs is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
138
+ "LessOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
139
+ "Cos is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
140
+ "Sin is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
141
+ "IsNaN is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set"
142
+ ]
143
+ }
144
+ },
145
+ {
146
+ "format": "onnx-android",
147
+ "path": "model_fp16.onnx",
148
+ "precision": "float16",
149
+ "metadata": {
150
+ "profile": "android",
151
+ "opset": 18,
152
+ "execution_providers": [
153
+ "NNAPI",
154
+ "XNNPACK"
155
+ ],
156
+ "inputs": [
157
+ {
158
+ "name": "input_ids",
159
+ "dtype": "int64",
160
+ "axes": [
161
+ "batch",
162
+ "sequence"
163
+ ],
164
+ "shape": [
165
+ {
166
+ "kind": "dynamic",
167
+ "name": "batch"
168
+ },
169
+ {
170
+ "kind": "dynamic",
171
+ "name": "sequence"
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "name": "attention_mask",
177
+ "dtype": "int64",
178
+ "axes": [
179
+ "batch",
180
+ "sequence"
181
+ ],
182
+ "shape": [
183
+ {
184
+ "kind": "dynamic",
185
+ "name": "batch"
186
+ },
187
+ {
188
+ "kind": "dynamic",
189
+ "name": "sequence"
190
+ }
191
+ ]
192
+ }
193
+ ],
194
+ "outputs": [
195
+ {
196
+ "name": "logits",
197
+ "dtype": "float32",
198
+ "axes": [
199
+ "batch",
200
+ "sequence",
201
+ "labels"
202
+ ],
203
+ "shape": [
204
+ {
205
+ "kind": "dynamic",
206
+ "name": "batch"
207
+ },
208
+ {
209
+ "kind": "dynamic",
210
+ "name": "sequence"
211
+ },
212
+ {
213
+ "kind": "static",
214
+ "value": 76
215
+ }
216
+ ]
217
+ }
218
+ ],
219
+ "operators": [
220
+ "Shape",
221
+ "Constant",
222
+ "Gather",
223
+ "Cast",
224
+ "Range",
225
+ "Unsqueeze",
226
+ "LayerNormalization",
227
+ "ConstantOfShape",
228
+ "GreaterOrEqual",
229
+ "And",
230
+ "Flatten",
231
+ "Mul",
232
+ "Add",
233
+ "Reshape",
234
+ "Concat",
235
+ "Equal",
236
+ "Where",
237
+ "Expand",
238
+ "Sub",
239
+ "Abs",
240
+ "LessOrEqual",
241
+ "MatMul",
242
+ "Transpose",
243
+ "Cos",
244
+ "Sin",
245
+ "Split",
246
+ "Squeeze",
247
+ "Div",
248
+ "Slice",
249
+ "Neg",
250
+ "Softmax",
251
+ "IsNaN",
252
+ "Erf",
253
+ "Sigmoid"
254
+ ],
255
+ "unsupported_ops": [
256
+ "GreaterOrEqual",
257
+ "Flatten",
258
+ "Abs",
259
+ "LessOrEqual",
260
+ "Cos",
261
+ "Sin",
262
+ "IsNaN"
263
+ ],
264
+ "warnings": [
265
+ "GreaterOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
266
+ "Flatten is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
267
+ "Abs is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
268
+ "LessOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
269
+ "Cos is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
270
+ "Sin is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
271
+ "IsNaN is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set"
272
+ ]
273
+ }
274
+ },
275
+ {
276
+ "format": "onnx-int8",
277
+ "path": "model_int8.onnx",
278
+ "precision": "int8",
279
+ "metadata": {
280
+ "format": "onnx-int8",
281
+ "quantization": {
282
+ "scheme": "dynamic",
283
+ "weight_type": "qint8",
284
+ "op_types": [
285
+ "MatMul",
286
+ "Gemm"
287
+ ],
288
+ "calibration": "none",
289
+ "target": "arm64-cpu",
290
+ "output": "model_int8.onnx"
291
+ },
292
+ "profile": "android",
293
+ "opset": 18,
294
+ "execution_providers": [
295
+ "NNAPI",
296
+ "XNNPACK"
297
+ ],
298
+ "inputs": [
299
+ {
300
+ "name": "input_ids",
301
+ "dtype": "int64",
302
+ "axes": [
303
+ "batch",
304
+ "sequence"
305
+ ],
306
+ "shape": [
307
+ {
308
+ "kind": "dynamic",
309
+ "name": "batch"
310
+ },
311
+ {
312
+ "kind": "dynamic",
313
+ "name": "sequence"
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ "name": "attention_mask",
319
+ "dtype": "int64",
320
+ "axes": [
321
+ "batch",
322
+ "sequence"
323
+ ],
324
+ "shape": [
325
+ {
326
+ "kind": "dynamic",
327
+ "name": "batch"
328
+ },
329
+ {
330
+ "kind": "dynamic",
331
+ "name": "sequence"
332
+ }
333
+ ]
334
+ }
335
+ ],
336
+ "outputs": [
337
+ {
338
+ "name": "logits",
339
+ "dtype": "float32",
340
+ "axes": [
341
+ "batch",
342
+ "sequence",
343
+ "labels"
344
+ ],
345
+ "shape": [
346
+ {
347
+ "kind": "dynamic",
348
+ "name": "batch"
349
+ },
350
+ {
351
+ "kind": "dynamic",
352
+ "name": "sequence"
353
+ },
354
+ {
355
+ "kind": "static",
356
+ "value": 76
357
+ }
358
+ ]
359
+ }
360
+ ],
361
+ "operators": [
362
+ "Constant",
363
+ "Cast",
364
+ "Shape",
365
+ "Gather",
366
+ "ConstantOfShape",
367
+ "Flatten",
368
+ "LayerNormalization",
369
+ "DynamicQuantizeLinear",
370
+ "Unsqueeze",
371
+ "Range",
372
+ "Mul",
373
+ "MatMulInteger",
374
+ "Concat",
375
+ "Reshape",
376
+ "Split",
377
+ "Squeeze",
378
+ "GreaterOrEqual",
379
+ "Sub",
380
+ "Transpose",
381
+ "Abs",
382
+ "Add",
383
+ "Equal",
384
+ "And",
385
+ "LessOrEqual",
386
+ "Where",
387
+ "Div",
388
+ "Expand",
389
+ "MatMul",
390
+ "Slice",
391
+ "Neg",
392
+ "Cos",
393
+ "Sin",
394
+ "Softmax",
395
+ "IsNaN",
396
+ "Erf",
397
+ "Sigmoid"
398
+ ],
399
+ "unsupported_ops": [
400
+ "Flatten",
401
+ "DynamicQuantizeLinear",
402
+ "MatMulInteger",
403
+ "GreaterOrEqual",
404
+ "Abs",
405
+ "LessOrEqual",
406
+ "Cos",
407
+ "Sin",
408
+ "IsNaN"
409
+ ],
410
+ "warnings": [
411
+ "Flatten is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
412
+ "DynamicQuantizeLinear is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
413
+ "MatMulInteger is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
414
+ "GreaterOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
415
+ "Abs is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
416
+ "LessOrEqual is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
417
+ "Cos is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
418
+ "Sin is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set",
419
+ "IsNaN is not in the Android ONNX Runtime Mobile NNAPI/XNNPACK safe set"
420
+ ]
421
+ }
422
+ },
423
+ {
424
+ "format": "ort-android",
425
+ "path": "model.ort",
426
+ "precision": "float32",
427
+ "metadata": {
428
+ "format": "ort-android",
429
+ "profile": "android",
430
+ "source_onnx_path": "model.onnx",
431
+ "optimization_style": "Fixed",
432
+ "target_platform": "arm",
433
+ "op_config_type": "required_operators_and_types",
434
+ "enable_type_reduction": true,
435
+ "ort_path": "model.ort",
436
+ "op_config_path": "model.required_operators_and_types.config",
437
+ "operators": [
438
+ "Shape",
439
+ "Constant",
440
+ "Gather",
441
+ "Cast",
442
+ "Range",
443
+ "Unsqueeze",
444
+ "LayerNormalization",
445
+ "ConstantOfShape",
446
+ "GreaterOrEqual",
447
+ "And",
448
+ "Flatten",
449
+ "Mul",
450
+ "Add",
451
+ "Reshape",
452
+ "Concat",
453
+ "Equal",
454
+ "Where",
455
+ "Expand",
456
+ "Sub",
457
+ "Abs",
458
+ "LessOrEqual",
459
+ "MatMul",
460
+ "Transpose",
461
+ "Cos",
462
+ "Sin",
463
+ "Split",
464
+ "Squeeze",
465
+ "Div",
466
+ "Slice",
467
+ "Neg",
468
+ "Softmax",
469
+ "IsNaN",
470
+ "Erf",
471
+ "Sigmoid"
472
+ ],
473
+ "opset": 18
474
+ }
475
+ }
476
+ ],
477
+ "minimum_opset": 18,
478
+ "max_sequence_length": 512,
479
+ "dynamic_shapes": {
480
+ "batch_axis": "dynamic",
481
+ "sequence_axis": "dynamic",
482
+ "shape_buckets": {
483
+ "strategy": "next_configured_bucket_or_exact",
484
+ "axes": {
485
+ "input": [
486
+ "batch",
487
+ "sequence"
488
+ ],
489
+ "output": [
490
+ "batch",
491
+ "sequence"
492
+ ]
493
+ },
494
+ "buckets": [
495
+ 8,
496
+ 16,
497
+ 32,
498
+ 64,
499
+ 128,
500
+ 256,
501
+ 512,
502
+ 1024,
503
+ 2048
504
+ ],
505
+ "min_length": 8,
506
+ "max_length": 2048,
507
+ "overflow": "exact_length"
508
+ }
509
+ },
510
+ "optimization": {
511
+ "enabled": false,
512
+ "minimum_opset": 18
513
+ },
514
+ "validation": {},
515
+ "operator_fallbacks": [],
516
+ "tokenizer": {
517
+ "path": ".",
518
+ "files": [
519
+ "tokenizer.json",
520
+ "tokenizer_config.json"
521
+ ]
522
+ }
523
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "is_local": false,
6
+ "local_files_only": false,
7
+ "mask_token": "[MASK]",
8
+ "max_length": 512,
9
+ "model_input_names": [
10
+ "input_ids",
11
+ "attention_mask"
12
+ ],
13
+ "model_max_length": 8192,
14
+ "pad_token": "[PAD]",
15
+ "sep_token": "[SEP]",
16
+ "stride": 0,
17
+ "tokenizer_class": "TokenizersBackend",
18
+ "truncation_side": "right",
19
+ "truncation_strategy": "longest_first",
20
+ "unk_token": "[UNK]"
21
+ }