Safetensors
Karthi6559 commited on
Commit
d758b66
·
verified ·
1 Parent(s): 312ffb5

Upload folder using huggingface_hub

Browse files
best/config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "allow",
24
+ "1": "block"
25
+ },
26
+ "initializer_cutoff_factor": 2.0,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 1152,
29
+ "label2id": {
30
+ "allow": 0,
31
+ "block": 1
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "layer_types": [
35
+ "full_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "full_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "full_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "full_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "full_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "full_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "full_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "full_attention"
57
+ ],
58
+ "local_attention": 128,
59
+ "max_position_embeddings": 8192,
60
+ "mlp_bias": false,
61
+ "mlp_dropout": 0.0,
62
+ "model_type": "modernbert",
63
+ "norm_bias": false,
64
+ "norm_eps": 1e-05,
65
+ "num_attention_heads": 12,
66
+ "num_hidden_layers": 22,
67
+ "pad_token_id": 50283,
68
+ "position_embedding_type": "absolute",
69
+ "rope_parameters": {
70
+ "full_attention": {
71
+ "rope_theta": 160000.0,
72
+ "rope_type": "default"
73
+ },
74
+ "sliding_attention": {
75
+ "rope_theta": 10000.0,
76
+ "rope_type": "default"
77
+ }
78
+ },
79
+ "sep_token_id": 50282,
80
+ "sparse_pred_ignore_index": -100,
81
+ "sparse_prediction": false,
82
+ "tie_word_embeddings": true,
83
+ "transformers_version": "5.22.1",
84
+ "use_cache": false,
85
+ "vocab_size": 50368
86
+ }
best/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e426b54c87ebe41018360d3e7abec0ff809405287a6900d6fb6321d5555efdd1
3
+ size 598439784
best/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
best/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
+ }
best/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18fdc23b31adbd158c59fb823745e24dcb88a190a458e4fccf5f2c833b1a7495
3
+ size 5201
metrics.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "threshold": 0.05,
3
+ "val": {
4
+ "overall": {
5
+ "precision": 0.6798245614035088,
6
+ "recall": 0.7828282828282829,
7
+ "f1": 0.7276995305164319,
8
+ "auc": 0.8525705164856108
9
+ },
10
+ "without_intent_dependent": {
11
+ "precision": 0.6798245614035088,
12
+ "recall": 0.9117647058823529,
13
+ "f1": 0.7788944723618091,
14
+ "auc": 0.9312708102108769
15
+ },
16
+ "recall_by_cwe": {
17
+ "CWE-22": {
18
+ "n": 29,
19
+ "recall": 0.8620689655172413
20
+ },
21
+ "CWE-295": {
22
+ "n": 21,
23
+ "recall": 0.8571428571428571
24
+ },
25
+ "CWE-502": {
26
+ "n": 30,
27
+ "recall": 1.0
28
+ },
29
+ "CWE-732": {
30
+ "n": 28,
31
+ "recall": 0.0
32
+ },
33
+ "CWE-78": {
34
+ "n": 30,
35
+ "recall": 0.9666666666666667
36
+ },
37
+ "CWE-798": {
38
+ "n": 30,
39
+ "recall": 0.7666666666666667
40
+ },
41
+ "CWE-89": {
42
+ "n": 30,
43
+ "recall": 1.0
44
+ }
45
+ },
46
+ "false_positive_rate_on_hard_negatives": 0.10778443113772455
47
+ },
48
+ "test_heldout": {
49
+ "overall": {
50
+ "precision": 0.6121883656509696,
51
+ "recall": 0.8339622641509434,
52
+ "f1": 0.7060702875399361,
53
+ "auc": 0.8603773584905661
54
+ },
55
+ "without_intent_dependent": {
56
+ "precision": 0.6121883656509696,
57
+ "recall": 0.9404255319148936,
58
+ "f1": 0.7416107382550335,
59
+ "auc": 0.9437290941066934
60
+ },
61
+ "recall_by_cwe": {
62
+ "CWE-22": {
63
+ "n": 30,
64
+ "recall": 1.0
65
+ },
66
+ "CWE-295": {
67
+ "n": 29,
68
+ "recall": 0.5172413793103449
69
+ },
70
+ "CWE-327": {
71
+ "n": 30,
72
+ "recall": 1.0
73
+ },
74
+ "CWE-502": {
75
+ "n": 28,
76
+ "recall": 1.0
77
+ },
78
+ "CWE-732": {
79
+ "n": 30,
80
+ "recall": 0.0
81
+ },
82
+ "CWE-78": {
83
+ "n": 30,
84
+ "recall": 1.0
85
+ },
86
+ "CWE-798": {
87
+ "n": 30,
88
+ "recall": 1.0
89
+ },
90
+ "CWE-89": {
91
+ "n": 30,
92
+ "recall": 1.0
93
+ },
94
+ "CWE-95": {
95
+ "n": 28,
96
+ "recall": 1.0
97
+ }
98
+ },
99
+ "false_positive_rate_on_hard_negatives": 0.42788461538461536
100
+ },
101
+ "test_iid": {
102
+ "overall": {
103
+ "precision": 1.0,
104
+ "recall": 0.9253731343283582,
105
+ "f1": 0.9612403100775194,
106
+ "auc": 0.9973317768698408
107
+ },
108
+ "without_intent_dependent": {
109
+ "precision": 1.0,
110
+ "recall": 1.0,
111
+ "f1": 1.0,
112
+ "auc": 1.0
113
+ },
114
+ "recall_by_cwe": {
115
+ "CWE-22": {
116
+ "n": 11,
117
+ "recall": 1.0
118
+ },
119
+ "CWE-295": {
120
+ "n": 6,
121
+ "recall": 1.0
122
+ },
123
+ "CWE-327": {
124
+ "n": 5,
125
+ "recall": 1.0
126
+ },
127
+ "CWE-502": {
128
+ "n": 3,
129
+ "recall": 1.0
130
+ },
131
+ "CWE-732": {
132
+ "n": 6,
133
+ "recall": 0.16666666666666666
134
+ },
135
+ "CWE-78": {
136
+ "n": 5,
137
+ "recall": 1.0
138
+ },
139
+ "CWE-798": {
140
+ "n": 10,
141
+ "recall": 1.0
142
+ },
143
+ "CWE-89": {
144
+ "n": 12,
145
+ "recall": 1.0
146
+ },
147
+ "CWE-95": {
148
+ "n": 9,
149
+ "recall": 1.0
150
+ }
151
+ },
152
+ "false_positive_rate_on_hard_negatives": 0.0
153
+ }
154
+ }