orestisp commited on
Commit
cddaade
·
verified ·
1 Parent(s): bcfa6f3

Upload ModernBertForTokenClassification

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +268 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForTokenClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 2,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 1,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "bfloat16",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 1,
18
+ "global_attn_every_n_layers": 3,
19
+ "global_rope_theta": 160000,
20
+ "gradient_checkpointing": false,
21
+ "hidden_activation": "gelu",
22
+ "hidden_size": 768,
23
+ "id2label": {
24
+ "0": "O",
25
+ "1": "B-account_number",
26
+ "2": "B-age",
27
+ "3": "B-api_key",
28
+ "4": "B-bank_routing_number",
29
+ "5": "B-biometric_identifier",
30
+ "6": "B-blood_type",
31
+ "7": "B-certificate_license_number",
32
+ "8": "B-city",
33
+ "9": "B-company_name",
34
+ "10": "B-coordinate",
35
+ "11": "B-country",
36
+ "12": "B-county",
37
+ "13": "B-credit_debit_card",
38
+ "14": "B-customer_id",
39
+ "15": "B-cvv",
40
+ "16": "B-date",
41
+ "17": "B-date_of_birth",
42
+ "18": "B-date_time",
43
+ "19": "B-device_identifier",
44
+ "20": "B-education_level",
45
+ "21": "B-email",
46
+ "22": "B-employee_id",
47
+ "23": "B-employment_status",
48
+ "24": "B-fax_number",
49
+ "25": "B-first_name",
50
+ "26": "B-gender",
51
+ "27": "B-health_plan_beneficiary_number",
52
+ "28": "B-http_cookie",
53
+ "29": "B-ipv4",
54
+ "30": "B-ipv6",
55
+ "31": "B-language",
56
+ "32": "B-last_name",
57
+ "33": "B-license_plate",
58
+ "34": "B-mac_address",
59
+ "35": "B-medical_record_number",
60
+ "36": "B-occupation",
61
+ "37": "B-password",
62
+ "38": "B-phone_number",
63
+ "39": "B-pin",
64
+ "40": "B-political_view",
65
+ "41": "B-postcode",
66
+ "42": "B-race_ethnicity",
67
+ "43": "B-religious_belief",
68
+ "44": "B-sexuality",
69
+ "45": "B-ssn",
70
+ "46": "B-state",
71
+ "47": "B-street_address",
72
+ "48": "B-swift_bic",
73
+ "49": "B-tax_id",
74
+ "50": "B-time",
75
+ "51": "B-unique_id",
76
+ "52": "B-url",
77
+ "53": "B-user_name",
78
+ "54": "B-vehicle_identifier",
79
+ "55": "I-account_number",
80
+ "56": "I-age",
81
+ "57": "I-api_key",
82
+ "58": "I-bank_routing_number",
83
+ "59": "I-biometric_identifier",
84
+ "60": "I-blood_type",
85
+ "61": "I-certificate_license_number",
86
+ "62": "I-city",
87
+ "63": "I-company_name",
88
+ "64": "I-coordinate",
89
+ "65": "I-country",
90
+ "66": "I-county",
91
+ "67": "I-credit_debit_card",
92
+ "68": "I-customer_id",
93
+ "69": "I-cvv",
94
+ "70": "I-date",
95
+ "71": "I-date_of_birth",
96
+ "72": "I-date_time",
97
+ "73": "I-device_identifier",
98
+ "74": "I-education_level",
99
+ "75": "I-email",
100
+ "76": "I-employee_id",
101
+ "77": "I-employment_status",
102
+ "78": "I-fax_number",
103
+ "79": "I-first_name",
104
+ "80": "I-gender",
105
+ "81": "I-health_plan_beneficiary_number",
106
+ "82": "I-http_cookie",
107
+ "83": "I-ipv4",
108
+ "84": "I-ipv6",
109
+ "85": "I-language",
110
+ "86": "I-last_name",
111
+ "87": "I-license_plate",
112
+ "88": "I-mac_address",
113
+ "89": "I-medical_record_number",
114
+ "90": "I-occupation",
115
+ "91": "I-password",
116
+ "92": "I-phone_number",
117
+ "93": "I-pin",
118
+ "94": "I-political_view",
119
+ "95": "I-postcode",
120
+ "96": "I-race_ethnicity",
121
+ "97": "I-religious_belief",
122
+ "98": "I-sexuality",
123
+ "99": "I-ssn",
124
+ "100": "I-state",
125
+ "101": "I-street_address",
126
+ "102": "I-swift_bic",
127
+ "103": "I-tax_id",
128
+ "104": "I-time",
129
+ "105": "I-unique_id",
130
+ "106": "I-url",
131
+ "107": "I-user_name",
132
+ "108": "I-vehicle_identifier"
133
+ },
134
+ "initializer_cutoff_factor": 2.0,
135
+ "initializer_range": 0.02,
136
+ "intermediate_size": 1152,
137
+ "label2id": {
138
+ "B-account_number": 1,
139
+ "B-age": 2,
140
+ "B-api_key": 3,
141
+ "B-bank_routing_number": 4,
142
+ "B-biometric_identifier": 5,
143
+ "B-blood_type": 6,
144
+ "B-certificate_license_number": 7,
145
+ "B-city": 8,
146
+ "B-company_name": 9,
147
+ "B-coordinate": 10,
148
+ "B-country": 11,
149
+ "B-county": 12,
150
+ "B-credit_debit_card": 13,
151
+ "B-customer_id": 14,
152
+ "B-cvv": 15,
153
+ "B-date": 16,
154
+ "B-date_of_birth": 17,
155
+ "B-date_time": 18,
156
+ "B-device_identifier": 19,
157
+ "B-education_level": 20,
158
+ "B-email": 21,
159
+ "B-employee_id": 22,
160
+ "B-employment_status": 23,
161
+ "B-fax_number": 24,
162
+ "B-first_name": 25,
163
+ "B-gender": 26,
164
+ "B-health_plan_beneficiary_number": 27,
165
+ "B-http_cookie": 28,
166
+ "B-ipv4": 29,
167
+ "B-ipv6": 30,
168
+ "B-language": 31,
169
+ "B-last_name": 32,
170
+ "B-license_plate": 33,
171
+ "B-mac_address": 34,
172
+ "B-medical_record_number": 35,
173
+ "B-occupation": 36,
174
+ "B-password": 37,
175
+ "B-phone_number": 38,
176
+ "B-pin": 39,
177
+ "B-political_view": 40,
178
+ "B-postcode": 41,
179
+ "B-race_ethnicity": 42,
180
+ "B-religious_belief": 43,
181
+ "B-sexuality": 44,
182
+ "B-ssn": 45,
183
+ "B-state": 46,
184
+ "B-street_address": 47,
185
+ "B-swift_bic": 48,
186
+ "B-tax_id": 49,
187
+ "B-time": 50,
188
+ "B-unique_id": 51,
189
+ "B-url": 52,
190
+ "B-user_name": 53,
191
+ "B-vehicle_identifier": 54,
192
+ "I-account_number": 55,
193
+ "I-age": 56,
194
+ "I-api_key": 57,
195
+ "I-bank_routing_number": 58,
196
+ "I-biometric_identifier": 59,
197
+ "I-blood_type": 60,
198
+ "I-certificate_license_number": 61,
199
+ "I-city": 62,
200
+ "I-company_name": 63,
201
+ "I-coordinate": 64,
202
+ "I-country": 65,
203
+ "I-county": 66,
204
+ "I-credit_debit_card": 67,
205
+ "I-customer_id": 68,
206
+ "I-cvv": 69,
207
+ "I-date": 70,
208
+ "I-date_of_birth": 71,
209
+ "I-date_time": 72,
210
+ "I-device_identifier": 73,
211
+ "I-education_level": 74,
212
+ "I-email": 75,
213
+ "I-employee_id": 76,
214
+ "I-employment_status": 77,
215
+ "I-fax_number": 78,
216
+ "I-first_name": 79,
217
+ "I-gender": 80,
218
+ "I-health_plan_beneficiary_number": 81,
219
+ "I-http_cookie": 82,
220
+ "I-ipv4": 83,
221
+ "I-ipv6": 84,
222
+ "I-language": 85,
223
+ "I-last_name": 86,
224
+ "I-license_plate": 87,
225
+ "I-mac_address": 88,
226
+ "I-medical_record_number": 89,
227
+ "I-occupation": 90,
228
+ "I-password": 91,
229
+ "I-phone_number": 92,
230
+ "I-pin": 93,
231
+ "I-political_view": 94,
232
+ "I-postcode": 95,
233
+ "I-race_ethnicity": 96,
234
+ "I-religious_belief": 97,
235
+ "I-sexuality": 98,
236
+ "I-ssn": 99,
237
+ "I-state": 100,
238
+ "I-street_address": 101,
239
+ "I-swift_bic": 102,
240
+ "I-tax_id": 103,
241
+ "I-time": 104,
242
+ "I-unique_id": 105,
243
+ "I-url": 106,
244
+ "I-user_name": 107,
245
+ "I-vehicle_identifier": 108,
246
+ "O": 0
247
+ },
248
+ "layer_norm_eps": 1e-05,
249
+ "local_attention": 128,
250
+ "local_rope_theta": 160000,
251
+ "mask_token_id": 4,
252
+ "max_position_embeddings": 8192,
253
+ "mlp_bias": false,
254
+ "mlp_dropout": 0.0,
255
+ "model_type": "modernbert",
256
+ "norm_bias": false,
257
+ "norm_eps": 1e-05,
258
+ "num_attention_heads": 12,
259
+ "num_hidden_layers": 22,
260
+ "pad_token_id": 0,
261
+ "position_embedding_type": "sans_pos",
262
+ "repad_logits_with_grad": false,
263
+ "sep_token_id": 1,
264
+ "sparse_pred_ignore_index": -100,
265
+ "sparse_prediction": false,
266
+ "transformers_version": "4.57.6",
267
+ "vocab_size": 256000
268
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d0d2a271893e307dacb1cd3341cd814ec07c24c8ab5ab7b588987c82ee56504
3
+ size 615242450