jialicheng commited on
Commit
fafeaff
·
verified ·
1 Parent(s): 8ecab7a

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: microsoft/resnet-34
4
+ tags:
5
+ - image-classification
6
+ - vision
7
+ - generated_from_trainer
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: '42'
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # 42
19
+
20
+ This model is a fine-tuned version of [microsoft/resnet-34](https://huggingface.co/microsoft/resnet-34) on the cifar10 dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 4.6750
23
+ - Accuracy: 0.7248
24
+ - Dt Accuracy: 0.7248
25
+ - Df Accuracy: 0.734
26
+ - Unlearn Overall Accuracy: 0
27
+ - Unlearn Time: None
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 0.0001
47
+ - train_batch_size: 128
48
+ - eval_batch_size: 256
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 10
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Overall Accuracy | Unlearn Overall Accuracy | Time |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:----------------:|:------------------------:|:----:|
58
+ | No log | 1.0 | 32 | 1.9091 | 0.828 | 0.4119 | 0.4119 | None |
59
+ | No log | 2.0 | 64 | 2.9815 | 0.7885 | 0.4501 | 0.4501 | None |
60
+ | No log | 3.0 | 96 | 3.7770 | 0.7515 | 0 | 0 | None |
61
+ | No log | 4.0 | 128 | 3.7162 | 0.754 | 0 | 0 | None |
62
+ | No log | 5.0 | 160 | 4.3877 | 0.7395 | 0 | 0 | None |
63
+ | No log | 6.0 | 192 | 4.8596 | 0.738 | 0 | 0 | None |
64
+ | No log | 7.0 | 224 | 4.0900 | 0.727 | 0 | 0 | None |
65
+ | No log | 8.0 | 256 | 4.9009 | 0.729 | 0 | 0 | None |
66
+ | No log | 9.0 | 288 | 4.8932 | 0.724 | 0 | 0 | None |
67
+ | No log | 10.0 | 320 | 4.6750 | 0.734 | 0 | 0 | None |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.37.2
73
+ - Pytorch 2.3.0+cu121
74
+ - Datasets 2.19.0
75
+ - Tokenizers 0.15.2
all_results.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.7885,
3
+ "df_loss": 2.64186692237854,
4
+ "dr_accuracy": 0.7927291666666667,
5
+ "dr_loss": 2.6324644088745117,
6
+ "dt_accuracy": 0.7784,
7
+ "epoch": 10.0,
8
+ "eval_unlearn_overall_accuracy": 0,
9
+ "knowledge_gap": 0.5018615,
10
+ "test_accuracy": 0.7784,
11
+ "test_loss": 2.9815359115600586,
12
+ "train_loss": 0.0,
13
+ "train_runtime": 130.4411,
14
+ "train_samples_per_second": 306.652,
15
+ "train_steps_per_second": 2.453,
16
+ "unlearn_overall_accuracy": 0.4500832219549139,
17
+ "unlearn_time": 130.65374088287354,
18
+ "zrf": 0.4906218692344466
19
+ }
config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "../../checkpoint/cifar10/resnet-34",
3
+ "architectures": [
4
+ "ResNetForImageClassification"
5
+ ],
6
+ "depths": [
7
+ 3,
8
+ 4,
9
+ 6,
10
+ 3
11
+ ],
12
+ "downsample_in_bottleneck": false,
13
+ "downsample_in_first_stage": false,
14
+ "embedding_size": 64,
15
+ "finetuning_task": "image-classification",
16
+ "hidden_act": "relu",
17
+ "hidden_sizes": [
18
+ 64,
19
+ 128,
20
+ 256,
21
+ 512
22
+ ],
23
+ "id2label": {
24
+ "0": "airplane",
25
+ "1": "automobile",
26
+ "2": "bird",
27
+ "3": "cat",
28
+ "4": "deer",
29
+ "5": "dog",
30
+ "6": "frog",
31
+ "7": "horse",
32
+ "8": "ship",
33
+ "9": "truck"
34
+ },
35
+ "label2id": {
36
+ "airplane": "0",
37
+ "automobile": "1",
38
+ "bird": "2",
39
+ "cat": "3",
40
+ "deer": "4",
41
+ "dog": "5",
42
+ "frog": "6",
43
+ "horse": "7",
44
+ "ship": "8",
45
+ "truck": "9"
46
+ },
47
+ "layer_type": "basic",
48
+ "model_type": "resnet",
49
+ "num_channels": 3,
50
+ "out_features": [
51
+ "stage4"
52
+ ],
53
+ "out_indices": [
54
+ 4
55
+ ],
56
+ "problem_type": "single_label_classification",
57
+ "stage_names": [
58
+ "stem",
59
+ "stage1",
60
+ "stage2",
61
+ "stage3",
62
+ "stage4"
63
+ ],
64
+ "torch_dtype": "float32",
65
+ "transformers_version": "4.37.2"
66
+ }
df_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.7885,
3
+ "df_loss": 2.64186692237854
4
+ }
dr_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "dr_accuracy": 0.7927291666666667,
3
+ "dr_loss": 2.6324644088745117
4
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e4669961b651ceb39af175136cc62189bd1a598497214f53185b4a903a3ec61
3
+ size 85255768
pred_logit_df.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bef998a1132ef598ef1f72f7427057df141131966de6636e318906ad5de83dc
3
+ size 80128
pred_logit_dr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e155d48bb2b9b31abda0807da85781f301471d824867974eab9afeba000efeb0
3
+ size 1920128
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c45ab3893be525f9b6e2364a4eb7025c5326ccf201d387dede1843538a36da0
3
+ size 400128
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aae10e7382e58a22b47354b64495ef8e289f983557ad31ec83cd541110c94332
3
+ size 400128
preprocessor_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "crop_pct",
7
+ "resample",
8
+ "do_rescale",
9
+ "rescale_factor",
10
+ "do_normalize",
11
+ "image_mean",
12
+ "image_std",
13
+ "return_tensors",
14
+ "data_format",
15
+ "input_data_format"
16
+ ],
17
+ "crop_pct": 0.875,
18
+ "do_normalize": true,
19
+ "do_rescale": true,
20
+ "do_resize": true,
21
+ "image_mean": [
22
+ 0.485,
23
+ 0.456,
24
+ 0.406
25
+ ],
26
+ "image_processor_type": "ConvNextImageProcessor",
27
+ "image_std": [
28
+ 0.229,
29
+ 0.224,
30
+ 0.225
31
+ ],
32
+ "resample": 3,
33
+ "rescale_factor": 0.00392156862745098,
34
+ "size": {
35
+ "shortest_edge": 224
36
+ }
37
+ }
test_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "test_accuracy": 0.7784,
3
+ "test_loss": 2.9815359115600586
4
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "train_loss": 0.0,
4
+ "train_runtime": 130.4411,
5
+ "train_samples_per_second": 306.652,
6
+ "train_steps_per_second": 2.453
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.4500832219549139,
3
+ "best_model_checkpoint": "../../checkpoint/unlearn/cifar10/resnet-34/bad_teaching/4.0/42/checkpoint-64",
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 320,
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.828,
13
+ "dt_accuracy": 0.816,
14
+ "epoch": 1.0,
15
+ "eval_accuracy": 0.816,
16
+ "eval_loss": 1.9091414213180542,
17
+ "eval_runtime": 6.5416,
18
+ "eval_samples_per_second": 1528.684,
19
+ "eval_steps_per_second": 6.115,
20
+ "eval_unlearn_overall_accuracy": 0.41193288111388787,
21
+ "step": 32,
22
+ "unlearn_overall_accuracy": 0.41193288111388787,
23
+ "unlearn_time": null
24
+ },
25
+ {
26
+ "df_accuracy": 0.7885,
27
+ "dt_accuracy": 0.7784,
28
+ "epoch": 2.0,
29
+ "eval_accuracy": 0.7784,
30
+ "eval_loss": 2.9815359115600586,
31
+ "eval_runtime": 5.4619,
32
+ "eval_samples_per_second": 1830.879,
33
+ "eval_steps_per_second": 7.324,
34
+ "eval_unlearn_overall_accuracy": 0.4500832219549139,
35
+ "step": 64,
36
+ "unlearn_overall_accuracy": 0.4500832219549139,
37
+ "unlearn_time": null
38
+ },
39
+ {
40
+ "df_accuracy": 0.7515,
41
+ "dt_accuracy": 0.7499,
42
+ "epoch": 3.0,
43
+ "eval_accuracy": 0.7499,
44
+ "eval_loss": 3.7769930362701416,
45
+ "eval_runtime": 5.2798,
46
+ "eval_samples_per_second": 1893.994,
47
+ "eval_steps_per_second": 7.576,
48
+ "eval_unlearn_overall_accuracy": 0,
49
+ "step": 96,
50
+ "unlearn_overall_accuracy": 0,
51
+ "unlearn_time": null
52
+ },
53
+ {
54
+ "df_accuracy": 0.754,
55
+ "dt_accuracy": 0.7456,
56
+ "epoch": 4.0,
57
+ "eval_accuracy": 0.7456,
58
+ "eval_loss": 3.7162270545959473,
59
+ "eval_runtime": 4.8479,
60
+ "eval_samples_per_second": 2062.734,
61
+ "eval_steps_per_second": 8.251,
62
+ "eval_unlearn_overall_accuracy": 0,
63
+ "step": 128,
64
+ "unlearn_overall_accuracy": 0,
65
+ "unlearn_time": null
66
+ },
67
+ {
68
+ "df_accuracy": 0.7395,
69
+ "dt_accuracy": 0.7298,
70
+ "epoch": 5.0,
71
+ "eval_accuracy": 0.7298,
72
+ "eval_loss": 4.387747287750244,
73
+ "eval_runtime": 4.9152,
74
+ "eval_samples_per_second": 2034.506,
75
+ "eval_steps_per_second": 8.138,
76
+ "eval_unlearn_overall_accuracy": 0,
77
+ "step": 160,
78
+ "unlearn_overall_accuracy": 0,
79
+ "unlearn_time": null
80
+ },
81
+ {
82
+ "df_accuracy": 0.738,
83
+ "dt_accuracy": 0.7328,
84
+ "epoch": 6.0,
85
+ "eval_accuracy": 0.7328,
86
+ "eval_loss": 4.859561443328857,
87
+ "eval_runtime": 4.6795,
88
+ "eval_samples_per_second": 2136.983,
89
+ "eval_steps_per_second": 8.548,
90
+ "eval_unlearn_overall_accuracy": 0,
91
+ "step": 192,
92
+ "unlearn_overall_accuracy": 0,
93
+ "unlearn_time": null
94
+ },
95
+ {
96
+ "df_accuracy": 0.727,
97
+ "dt_accuracy": 0.7294,
98
+ "epoch": 7.0,
99
+ "eval_accuracy": 0.7294,
100
+ "eval_loss": 4.089993000030518,
101
+ "eval_runtime": 4.4414,
102
+ "eval_samples_per_second": 2251.545,
103
+ "eval_steps_per_second": 9.006,
104
+ "eval_unlearn_overall_accuracy": 0,
105
+ "step": 224,
106
+ "unlearn_overall_accuracy": 0,
107
+ "unlearn_time": null
108
+ },
109
+ {
110
+ "df_accuracy": 0.729,
111
+ "dt_accuracy": 0.7308,
112
+ "epoch": 8.0,
113
+ "eval_accuracy": 0.7308,
114
+ "eval_loss": 4.900906085968018,
115
+ "eval_runtime": 4.5334,
116
+ "eval_samples_per_second": 2205.854,
117
+ "eval_steps_per_second": 8.823,
118
+ "eval_unlearn_overall_accuracy": 0,
119
+ "step": 256,
120
+ "unlearn_overall_accuracy": 0,
121
+ "unlearn_time": null
122
+ },
123
+ {
124
+ "df_accuracy": 0.724,
125
+ "dt_accuracy": 0.7258,
126
+ "epoch": 9.0,
127
+ "eval_accuracy": 0.7258,
128
+ "eval_loss": 4.8932342529296875,
129
+ "eval_runtime": 4.595,
130
+ "eval_samples_per_second": 2176.286,
131
+ "eval_steps_per_second": 8.705,
132
+ "eval_unlearn_overall_accuracy": 0,
133
+ "step": 288,
134
+ "unlearn_overall_accuracy": 0,
135
+ "unlearn_time": null
136
+ },
137
+ {
138
+ "df_accuracy": 0.734,
139
+ "dt_accuracy": 0.7248,
140
+ "epoch": 10.0,
141
+ "eval_accuracy": 0.7248,
142
+ "eval_loss": 4.675024509429932,
143
+ "eval_runtime": 4.4941,
144
+ "eval_samples_per_second": 2225.15,
145
+ "eval_steps_per_second": 8.901,
146
+ "eval_unlearn_overall_accuracy": 0,
147
+ "step": 320,
148
+ "unlearn_overall_accuracy": 0,
149
+ "unlearn_time": null
150
+ },
151
+ {
152
+ "epoch": 10.0,
153
+ "step": 320,
154
+ "total_flos": 7.6913071570944e+17,
155
+ "train_loss": 0.0,
156
+ "train_runtime": 130.4411,
157
+ "train_samples_per_second": 306.652,
158
+ "train_steps_per_second": 2.453
159
+ }
160
+ ],
161
+ "logging_steps": 500,
162
+ "max_steps": 320,
163
+ "num_input_tokens_seen": 0,
164
+ "num_train_epochs": 10,
165
+ "save_steps": 500,
166
+ "total_flos": 7.6913071570944e+17,
167
+ "train_batch_size": 128,
168
+ "trial_name": null,
169
+ "trial_params": null
170
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3a10d64d84c6deb031ecf45af3def4a7b39ee925d21177980efa7af82102f18
3
+ size 4856
unlearn_final_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.7885,
3
+ "dr_accuracy": 0.7927291666666667,
4
+ "dt_accuracy": 0.7784,
5
+ "eval_unlearn_overall_accuracy": 0,
6
+ "knowledge_gap": 0.5018615,
7
+ "unlearn_overall_accuracy": 0.4500832219549139,
8
+ "unlearn_time": 130.65374088287354,
9
+ "zrf": 0.4906218692344466
10
+ }