jialicheng commited on
Commit
02bb85e
·
verified ·
1 Parent(s): 881ec01

Upload folder using huggingface_hub

Browse files
all_results.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.51,
3
+ "df_loss": 1.5425188541412354,
4
+ "dr_accuracy": 0.995265306122449,
5
+ "dr_loss": 0.021629396826028824,
6
+ "dt_accuracy": 0.89332,
7
+ "epoch": 6.0,
8
+ "eval_unlearn_overall_accuracy": 0,
9
+ "knowledge_gap": 0.74251,
10
+ "ood_accuracy": 0.850966047645845,
11
+ "ood_loss": 0.6169689297676086,
12
+ "test_accuracy": 0.89332,
13
+ "test_loss": 0.44322600960731506,
14
+ "total_flos": 9866664576000000.0,
15
+ "train_loss": 0.08846605972459147,
16
+ "train_runtime": 1091.0951,
17
+ "train_samples_per_second": 137.477,
18
+ "train_steps_per_second": 4.3,
19
+ "unlearn_overall_accuracy": 0.9869908814589666,
20
+ "unlearn_time": 1091.498844385147,
21
+ "zrf": 0.8523870413952953
22
+ }
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "jialicheng/imdb-electra-base",
3
+ "architectures": [
4
+ "ElectraForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 768,
9
+ "finetuning_task": "text-classification",
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": "electra",
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
+ "summary_activation": "gelu",
24
+ "summary_last_dropout": 0.1,
25
+ "summary_type": "first",
26
+ "summary_use_proj": true,
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.48.0",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 30522
32
+ }
df_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.51,
3
+ "df_loss": 1.5425188541412354
4
+ }
dr_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "dr_accuracy": 0.995265306122449,
3
+ "dr_loss": 0.021629396826028824
4
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1995937034121749e524ea571570c123c7f343b963ee1a65786279b6a636123c
3
+ size 437959248
ood_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "ood_accuracy": 0.850966047645845,
3
+ "ood_loss": 0.6169689297676086
4
+ }
pred_logit_df.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:463f3910741b4896dae4bf01bde35e681bbe62ab0ff67452fa3309e5bcdfcfe6
3
+ size 4128
pred_logit_dr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ec48bf9ac751ef57b17965649238ed406ac4a8e8c423bb3f8b73d4b993620d8
3
+ size 196128
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebab6bffd362ad28e1875ef0c7f6d462f1a22793d1cfb95d3d22f78a82bc6d73
3
+ size 200128
pred_logit_ood.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a0a5843082fbb7c3466878957190b24924454c15b7349e873581850ed9801ad
3
+ size 85424
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85147af398ee7c4fed8d93d7a47903578aec798c1631a271ee8ed319fe9e62e8
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.89332,
3
+ "test_loss": 0.44322600960731506
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": "ElectraTokenizer",
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.08846605972459147,
5
+ "train_runtime": 1091.0951,
6
+ "train_samples_per_second": 137.477,
7
+ "train_steps_per_second": 4.3
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9869908814589666,
3
+ "best_model_checkpoint": "../../checkpoint/unlearn/imdb/electra-base/random_label/2.0/87/checkpoint-3128",
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.954,
13
+ "dt_accuracy": 0.898,
14
+ "epoch": 1.0,
15
+ "eval_accuracy": 0.898,
16
+ "eval_loss": 0.36999785900115967,
17
+ "eval_runtime": 40.7872,
18
+ "eval_samples_per_second": 612.938,
19
+ "eval_steps_per_second": 2.403,
20
+ "eval_unlearn_overall_accuracy": 0.7034942528735633,
21
+ "step": 782,
22
+ "unlearn_overall_accuracy": 0.7034942528735633,
23
+ "unlearn_time": null
24
+ },
25
+ {
26
+ "epoch": 1.278772378516624,
27
+ "grad_norm": 0.38743796944618225,
28
+ "learning_rate": 3.934356351236147e-05,
29
+ "loss": 0.1224,
30
+ "step": 1000
31
+ },
32
+ {
33
+ "df_accuracy": 0.894,
34
+ "dt_accuracy": 0.90348,
35
+ "epoch": 2.0,
36
+ "eval_accuracy": 0.90348,
37
+ "eval_loss": 0.38031086325645447,
38
+ "eval_runtime": 39.7017,
39
+ "eval_samples_per_second": 629.696,
40
+ "eval_steps_per_second": 2.468,
41
+ "eval_unlearn_overall_accuracy": 0.753000899910009,
42
+ "step": 1564,
43
+ "unlearn_overall_accuracy": 0.753000899910009,
44
+ "unlearn_time": null
45
+ },
46
+ {
47
+ "epoch": 2.557544757033248,
48
+ "grad_norm": 0.1861998736858368,
49
+ "learning_rate": 2.8687127024722932e-05,
50
+ "loss": 0.1067,
51
+ "step": 2000
52
+ },
53
+ {
54
+ "df_accuracy": 0.83,
55
+ "dt_accuracy": 0.90104,
56
+ "epoch": 3.0,
57
+ "eval_accuracy": 0.90104,
58
+ "eval_loss": 0.41145703196525574,
59
+ "eval_runtime": 40.4446,
60
+ "eval_samples_per_second": 618.13,
61
+ "eval_steps_per_second": 2.423,
62
+ "eval_unlearn_overall_accuracy": 0.799716438389139,
63
+ "step": 2346,
64
+ "unlearn_overall_accuracy": 0.799716438389139,
65
+ "unlearn_time": null
66
+ },
67
+ {
68
+ "epoch": 3.836317135549872,
69
+ "grad_norm": 0.39168480038642883,
70
+ "learning_rate": 1.80306905370844e-05,
71
+ "loss": 0.0911,
72
+ "step": 3000
73
+ },
74
+ {
75
+ "df_accuracy": 0.51,
76
+ "dt_accuracy": 0.89332,
77
+ "epoch": 4.0,
78
+ "eval_accuracy": 0.89332,
79
+ "eval_loss": 0.44322600960731506,
80
+ "eval_runtime": 40.7607,
81
+ "eval_samples_per_second": 613.337,
82
+ "eval_steps_per_second": 2.404,
83
+ "eval_unlearn_overall_accuracy": 0.9869908814589666,
84
+ "step": 3128,
85
+ "unlearn_overall_accuracy": 0.9869908814589666,
86
+ "unlearn_time": null
87
+ },
88
+ {
89
+ "df_accuracy": 0.404,
90
+ "dt_accuracy": 0.89896,
91
+ "epoch": 5.0,
92
+ "eval_accuracy": 0.89896,
93
+ "eval_loss": 0.4861825406551361,
94
+ "eval_runtime": 40.3161,
95
+ "eval_samples_per_second": 620.1,
96
+ "eval_steps_per_second": 2.431,
97
+ "eval_unlearn_overall_accuracy": 0.9448834625377579,
98
+ "step": 3910,
99
+ "unlearn_overall_accuracy": 0.9448834625377579,
100
+ "unlearn_time": null
101
+ },
102
+ {
103
+ "epoch": 5.115089514066496,
104
+ "grad_norm": 0.15296652913093567,
105
+ "learning_rate": 7.374254049445865e-06,
106
+ "loss": 0.064,
107
+ "step": 4000
108
+ },
109
+ {
110
+ "df_accuracy": 0.38,
111
+ "dt_accuracy": 0.89976,
112
+ "epoch": 6.0,
113
+ "eval_accuracy": 0.89976,
114
+ "eval_loss": 0.5284281373023987,
115
+ "eval_runtime": 39.6498,
116
+ "eval_samples_per_second": 630.52,
117
+ "eval_steps_per_second": 2.472,
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.08846605972459147,
128
+ "train_runtime": 1091.0951,
129
+ "train_samples_per_second": 137.477,
130
+ "train_steps_per_second": 4.3
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:57cd774925221f4497635252166d9772361a586bfd1fcd7f2d2a1cc90e3d1b4f
3
+ size 5496
unlearn_final_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.51,
3
+ "dr_accuracy": 0.995265306122449,
4
+ "dt_accuracy": 0.89332,
5
+ "eval_unlearn_overall_accuracy": 0,
6
+ "knowledge_gap": 0.74251,
7
+ "ood_accuracy": 0.850966047645845,
8
+ "unlearn_overall_accuracy": 0.9869908814589666,
9
+ "unlearn_time": 1091.498844385147,
10
+ "zrf": 0.8523870413952953
11
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff