ZOHRA585 commited on
Commit
c8bdeb5
·
verified ·
1 Parent(s): c277a3c

Upload folder using huggingface_hub

Browse files
checkpoint-1316/config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "BENIGN",
16
+ "1": "MALICIOUS"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "is_decoder": false,
21
+ "label2id": {
22
+ "BENIGN": 0,
23
+ "MALICIOUS": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 1,
31
+ "problem_type": "single_label_classification",
32
+ "tie_word_embeddings": true,
33
+ "transformers_version": "5.0.0",
34
+ "type_vocab_size": 1,
35
+ "use_cache": false,
36
+ "vocab_size": 50265
37
+ }
checkpoint-1316/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a44a68b31eff6c0bcd96ce5a29a5b0aaed9a7b1d4cd30e1240248bfea25358dc
3
+ size 498612800
checkpoint-1316/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1f7fceabea4fdc2b48d9f2f71208d2b1b0f595630047c8bc21b3541f165712d
3
+ size 997348747
checkpoint-1316/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:691e646269d56ed928e5b51b1f0e4ff013040b3910d238e7474d2500e28b403d
3
+ size 14645
checkpoint-1316/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d57f046600043aaf623f83c45c9de68d54e1c6935036b82a42cde8a06467f41b
3
+ size 1465
checkpoint-1316/trainer_state.json ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 1316,
3
+ "best_metric": 0.987228321756666,
4
+ "best_model_checkpoint": "/kaggle/working/skillguard/models/roberta/checkpoint-1316",
5
+ "epoch": 4.0,
6
+ "eval_steps": 500,
7
+ "global_step": 1316,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.303951367781155,
14
+ "grad_norm": 26.459680557250977,
15
+ "learning_rate": 1.967663702506063e-05,
16
+ "loss": 0.8790406799316406,
17
+ "step": 100
18
+ },
19
+ {
20
+ "epoch": 0.60790273556231,
21
+ "grad_norm": 37.875850677490234,
22
+ "learning_rate": 1.8059822150363784e-05,
23
+ "loss": 0.20122947692871093,
24
+ "step": 200
25
+ },
26
+ {
27
+ "epoch": 0.9118541033434651,
28
+ "grad_norm": 0.6300860047340393,
29
+ "learning_rate": 1.6443007275666938e-05,
30
+ "loss": 0.14148117065429688,
31
+ "step": 300
32
+ },
33
+ {
34
+ "epoch": 1.0,
35
+ "eval_accuracy": 0.9817777777777777,
36
+ "eval_f1": 0.9816472694717995,
37
+ "eval_loss": 0.11642087250947952,
38
+ "eval_precision": 0.9887285843101894,
39
+ "eval_recall": 0.9746666666666667,
40
+ "eval_runtime": 38.768,
41
+ "eval_samples_per_second": 116.075,
42
+ "eval_steps_per_second": 0.929,
43
+ "step": 329
44
+ },
45
+ {
46
+ "epoch": 1.21580547112462,
47
+ "grad_norm": 44.39780807495117,
48
+ "learning_rate": 1.482619240097009e-05,
49
+ "loss": 0.08979954719543456,
50
+ "step": 400
51
+ },
52
+ {
53
+ "epoch": 1.5197568389057752,
54
+ "grad_norm": 8.478060722351074,
55
+ "learning_rate": 1.3209377526273244e-05,
56
+ "loss": 0.06728220462799073,
57
+ "step": 500
58
+ },
59
+ {
60
+ "epoch": 1.8237082066869301,
61
+ "grad_norm": 15.931158065795898,
62
+ "learning_rate": 1.1592562651576396e-05,
63
+ "loss": 0.07970011711120606,
64
+ "step": 600
65
+ },
66
+ {
67
+ "epoch": 2.0,
68
+ "eval_accuracy": 0.9811111111111112,
69
+ "eval_f1": 0.9808169713382984,
70
+ "eval_loss": 0.16507814824581146,
71
+ "eval_precision": 0.9963319578175149,
72
+ "eval_recall": 0.9657777777777777,
73
+ "eval_runtime": 38.6568,
74
+ "eval_samples_per_second": 116.409,
75
+ "eval_steps_per_second": 0.931,
76
+ "step": 658
77
+ },
78
+ {
79
+ "epoch": 2.127659574468085,
80
+ "grad_norm": 0.06346142292022705,
81
+ "learning_rate": 9.975747776879548e-06,
82
+ "loss": 0.06562654018402099,
83
+ "step": 700
84
+ },
85
+ {
86
+ "epoch": 2.43161094224924,
87
+ "grad_norm": 0.021810326725244522,
88
+ "learning_rate": 8.3589329021827e-06,
89
+ "loss": 0.037502543926239015,
90
+ "step": 800
91
+ },
92
+ {
93
+ "epoch": 2.735562310030395,
94
+ "grad_norm": 0.42783406376838684,
95
+ "learning_rate": 6.7421180274858535e-06,
96
+ "loss": 0.041276140213012694,
97
+ "step": 900
98
+ },
99
+ {
100
+ "epoch": 3.0,
101
+ "eval_accuracy": 0.9871111111111112,
102
+ "eval_f1": 0.9870013446884806,
103
+ "eval_loss": 0.14181749522686005,
104
+ "eval_precision": 0.9954792043399638,
105
+ "eval_recall": 0.9786666666666667,
106
+ "eval_runtime": 38.725,
107
+ "eval_samples_per_second": 116.204,
108
+ "eval_steps_per_second": 0.93,
109
+ "step": 987
110
+ },
111
+ {
112
+ "epoch": 3.0395136778115504,
113
+ "grad_norm": 5.668140888214111,
114
+ "learning_rate": 5.125303152789006e-06,
115
+ "loss": 0.024772546291351318,
116
+ "step": 1000
117
+ },
118
+ {
119
+ "epoch": 3.3434650455927053,
120
+ "grad_norm": 1.2623281478881836,
121
+ "learning_rate": 3.5084882780921584e-06,
122
+ "loss": 0.017916127443313598,
123
+ "step": 1100
124
+ },
125
+ {
126
+ "epoch": 3.6474164133738602,
127
+ "grad_norm": 2.460536479949951,
128
+ "learning_rate": 1.8916734033953113e-06,
129
+ "loss": 0.0251471209526062,
130
+ "step": 1200
131
+ },
132
+ {
133
+ "epoch": 3.951367781155015,
134
+ "grad_norm": 0.019897326827049255,
135
+ "learning_rate": 2.74858528698464e-07,
136
+ "loss": 0.016884679794311522,
137
+ "step": 1300
138
+ },
139
+ {
140
+ "epoch": 4.0,
141
+ "eval_accuracy": 0.9873333333333333,
142
+ "eval_f1": 0.987228321756666,
143
+ "eval_loss": 0.14398272335529327,
144
+ "eval_precision": 0.9954812471757795,
145
+ "eval_recall": 0.9791111111111112,
146
+ "eval_runtime": 38.4471,
147
+ "eval_samples_per_second": 117.044,
148
+ "eval_steps_per_second": 0.936,
149
+ "step": 1316
150
+ }
151
+ ],
152
+ "logging_steps": 100,
153
+ "max_steps": 1316,
154
+ "num_input_tokens_seen": 0,
155
+ "num_train_epochs": 4,
156
+ "save_steps": 500,
157
+ "stateful_callbacks": {
158
+ "TrainerControl": {
159
+ "args": {
160
+ "should_epoch_stop": false,
161
+ "should_evaluate": false,
162
+ "should_log": false,
163
+ "should_save": true,
164
+ "should_training_stop": true
165
+ },
166
+ "attributes": {}
167
+ }
168
+ },
169
+ "total_flos": 1.105066432512e+16,
170
+ "train_batch_size": 64,
171
+ "trial_name": null,
172
+ "trial_params": null
173
+ }
checkpoint-1316/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d417474128ff0bdb4a3aaf57717508285695b4d1787ece4a3dfa8e7dbf8f52a
3
+ size 5201
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "BENIGN",
16
+ "1": "MALICIOUS"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "is_decoder": false,
21
+ "label2id": {
22
+ "BENIGN": 0,
23
+ "MALICIOUS": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 1,
31
+ "problem_type": "single_label_classification",
32
+ "tie_word_embeddings": true,
33
+ "transformers_version": "5.0.0",
34
+ "type_vocab_size": 1,
35
+ "use_cache": false,
36
+ "vocab_size": 50265
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a44a68b31eff6c0bcd96ce5a29a5b0aaed9a7b1d4cd30e1240248bfea25358dc
3
+ size 498612800
test_labels.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c47485ae6b099c89047315ee67216afd4fd1763f550101a23a4e880b04eefe8
3
+ size 36128
test_metrics.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "roberta-base",
3
+ "accuracy": 0.9902222222222222,
4
+ "f1": 0.9901697944593387,
5
+ "precision": 0.995507637017071,
6
+ "recall": 0.9848888888888889
7
+ }
test_preds.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83b8fa4f777d11a8a1e241e4e8e31fa1b90fa128b268b93e6ffd83b8b2e64057
3
+ size 36128
test_probs.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a8816a3c2f57d367544772c8d5386224e48e7eba4564b5423eac355fbde4304
3
+ size 18128
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "mask_token": "<mask>",
10
+ "model_max_length": 512,
11
+ "pad_token": "<pad>",
12
+ "sep_token": "</s>",
13
+ "tokenizer_class": "RobertaTokenizer",
14
+ "trim_offsets": true,
15
+ "unk_token": "<unk>"
16
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d417474128ff0bdb4a3aaf57717508285695b4d1787ece4a3dfa8e7dbf8f52a
3
+ size 5201