jialicheng commited on
Commit
f19aa5b
·
verified ·
1 Parent(s): 4f4ee31

Upload folder using huggingface_hub

Browse files
all_results.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.49,
3
+ "df_loss": 2.2806763648986816,
4
+ "dr_accuracy": 0.9940408163265306,
5
+ "dr_loss": 0.023024914786219597,
6
+ "dt_accuracy": 0.85348,
7
+ "epoch": 6.0,
8
+ "eval_unlearn_overall_accuracy": 0,
9
+ "knowledge_gap": 0.7520160000000001,
10
+ "ood_accuracy": 0.7672106546614144,
11
+ "ood_loss": 0.9359132647514343,
12
+ "test_accuracy": 0.85348,
13
+ "test_loss": 0.5763411521911621,
14
+ "total_flos": 9866664576000000.0,
15
+ "train_loss": 0.11303810166784158,
16
+ "train_runtime": 1151.5408,
17
+ "train_samples_per_second": 130.26,
18
+ "train_steps_per_second": 4.075,
19
+ "unlearn_overall_accuracy": 0.9785695310105242,
20
+ "unlearn_time": 1152.9631967544556,
21
+ "zrf": 0.8136645929425435
22
+ }
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "jialicheng/imdb-bert-base",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "finetuning_task": "text-classification",
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-12,
16
+ "max_position_embeddings": 512,
17
+ "model_type": "bert",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 0,
21
+ "position_embedding_type": "absolute",
22
+ "problem_type": "single_label_classification",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.48.0",
25
+ "type_vocab_size": 2,
26
+ "use_cache": true,
27
+ "vocab_size": 30522
28
+ }
df_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.49,
3
+ "df_loss": 2.2806763648986816
4
+ }
dr_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "dr_accuracy": 0.9940408163265306,
3
+ "dr_loss": 0.023024914786219597
4
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6464983fb93cda53bfbef2127d5c755a3cb545187a4966d2c846ba0caa5dc17d
3
+ size 437958648
ood_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "ood_accuracy": 0.7672106546614144,
3
+ "ood_loss": 0.9359132647514343
4
+ }
pred_logit_df.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:848469643268abf846ac1118aa2dbf9077f76f307e0745718848567dae891276
3
+ size 4128
pred_logit_dr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1590333209ad18a9ca23ef3b5c85a1fbf8ff88ab767765179c5c83957fc5bd5
3
+ size 196128
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43c399b517dd987a258eee60fe1941da5599edce958249aeb8147d96563fed31
3
+ size 200128
pred_logit_ood.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f345cf0526ad32c99fdcc305bf5664ca59f0fbab36b0479d031bea6bd84ea602
3
+ size 85424
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14a56b2e16bcc827f73a8c2f3861ffcd6d5e7d1ab5204b384c84b5ee652fd6f4
3
+ size 200128
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
test_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "test_accuracy": 0.85348,
3
+ "test_loss": 0.5763411521911621
4
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "total_flos": 9866664576000000.0,
4
+ "train_loss": 0.11303810166784158,
5
+ "train_runtime": 1151.5408,
6
+ "train_samples_per_second": 130.26,
7
+ "train_steps_per_second": 4.075
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9785695310105242,
3
+ "best_model_checkpoint": "../../checkpoint/unlearn_so/imdb/bert-base/random_label/2.0/42/checkpoint-2346",
4
+ "epoch": 6.0,
5
+ "eval_steps": 500,
6
+ "global_step": 4692,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "df_accuracy": 0.816,
13
+ "dt_accuracy": 0.85984,
14
+ "epoch": 1.0,
15
+ "eval_accuracy": 0.85984,
16
+ "eval_loss": 0.4608308970928192,
17
+ "eval_runtime": 38.3848,
18
+ "eval_samples_per_second": 651.3,
19
+ "eval_steps_per_second": 2.553,
20
+ "eval_unlearn_overall_accuracy": 0.803556413473603,
21
+ "step": 782,
22
+ "unlearn_overall_accuracy": 0.803556413473603,
23
+ "unlearn_time": null
24
+ },
25
+ {
26
+ "epoch": 1.278772378516624,
27
+ "grad_norm": 2.81589412689209,
28
+ "learning_rate": 3.934356351236147e-05,
29
+ "loss": 0.2035,
30
+ "step": 1000
31
+ },
32
+ {
33
+ "df_accuracy": 0.62,
34
+ "dt_accuracy": 0.84424,
35
+ "epoch": 2.0,
36
+ "eval_accuracy": 0.84424,
37
+ "eval_loss": 0.4651459753513336,
38
+ "eval_runtime": 37.8704,
39
+ "eval_samples_per_second": 660.147,
40
+ "eval_steps_per_second": 2.588,
41
+ "eval_unlearn_overall_accuracy": 0.9174182878530706,
42
+ "step": 1564,
43
+ "unlearn_overall_accuracy": 0.9174182878530706,
44
+ "unlearn_time": null
45
+ },
46
+ {
47
+ "epoch": 2.557544757033248,
48
+ "grad_norm": 1.828491449356079,
49
+ "learning_rate": 2.8687127024722932e-05,
50
+ "loss": 0.1556,
51
+ "step": 2000
52
+ },
53
+ {
54
+ "df_accuracy": 0.49,
55
+ "dt_accuracy": 0.85348,
56
+ "epoch": 3.0,
57
+ "eval_accuracy": 0.85348,
58
+ "eval_loss": 0.5763411521911621,
59
+ "eval_runtime": 37.866,
60
+ "eval_samples_per_second": 660.223,
61
+ "eval_steps_per_second": 2.588,
62
+ "eval_unlearn_overall_accuracy": 0.9785695310105242,
63
+ "step": 2346,
64
+ "unlearn_overall_accuracy": 0.9785695310105242,
65
+ "unlearn_time": null
66
+ },
67
+ {
68
+ "epoch": 3.836317135549872,
69
+ "grad_norm": 1.0485318899154663,
70
+ "learning_rate": 1.80306905370844e-05,
71
+ "loss": 0.0982,
72
+ "step": 3000
73
+ },
74
+ {
75
+ "df_accuracy": 0.33,
76
+ "dt_accuracy": 0.84284,
77
+ "epoch": 4.0,
78
+ "eval_accuracy": 0.84284,
79
+ "eval_loss": 0.7899986505508423,
80
+ "eval_runtime": 38.1529,
81
+ "eval_samples_per_second": 655.259,
82
+ "eval_steps_per_second": 2.569,
83
+ "eval_unlearn_overall_accuracy": 0,
84
+ "step": 3128,
85
+ "unlearn_overall_accuracy": 0,
86
+ "unlearn_time": null
87
+ },
88
+ {
89
+ "df_accuracy": 0.206,
90
+ "dt_accuracy": 0.83988,
91
+ "epoch": 5.0,
92
+ "eval_accuracy": 0.83988,
93
+ "eval_loss": 0.9548007249832153,
94
+ "eval_runtime": 38.0841,
95
+ "eval_samples_per_second": 656.441,
96
+ "eval_steps_per_second": 2.573,
97
+ "eval_unlearn_overall_accuracy": 0,
98
+ "step": 3910,
99
+ "unlearn_overall_accuracy": 0,
100
+ "unlearn_time": null
101
+ },
102
+ {
103
+ "epoch": 5.115089514066496,
104
+ "grad_norm": 0.04476599395275116,
105
+ "learning_rate": 7.374254049445865e-06,
106
+ "loss": 0.0541,
107
+ "step": 4000
108
+ },
109
+ {
110
+ "df_accuracy": 0.142,
111
+ "dt_accuracy": 0.83228,
112
+ "epoch": 6.0,
113
+ "eval_accuracy": 0.83228,
114
+ "eval_loss": 1.037352442741394,
115
+ "eval_runtime": 37.379,
116
+ "eval_samples_per_second": 668.825,
117
+ "eval_steps_per_second": 2.622,
118
+ "eval_unlearn_overall_accuracy": 0,
119
+ "step": 4692,
120
+ "unlearn_overall_accuracy": 0,
121
+ "unlearn_time": null
122
+ },
123
+ {
124
+ "epoch": 6.0,
125
+ "step": 4692,
126
+ "total_flos": 9866664576000000.0,
127
+ "train_loss": 0.11303810166784158,
128
+ "train_runtime": 1151.5408,
129
+ "train_samples_per_second": 130.26,
130
+ "train_steps_per_second": 4.075
131
+ }
132
+ ],
133
+ "logging_steps": 1000,
134
+ "max_steps": 4692,
135
+ "num_input_tokens_seen": 0,
136
+ "num_train_epochs": 6,
137
+ "save_steps": 500,
138
+ "stateful_callbacks": {
139
+ "TrainerControl": {
140
+ "args": {
141
+ "should_epoch_stop": false,
142
+ "should_evaluate": false,
143
+ "should_log": false,
144
+ "should_save": true,
145
+ "should_training_stop": true
146
+ },
147
+ "attributes": {}
148
+ }
149
+ },
150
+ "total_flos": 9866664576000000.0,
151
+ "train_batch_size": 32,
152
+ "trial_name": null,
153
+ "trial_params": null
154
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9dd22b320da43a08eaf1a5f3b3db190bcc247fb2f8555be3bbb85a065c2bbd19
3
+ size 5496
unlearn_final_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.49,
3
+ "dr_accuracy": 0.9940408163265306,
4
+ "dt_accuracy": 0.85348,
5
+ "eval_unlearn_overall_accuracy": 0,
6
+ "knowledge_gap": 0.7520160000000001,
7
+ "ood_accuracy": 0.7672106546614144,
8
+ "unlearn_overall_accuracy": 0.9785695310105242,
9
+ "unlearn_time": 1152.9631967544556,
10
+ "zrf": 0.8136645929425435
11
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff