ctokx commited on
Commit
2f1da4c
·
verified ·
1 Parent(s): 37bb27c

Add ModernBERT weights, tokenizer, tuned thresholds

Browse files
config.json ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSequenceClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 50281,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 50281,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "float32",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 50282,
18
+ "global_attn_every_n_layers": 3,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "id2label": {
23
+ "0": "T1003.001",
24
+ "1": "T1005",
25
+ "2": "T1012",
26
+ "3": "T1016",
27
+ "4": "T1021.001",
28
+ "5": "T1027",
29
+ "6": "T1033",
30
+ "7": "T1036.005",
31
+ "8": "T1041",
32
+ "9": "T1047",
33
+ "10": "T1053.005",
34
+ "11": "T1055",
35
+ "12": "T1056.001",
36
+ "13": "T1057",
37
+ "14": "T1059.003",
38
+ "15": "T1068",
39
+ "16": "T1070.004",
40
+ "17": "T1071.001",
41
+ "18": "T1072",
42
+ "19": "T1074.001",
43
+ "20": "T1078",
44
+ "21": "T1082",
45
+ "22": "T1083",
46
+ "23": "T1090",
47
+ "24": "T1095",
48
+ "25": "T1105",
49
+ "26": "T1106",
50
+ "27": "T1110",
51
+ "28": "T1112",
52
+ "29": "T1113",
53
+ "30": "T1140",
54
+ "31": "T1190",
55
+ "32": "T1204.002",
56
+ "33": "T1210",
57
+ "34": "T1218.011",
58
+ "35": "T1219",
59
+ "36": "T1484.001",
60
+ "37": "T1518.001",
61
+ "38": "T1543.003",
62
+ "39": "T1547.001",
63
+ "40": "T1548.002",
64
+ "41": "T1552.001",
65
+ "42": "T1562.001",
66
+ "43": "T1564.001",
67
+ "44": "T1566.001",
68
+ "45": "T1569.002",
69
+ "46": "T1570",
70
+ "47": "T1573.001",
71
+ "48": "T1574.002"
72
+ },
73
+ "initializer_cutoff_factor": 2.0,
74
+ "initializer_range": 0.02,
75
+ "intermediate_size": 1152,
76
+ "label2id": {
77
+ "T1003.001": 0,
78
+ "T1005": 1,
79
+ "T1012": 2,
80
+ "T1016": 3,
81
+ "T1021.001": 4,
82
+ "T1027": 5,
83
+ "T1033": 6,
84
+ "T1036.005": 7,
85
+ "T1041": 8,
86
+ "T1047": 9,
87
+ "T1053.005": 10,
88
+ "T1055": 11,
89
+ "T1056.001": 12,
90
+ "T1057": 13,
91
+ "T1059.003": 14,
92
+ "T1068": 15,
93
+ "T1070.004": 16,
94
+ "T1071.001": 17,
95
+ "T1072": 18,
96
+ "T1074.001": 19,
97
+ "T1078": 20,
98
+ "T1082": 21,
99
+ "T1083": 22,
100
+ "T1090": 23,
101
+ "T1095": 24,
102
+ "T1105": 25,
103
+ "T1106": 26,
104
+ "T1110": 27,
105
+ "T1112": 28,
106
+ "T1113": 29,
107
+ "T1140": 30,
108
+ "T1190": 31,
109
+ "T1204.002": 32,
110
+ "T1210": 33,
111
+ "T1218.011": 34,
112
+ "T1219": 35,
113
+ "T1484.001": 36,
114
+ "T1518.001": 37,
115
+ "T1543.003": 38,
116
+ "T1547.001": 39,
117
+ "T1548.002": 40,
118
+ "T1552.001": 41,
119
+ "T1562.001": 42,
120
+ "T1564.001": 43,
121
+ "T1566.001": 44,
122
+ "T1569.002": 45,
123
+ "T1570": 46,
124
+ "T1573.001": 47,
125
+ "T1574.002": 48
126
+ },
127
+ "layer_norm_eps": 1e-05,
128
+ "layer_types": [
129
+ "full_attention",
130
+ "sliding_attention",
131
+ "sliding_attention",
132
+ "full_attention",
133
+ "sliding_attention",
134
+ "sliding_attention",
135
+ "full_attention",
136
+ "sliding_attention",
137
+ "sliding_attention",
138
+ "full_attention",
139
+ "sliding_attention",
140
+ "sliding_attention",
141
+ "full_attention",
142
+ "sliding_attention",
143
+ "sliding_attention",
144
+ "full_attention",
145
+ "sliding_attention",
146
+ "sliding_attention",
147
+ "full_attention",
148
+ "sliding_attention",
149
+ "sliding_attention",
150
+ "full_attention"
151
+ ],
152
+ "local_attention": 128,
153
+ "max_position_embeddings": 8192,
154
+ "mlp_bias": false,
155
+ "mlp_dropout": 0.0,
156
+ "model_type": "modernbert",
157
+ "norm_bias": false,
158
+ "norm_eps": 1e-05,
159
+ "num_attention_heads": 12,
160
+ "num_hidden_layers": 22,
161
+ "pad_token_id": 50283,
162
+ "position_embedding_type": "absolute",
163
+ "problem_type": "multi_label_classification",
164
+ "rope_parameters": {
165
+ "full_attention": {
166
+ "rope_theta": 160000.0,
167
+ "rope_type": "default"
168
+ },
169
+ "sliding_attention": {
170
+ "rope_theta": 10000.0,
171
+ "rope_type": "default"
172
+ }
173
+ },
174
+ "sep_token_id": 50282,
175
+ "sparse_pred_ignore_index": -100,
176
+ "sparse_prediction": false,
177
+ "tie_word_embeddings": true,
178
+ "transformers_version": "5.13.1",
179
+ "vocab_size": 50368
180
+ }
labels.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ "T1003.001",
3
+ "T1005",
4
+ "T1012",
5
+ "T1016",
6
+ "T1021.001",
7
+ "T1027",
8
+ "T1033",
9
+ "T1036.005",
10
+ "T1041",
11
+ "T1047",
12
+ "T1053.005",
13
+ "T1055",
14
+ "T1056.001",
15
+ "T1057",
16
+ "T1059.003",
17
+ "T1068",
18
+ "T1070.004",
19
+ "T1071.001",
20
+ "T1072",
21
+ "T1074.001",
22
+ "T1078",
23
+ "T1082",
24
+ "T1083",
25
+ "T1090",
26
+ "T1095",
27
+ "T1105",
28
+ "T1106",
29
+ "T1110",
30
+ "T1112",
31
+ "T1113",
32
+ "T1140",
33
+ "T1190",
34
+ "T1204.002",
35
+ "T1210",
36
+ "T1218.011",
37
+ "T1219",
38
+ "T1484.001",
39
+ "T1518.001",
40
+ "T1543.003",
41
+ "T1547.001",
42
+ "T1548.002",
43
+ "T1552.001",
44
+ "T1562.001",
45
+ "T1564.001",
46
+ "T1566.001",
47
+ "T1569.002",
48
+ "T1570",
49
+ "T1573.001",
50
+ "T1574.002"
51
+ ]
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f23107c6fd5fb127441a245dba6a15788ef7ad700a561e5deafd582417363b6
3
+ size 598584364
thresholds.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "global": 0.45,
3
+ "per_class": {
4
+ "T1003.001": 0.7,
5
+ "T1005": 0.85,
6
+ "T1012": 0.35,
7
+ "T1016": 0.25,
8
+ "T1021.001": 0.7,
9
+ "T1027": 0.8,
10
+ "T1033": 0.25,
11
+ "T1036.005": 0.15,
12
+ "T1041": 0.4,
13
+ "T1047": 0.45,
14
+ "T1053.005": 0.6,
15
+ "T1055": 0.85,
16
+ "T1056.001": 0.6,
17
+ "T1057": 0.4,
18
+ "T1059.003": 0.6,
19
+ "T1068": 0.15,
20
+ "T1070.004": 0.65,
21
+ "T1071.001": 0.8,
22
+ "T1072": 0.05,
23
+ "T1074.001": 0.2,
24
+ "T1078": 0.65,
25
+ "T1082": 0.95,
26
+ "T1083": 0.95,
27
+ "T1090": 0.85,
28
+ "T1095": 0.6,
29
+ "T1105": 0.85,
30
+ "T1106": 0.7,
31
+ "T1110": 0.35,
32
+ "T1112": 0.9,
33
+ "T1113": 0.15,
34
+ "T1140": 0.75,
35
+ "T1190": 0.3,
36
+ "T1204.002": 0.5,
37
+ "T1210": 0.05,
38
+ "T1218.011": 0.4,
39
+ "T1219": 0.35,
40
+ "T1484.001": 0.2,
41
+ "T1518.001": 0.4,
42
+ "T1543.003": 0.1,
43
+ "T1547.001": 0.55,
44
+ "T1548.002": 0.2,
45
+ "T1552.001": 0.05,
46
+ "T1562.001": 0.75,
47
+ "T1564.001": 0.15,
48
+ "T1566.001": 0.2,
49
+ "T1569.002": 0.25,
50
+ "T1570": 0.8,
51
+ "T1573.001": 0.6,
52
+ "T1574.002": 0.65
53
+ }
54
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 8192,
13
+ "pad_token": "[PAD]",
14
+ "sep_token": "[SEP]",
15
+ "tokenizer_class": "TokenizersBackend",
16
+ "unk_token": "[UNK]"
17
+ }
training_meta.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "answerdotai/ModernBERT-base",
3
+ "split_scheme": "document",
4
+ "epochs": 6,
5
+ "best_epoch": 5,
6
+ "best_dev_macro_f1": 0.4139,
7
+ "best_dev_global_threshold": 0.45,
8
+ "max_length": 256,
9
+ "batch_size": 16,
10
+ "grad_accum": 2,
11
+ "learning_rate": 3e-05,
12
+ "seed": 20260802,
13
+ "n_train": 11668,
14
+ "n_dev": 3134,
15
+ "n_labels": 49
16
+ }