MaziyarPanahi commited on
Commit
5e96d1d
·
verified ·
1 Parent(s): 4a22d3a

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-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-BioClinicalModern-Base-149M-v1-onnx-android` |
19
+ | Family | PII |
20
+ | Task | token-classification |
21
+ | Languages | en |
22
+ | Tier | Base |
23
+ | Parameters | 149M (149,000,000) |
24
+ | Architecture | modernbert |
25
+ | Base model | OpenMed/OpenMed-PII-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:0be39211f0edb3be26f92b5cc8a69ec52c1ca8979753d55f7356adfaa8d5bb9c` |
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
+ `account_number`, `age`, `api_key`, `bank_routing_number`, `biometric_identifier`, `blood_type`, `certificate_license_number`, `city`, `company_name`, `coordinate`, `country`, `county`, `credit_debit_card`, `customer_id`, `cvv`, `date`, `date_of_birth`, `date_time`, `device_identifier`, `education_level`, `email`, `employee_id`, `employment_status`, `fax_number`, `first_name`, `gender`, `health_plan_beneficiary_number`, `http_cookie`, `ipv4`, `ipv6`, `language`, `last_name`, `license_plate`, `mac_address`, `medical_record_number`, `occupation`, `password`, `phone_number`, `pin`, `political_view`, `postcode`, `race_ethnicity`, `religious_belief`, `sexuality`, `ssn`, `state`, `street_address`, `swift_bic`, `tax_id`, `time`, `unique_id`, `url`, `user_name`, `vehicle_identifier`
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,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-account_number",
14
+ "2": "B-age",
15
+ "3": "B-api_key",
16
+ "4": "B-bank_routing_number",
17
+ "5": "B-biometric_identifier",
18
+ "6": "B-blood_type",
19
+ "7": "B-certificate_license_number",
20
+ "8": "B-city",
21
+ "9": "B-company_name",
22
+ "10": "B-coordinate",
23
+ "11": "B-country",
24
+ "12": "B-county",
25
+ "13": "B-credit_debit_card",
26
+ "14": "B-customer_id",
27
+ "15": "B-cvv",
28
+ "16": "B-date",
29
+ "17": "B-date_of_birth",
30
+ "18": "B-date_time",
31
+ "19": "B-device_identifier",
32
+ "20": "B-education_level",
33
+ "21": "B-email",
34
+ "22": "B-employee_id",
35
+ "23": "B-employment_status",
36
+ "24": "B-fax_number",
37
+ "25": "B-first_name",
38
+ "26": "B-gender",
39
+ "27": "B-health_plan_beneficiary_number",
40
+ "28": "B-http_cookie",
41
+ "29": "B-ipv4",
42
+ "30": "B-ipv6",
43
+ "31": "B-language",
44
+ "32": "B-last_name",
45
+ "33": "B-license_plate",
46
+ "34": "B-mac_address",
47
+ "35": "B-medical_record_number",
48
+ "36": "B-occupation",
49
+ "37": "B-password",
50
+ "38": "B-phone_number",
51
+ "39": "B-pin",
52
+ "40": "B-political_view",
53
+ "41": "B-postcode",
54
+ "42": "B-race_ethnicity",
55
+ "43": "B-religious_belief",
56
+ "44": "B-sexuality",
57
+ "45": "B-ssn",
58
+ "46": "B-state",
59
+ "47": "B-street_address",
60
+ "48": "B-swift_bic",
61
+ "49": "B-tax_id",
62
+ "50": "B-time",
63
+ "51": "B-unique_id",
64
+ "52": "B-url",
65
+ "53": "B-user_name",
66
+ "54": "B-vehicle_identifier",
67
+ "55": "I-account_number",
68
+ "56": "I-api_key",
69
+ "57": "I-biometric_identifier",
70
+ "58": "I-blood_type",
71
+ "59": "I-certificate_license_number",
72
+ "60": "I-city",
73
+ "61": "I-company_name",
74
+ "62": "I-coordinate",
75
+ "63": "I-country",
76
+ "64": "I-county",
77
+ "65": "I-credit_debit_card",
78
+ "66": "I-customer_id",
79
+ "67": "I-date",
80
+ "68": "I-date_of_birth",
81
+ "69": "I-date_time",
82
+ "70": "I-device_identifier",
83
+ "71": "I-education_level",
84
+ "72": "I-email",
85
+ "73": "I-employee_id",
86
+ "74": "I-employment_status",
87
+ "75": "I-fax_number",
88
+ "76": "I-first_name",
89
+ "77": "I-gender",
90
+ "78": "I-health_plan_beneficiary_number",
91
+ "79": "I-http_cookie",
92
+ "80": "I-ipv4",
93
+ "81": "I-ipv6",
94
+ "82": "I-language",
95
+ "83": "I-last_name",
96
+ "84": "I-license_plate",
97
+ "85": "I-mac_address",
98
+ "86": "I-medical_record_number",
99
+ "87": "I-occupation",
100
+ "88": "I-password",
101
+ "89": "I-phone_number",
102
+ "90": "I-pin",
103
+ "91": "I-political_view",
104
+ "92": "I-postcode",
105
+ "93": "I-race_ethnicity",
106
+ "94": "I-religious_belief",
107
+ "95": "I-sexuality",
108
+ "96": "I-ssn",
109
+ "97": "I-state",
110
+ "98": "I-street_address",
111
+ "99": "I-swift_bic",
112
+ "100": "I-tax_id",
113
+ "101": "I-time",
114
+ "102": "I-unique_id",
115
+ "103": "I-url",
116
+ "104": "I-user_name",
117
+ "105": "I-vehicle_identifier"
118
+ },
119
+ "label2id": {
120
+ "B-account_number": 1,
121
+ "B-age": 2,
122
+ "B-api_key": 3,
123
+ "B-bank_routing_number": 4,
124
+ "B-biometric_identifier": 5,
125
+ "B-blood_type": 6,
126
+ "B-certificate_license_number": 7,
127
+ "B-city": 8,
128
+ "B-company_name": 9,
129
+ "B-coordinate": 10,
130
+ "B-country": 11,
131
+ "B-county": 12,
132
+ "B-credit_debit_card": 13,
133
+ "B-customer_id": 14,
134
+ "B-cvv": 15,
135
+ "B-date": 16,
136
+ "B-date_of_birth": 17,
137
+ "B-date_time": 18,
138
+ "B-device_identifier": 19,
139
+ "B-education_level": 20,
140
+ "B-email": 21,
141
+ "B-employee_id": 22,
142
+ "B-employment_status": 23,
143
+ "B-fax_number": 24,
144
+ "B-first_name": 25,
145
+ "B-gender": 26,
146
+ "B-health_plan_beneficiary_number": 27,
147
+ "B-http_cookie": 28,
148
+ "B-ipv4": 29,
149
+ "B-ipv6": 30,
150
+ "B-language": 31,
151
+ "B-last_name": 32,
152
+ "B-license_plate": 33,
153
+ "B-mac_address": 34,
154
+ "B-medical_record_number": 35,
155
+ "B-occupation": 36,
156
+ "B-password": 37,
157
+ "B-phone_number": 38,
158
+ "B-pin": 39,
159
+ "B-political_view": 40,
160
+ "B-postcode": 41,
161
+ "B-race_ethnicity": 42,
162
+ "B-religious_belief": 43,
163
+ "B-sexuality": 44,
164
+ "B-ssn": 45,
165
+ "B-state": 46,
166
+ "B-street_address": 47,
167
+ "B-swift_bic": 48,
168
+ "B-tax_id": 49,
169
+ "B-time": 50,
170
+ "B-unique_id": 51,
171
+ "B-url": 52,
172
+ "B-user_name": 53,
173
+ "B-vehicle_identifier": 54,
174
+ "I-account_number": 55,
175
+ "I-api_key": 56,
176
+ "I-biometric_identifier": 57,
177
+ "I-blood_type": 58,
178
+ "I-certificate_license_number": 59,
179
+ "I-city": 60,
180
+ "I-company_name": 61,
181
+ "I-coordinate": 62,
182
+ "I-country": 63,
183
+ "I-county": 64,
184
+ "I-credit_debit_card": 65,
185
+ "I-customer_id": 66,
186
+ "I-date": 67,
187
+ "I-date_of_birth": 68,
188
+ "I-date_time": 69,
189
+ "I-device_identifier": 70,
190
+ "I-education_level": 71,
191
+ "I-email": 72,
192
+ "I-employee_id": 73,
193
+ "I-employment_status": 74,
194
+ "I-fax_number": 75,
195
+ "I-first_name": 76,
196
+ "I-gender": 77,
197
+ "I-health_plan_beneficiary_number": 78,
198
+ "I-http_cookie": 79,
199
+ "I-ipv4": 80,
200
+ "I-ipv6": 81,
201
+ "I-language": 82,
202
+ "I-last_name": 83,
203
+ "I-license_plate": 84,
204
+ "I-mac_address": 85,
205
+ "I-medical_record_number": 86,
206
+ "I-occupation": 87,
207
+ "I-password": 88,
208
+ "I-phone_number": 89,
209
+ "I-pin": 90,
210
+ "I-political_view": 91,
211
+ "I-postcode": 92,
212
+ "I-race_ethnicity": 93,
213
+ "I-religious_belief": 94,
214
+ "I-sexuality": 95,
215
+ "I-ssn": 96,
216
+ "I-state": 97,
217
+ "I-street_address": 98,
218
+ "I-swift_bic": 99,
219
+ "I-tax_id": 100,
220
+ "I-time": 101,
221
+ "I-unique_id": 102,
222
+ "I-url": 103,
223
+ "I-user_name": 104,
224
+ "I-vehicle_identifier": 105,
225
+ "O": 0
226
+ },
227
+ "problem_type": null,
228
+ "vocab_size": 50368,
229
+ "hidden_size": 768,
230
+ "intermediate_size": 1152,
231
+ "num_hidden_layers": 22,
232
+ "num_attention_heads": 12,
233
+ "hidden_activation": "gelu",
234
+ "max_position_embeddings": 8192,
235
+ "initializer_range": 0.02,
236
+ "initializer_cutoff_factor": 2.0,
237
+ "norm_eps": 1e-05,
238
+ "norm_bias": false,
239
+ "pad_token_id": 50283,
240
+ "eos_token_id": null,
241
+ "bos_token_id": null,
242
+ "cls_token_id": 50281,
243
+ "sep_token_id": 50282,
244
+ "attention_bias": false,
245
+ "attention_dropout": 0.0,
246
+ "layer_types": [
247
+ "full_attention",
248
+ "sliding_attention",
249
+ "sliding_attention",
250
+ "full_attention",
251
+ "sliding_attention",
252
+ "sliding_attention",
253
+ "full_attention",
254
+ "sliding_attention",
255
+ "sliding_attention",
256
+ "full_attention",
257
+ "sliding_attention",
258
+ "sliding_attention",
259
+ "full_attention",
260
+ "sliding_attention",
261
+ "sliding_attention",
262
+ "full_attention",
263
+ "sliding_attention",
264
+ "sliding_attention",
265
+ "full_attention",
266
+ "sliding_attention",
267
+ "sliding_attention",
268
+ "full_attention"
269
+ ],
270
+ "rope_parameters": {
271
+ "sliding_attention": {
272
+ "rope_type": "default",
273
+ "rope_theta": 10000.0
274
+ },
275
+ "full_attention": {
276
+ "rope_type": "default",
277
+ "rope_theta": 160000.0
278
+ }
279
+ },
280
+ "local_attention": 128,
281
+ "embedding_dropout": 0.0,
282
+ "mlp_bias": false,
283
+ "mlp_dropout": 0.0,
284
+ "decoder_bias": true,
285
+ "classifier_pooling": "mean",
286
+ "classifier_dropout": 0.0,
287
+ "classifier_bias": false,
288
+ "classifier_activation": "silu",
289
+ "deterministic_flash_attn": false,
290
+ "sparse_prediction": false,
291
+ "sparse_pred_ignore_index": -100,
292
+ "tie_word_embeddings": true,
293
+ "_name_or_path": "OpenMed/OpenMed-PII-BioClinicalModern-Base-149M-v1",
294
+ "global_attn_every_n_layers": 3,
295
+ "gradient_checkpointing": false,
296
+ "layer_norm_eps": 1e-05,
297
+ "model_type": "modernbert",
298
+ "position_embedding_type": "absolute",
299
+ "repad_logits_with_grad": false,
300
+ "output_attentions": false,
301
+ "max_sequence_length": 512
302
+ }
id2label.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "0": "O",
3
+ "1": "B-account_number",
4
+ "2": "B-age",
5
+ "3": "B-api_key",
6
+ "4": "B-bank_routing_number",
7
+ "5": "B-biometric_identifier",
8
+ "6": "B-blood_type",
9
+ "7": "B-certificate_license_number",
10
+ "8": "B-city",
11
+ "9": "B-company_name",
12
+ "10": "B-coordinate",
13
+ "11": "B-country",
14
+ "12": "B-county",
15
+ "13": "B-credit_debit_card",
16
+ "14": "B-customer_id",
17
+ "15": "B-cvv",
18
+ "16": "B-date",
19
+ "17": "B-date_of_birth",
20
+ "18": "B-date_time",
21
+ "19": "B-device_identifier",
22
+ "20": "B-education_level",
23
+ "21": "B-email",
24
+ "22": "B-employee_id",
25
+ "23": "B-employment_status",
26
+ "24": "B-fax_number",
27
+ "25": "B-first_name",
28
+ "26": "B-gender",
29
+ "27": "B-health_plan_beneficiary_number",
30
+ "28": "B-http_cookie",
31
+ "29": "B-ipv4",
32
+ "30": "B-ipv6",
33
+ "31": "B-language",
34
+ "32": "B-last_name",
35
+ "33": "B-license_plate",
36
+ "34": "B-mac_address",
37
+ "35": "B-medical_record_number",
38
+ "36": "B-occupation",
39
+ "37": "B-password",
40
+ "38": "B-phone_number",
41
+ "39": "B-pin",
42
+ "40": "B-political_view",
43
+ "41": "B-postcode",
44
+ "42": "B-race_ethnicity",
45
+ "43": "B-religious_belief",
46
+ "44": "B-sexuality",
47
+ "45": "B-ssn",
48
+ "46": "B-state",
49
+ "47": "B-street_address",
50
+ "48": "B-swift_bic",
51
+ "49": "B-tax_id",
52
+ "50": "B-time",
53
+ "51": "B-unique_id",
54
+ "52": "B-url",
55
+ "53": "B-user_name",
56
+ "54": "B-vehicle_identifier",
57
+ "55": "I-account_number",
58
+ "56": "I-api_key",
59
+ "57": "I-biometric_identifier",
60
+ "58": "I-blood_type",
61
+ "59": "I-certificate_license_number",
62
+ "60": "I-city",
63
+ "61": "I-company_name",
64
+ "62": "I-coordinate",
65
+ "63": "I-country",
66
+ "64": "I-county",
67
+ "65": "I-credit_debit_card",
68
+ "66": "I-customer_id",
69
+ "67": "I-date",
70
+ "68": "I-date_of_birth",
71
+ "69": "I-date_time",
72
+ "70": "I-device_identifier",
73
+ "71": "I-education_level",
74
+ "72": "I-email",
75
+ "73": "I-employee_id",
76
+ "74": "I-employment_status",
77
+ "75": "I-fax_number",
78
+ "76": "I-first_name",
79
+ "77": "I-gender",
80
+ "78": "I-health_plan_beneficiary_number",
81
+ "79": "I-http_cookie",
82
+ "80": "I-ipv4",
83
+ "81": "I-ipv6",
84
+ "82": "I-language",
85
+ "83": "I-last_name",
86
+ "84": "I-license_plate",
87
+ "85": "I-mac_address",
88
+ "86": "I-medical_record_number",
89
+ "87": "I-occupation",
90
+ "88": "I-password",
91
+ "89": "I-phone_number",
92
+ "90": "I-pin",
93
+ "91": "I-political_view",
94
+ "92": "I-postcode",
95
+ "93": "I-race_ethnicity",
96
+ "94": "I-religious_belief",
97
+ "95": "I-sexuality",
98
+ "96": "I-ssn",
99
+ "97": "I-state",
100
+ "98": "I-street_address",
101
+ "99": "I-swift_bic",
102
+ "100": "I-tax_id",
103
+ "101": "I-time",
104
+ "102": "I-unique_id",
105
+ "103": "I-url",
106
+ "104": "I-user_name",
107
+ "105": "I-vehicle_identifier"
108
+ }
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aec6f61f75259d2c6a1cc152a0e5e6251dda99aef8b64095589fec2038247e50
3
+ size 599463359
model.ort ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:709838591f0a06f896166a42708fd4035b94e2395ad45c95699c0109e56a22ca
3
+ size 599796104
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-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:0e0925b96e55a620f23142b887ee24e48f69f8f1c726a1e1db10db2b3687ab48
3
+ size 300276903
model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eca5141bf5fc60bb83f768e081fb5a5e754ded7272de3175d4d525b10a118b20
3
+ size 266934820
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-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": 106
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": 106
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": 106
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
+ }