jialicheng commited on
Commit
e4bfe14
·
verified ·
1 Parent(s): 02aba52

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/wav2vec2-large
4
+ tags:
5
+ - audio-classification
6
+ - generated_from_trainer
7
+ datasets:
8
+ - superb
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: superb_ks_42
13
+ results:
14
+ - task:
15
+ name: Audio Classification
16
+ type: audio-classification
17
+ dataset:
18
+ name: superb
19
+ type: superb
20
+ config: ks
21
+ split: validation
22
+ args: ks
23
+ metrics:
24
+ - name: Accuracy
25
+ type: accuracy
26
+ value: 0.6215063253898205
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # superb_ks_42
33
+
34
+ This model is a fine-tuned version of [facebook/wav2vec2-large](https://huggingface.co/facebook/wav2vec2-large) on the superb dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 80.4388
37
+ - Accuracy: 0.6215
38
+ - Test Accuracy: 0.6215
39
+ - Df Accuracy: 0.1346
40
+ - Unlearn Overall Accuracy: 0.7435
41
+ - Unlearn Time: 640.7721
42
+
43
+ ## Model description
44
+
45
+ More information needed
46
+
47
+ ## Intended uses & limitations
48
+
49
+ More information needed
50
+
51
+ ## Training and evaluation data
52
+
53
+ More information needed
54
+
55
+ ## Training procedure
56
+
57
+ ### Training hyperparameters
58
+
59
+ The following hyperparameters were used during training:
60
+ - learning_rate: 5e-05
61
+ - train_batch_size: 32
62
+ - eval_batch_size: 8
63
+ - seed: 42
64
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
65
+ - lr_scheduler_type: linear
66
+ - lr_scheduler_warmup_ratio: 0.1
67
+ - num_epochs: 5
68
+
69
+ ### Training results
70
+
71
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Overall Accuracy | Unlearn Overall Accuracy | Time |
72
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:----------------:|:------------------------:|:----:|
73
+ | No log | 1.0 | 189 | 7.6645 | 0.1343 | 0.7433 | 0.7433 | -1 |
74
+ | No log | 2.0 | 378 | 30.0267 | 0.2179 | 0.7179 | 0.7179 | -1 |
75
+ | No log | 3.0 | 567 | 58.5008 | 0.1343 | 0.7433 | 0.7433 | -1 |
76
+ | No log | 4.0 | 756 | 74.2509 | 0.1432 | 0.7403 | 0.7403 | -1 |
77
+ | No log | 5.0 | 945 | 80.4388 | 0.1346 | 0.7435 | 0.7435 | -1 |
78
+
79
+
80
+ ### Framework versions
81
+
82
+ - Transformers 4.39.3
83
+ - Pytorch 2.2.2+cu118
84
+ - Datasets 2.18.0
85
+ - Tokenizers 0.15.2
all_results.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.1345899470899471,
3
+ "dr_accuracy": 0.6691075514874142,
4
+ "dr_loss": 70.26356506347656,
5
+ "dr_runtime": 170.2233,
6
+ "dr_samples_per_second": 282.394,
7
+ "dr_steps_per_second": 35.301,
8
+ "dr_unlearn_overall_accuracy": 0.7672588021987335,
9
+ "epoch": 5.0,
10
+ "eval_accuracy": 0.6215063253898205,
11
+ "eval_loss": 80.43878936767578,
12
+ "eval_runtime": 31.8707,
13
+ "eval_samples_per_second": 213.299,
14
+ "eval_steps_per_second": 26.67,
15
+ "eval_unlearn_overall_accuracy": 0.7434581891499368,
16
+ "test_accuracy": 0.6691075514874142,
17
+ "test_loss": 202.1115264892578,
18
+ "test_runtime": 17.4177,
19
+ "test_samples_per_second": 176.889,
20
+ "test_steps_per_second": 22.161,
21
+ "test_unlearn_overall_accuracy": 0.474412264364796,
22
+ "train_loss": 0.0,
23
+ "train_runtime": 640.0755,
24
+ "train_samples_per_second": 47.244,
25
+ "train_steps_per_second": 1.476,
26
+ "unlearn_overall_accuracy": 0.7672588021987335,
27
+ "unlearn_time": 640.7720623016357
28
+ }
config.json ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./audio/train/checkpoint/wav2vec2-large/superb_ks_42",
3
+ "activation_dropout": 0.1,
4
+ "adapter_attn_dim": null,
5
+ "adapter_kernel_size": 3,
6
+ "adapter_stride": 2,
7
+ "add_adapter": false,
8
+ "apply_spec_augment": true,
9
+ "architectures": [
10
+ "Wav2Vec2ForSequenceClassification"
11
+ ],
12
+ "attention_dropout": 0.1,
13
+ "bos_token_id": 1,
14
+ "classifier_proj_size": 256,
15
+ "codevector_dim": 768,
16
+ "contrastive_logits_temperature": 0.1,
17
+ "conv_bias": false,
18
+ "conv_dim": [
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512,
25
+ 512
26
+ ],
27
+ "conv_kernel": [
28
+ 10,
29
+ 3,
30
+ 3,
31
+ 3,
32
+ 3,
33
+ 2,
34
+ 2
35
+ ],
36
+ "conv_stride": [
37
+ 5,
38
+ 2,
39
+ 2,
40
+ 2,
41
+ 2,
42
+ 2,
43
+ 2
44
+ ],
45
+ "ctc_loss_reduction": "sum",
46
+ "ctc_zero_infinity": false,
47
+ "diversity_loss_weight": 0.1,
48
+ "do_stable_layer_norm": false,
49
+ "eos_token_id": 2,
50
+ "feat_extract_activation": "gelu",
51
+ "feat_extract_dropout": 0.0,
52
+ "feat_extract_norm": "group",
53
+ "feat_proj_dropout": 0.1,
54
+ "feat_quantizer_dropout": 0.0,
55
+ "final_dropout": 0.1,
56
+ "finetuning_task": "audio-classification",
57
+ "gradient_checkpointing": false,
58
+ "hidden_act": "gelu",
59
+ "hidden_dropout": 0.1,
60
+ "hidden_dropout_prob": 0.1,
61
+ "hidden_size": 1024,
62
+ "id2label": {
63
+ "0": "yes",
64
+ "1": "no",
65
+ "10": "_silence_",
66
+ "11": "_unknown_",
67
+ "2": "up",
68
+ "3": "down",
69
+ "4": "left",
70
+ "5": "right",
71
+ "6": "on",
72
+ "7": "off",
73
+ "8": "stop",
74
+ "9": "go"
75
+ },
76
+ "initializer_range": 0.02,
77
+ "intermediate_size": 4096,
78
+ "label2id": {
79
+ "_silence_": "10",
80
+ "_unknown_": "11",
81
+ "down": "3",
82
+ "go": "9",
83
+ "left": "4",
84
+ "no": "1",
85
+ "off": "7",
86
+ "on": "6",
87
+ "right": "5",
88
+ "stop": "8",
89
+ "up": "2",
90
+ "yes": "0"
91
+ },
92
+ "layer_norm_eps": 1e-05,
93
+ "layerdrop": 0.1,
94
+ "mask_feature_length": 10,
95
+ "mask_feature_min_masks": 0,
96
+ "mask_feature_prob": 0.0,
97
+ "mask_time_length": 10,
98
+ "mask_time_min_masks": 2,
99
+ "mask_time_prob": 0.05,
100
+ "model_type": "wav2vec2",
101
+ "num_adapter_layers": 3,
102
+ "num_attention_heads": 16,
103
+ "num_codevector_groups": 2,
104
+ "num_codevectors_per_group": 320,
105
+ "num_conv_pos_embedding_groups": 16,
106
+ "num_conv_pos_embeddings": 128,
107
+ "num_feat_extract_layers": 7,
108
+ "num_hidden_layers": 24,
109
+ "num_negatives": 100,
110
+ "output_hidden_size": 1024,
111
+ "pad_token_id": 0,
112
+ "proj_codevector_dim": 768,
113
+ "tdnn_dilation": [
114
+ 1,
115
+ 2,
116
+ 3,
117
+ 1,
118
+ 1
119
+ ],
120
+ "tdnn_dim": [
121
+ 512,
122
+ 512,
123
+ 512,
124
+ 512,
125
+ 1500
126
+ ],
127
+ "tdnn_kernel": [
128
+ 5,
129
+ 3,
130
+ 3,
131
+ 1,
132
+ 1
133
+ ],
134
+ "torch_dtype": "float32",
135
+ "transformers_version": "4.39.3",
136
+ "use_weighted_layer_sum": false,
137
+ "vocab_size": 32,
138
+ "xvector_output_dim": 512
139
+ }
dr_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.1345899470899471,
3
+ "dr_accuracy": 0.6691075514874142,
4
+ "dr_loss": 70.26356506347656,
5
+ "dr_runtime": 170.2233,
6
+ "dr_samples_per_second": 282.394,
7
+ "dr_steps_per_second": 35.301,
8
+ "dr_unlearn_overall_accuracy": 0.7672588021987335,
9
+ "epoch": 5.0,
10
+ "test_accuracy": 0.6691075514874142,
11
+ "unlearn_overall_accuracy": 0.7672588021987335,
12
+ "unlearn_time": 640.7720623016357
13
+ }
eval_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.1345899470899471,
3
+ "epoch": 5.0,
4
+ "eval_accuracy": 0.6215063253898205,
5
+ "eval_loss": 80.43878936767578,
6
+ "eval_runtime": 31.8707,
7
+ "eval_samples_per_second": 213.299,
8
+ "eval_steps_per_second": 26.67,
9
+ "eval_unlearn_overall_accuracy": 0.7434581891499368,
10
+ "test_accuracy": 0.6215063253898205,
11
+ "unlearn_overall_accuracy": 0.7434581891499368,
12
+ "unlearn_time": 640.7720623016357
13
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e0f309babc6336f22c902e84388fd419e44f4818270969935b1179500ab0347
3
+ size 1262828272
pred_logit_df.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:195602cf165ab12b7895e76a8d4f9c692c69c3bde8ec9fe51a92f97f5ca61924
3
+ size 145280
pred_logit_dr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01b17c1557c029f4ba7c14644647c6e6fd8a37d2f7cecad8516e4b42e015a859
3
+ size 2307488
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b74455730c411740e65c014947dda5b11ffc6af32aa50cf9b00b30adc9d41d82
3
+ size 326432
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45f9a23fb86dc9adc9ed620cc23cf3cf071caa23a9366adce9602ba4604580e3
3
+ size 148016
preprocessor_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0.0,
7
+ "return_attention_mask": true,
8
+ "sampling_rate": 16000
9
+ }
test_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.1345899470899471,
3
+ "epoch": 5.0,
4
+ "test_accuracy": 0.0834144758195391,
5
+ "test_loss": 202.1115264892578,
6
+ "test_runtime": 17.4177,
7
+ "test_samples_per_second": 176.889,
8
+ "test_steps_per_second": 22.161,
9
+ "test_unlearn_overall_accuracy": 0.474412264364796,
10
+ "unlearn_overall_accuracy": 0.474412264364796,
11
+ "unlearn_time": 640.7720623016357
12
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "train_loss": 0.0,
4
+ "train_runtime": 640.0755,
5
+ "train_samples_per_second": 47.244,
6
+ "train_steps_per_second": 1.476
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.7434581891499368,
3
+ "best_model_checkpoint": "audio/unlearn/checkpoint/wav2vec2-large/bad_teaching/6.0/superb_ks_42/checkpoint-945",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 945,
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.13425925925925927,
13
+ "epoch": 1.0,
14
+ "eval_accuracy": 0.6209179170344219,
15
+ "eval_loss": 7.664512634277344,
16
+ "eval_runtime": 26.4158,
17
+ "eval_samples_per_second": 257.346,
18
+ "eval_steps_per_second": 32.178,
19
+ "eval_unlearn_overall_accuracy": 0.7433293288875813,
20
+ "step": 189,
21
+ "test_accuracy": 0.6209179170344219,
22
+ "unlearn_overall_accuracy": 0.7433293288875813,
23
+ "unlearn_time": -1
24
+ },
25
+ {
26
+ "df_accuracy": 0.21792328042328044,
27
+ "epoch": 2.0,
28
+ "eval_accuracy": 0.6537216828478964,
29
+ "eval_loss": 30.02674102783203,
30
+ "eval_runtime": 26.3748,
31
+ "eval_samples_per_second": 257.746,
32
+ "eval_steps_per_second": 32.228,
33
+ "eval_unlearn_overall_accuracy": 0.717899201212308,
34
+ "step": 378,
35
+ "test_accuracy": 0.6537216828478964,
36
+ "unlearn_overall_accuracy": 0.717899201212308,
37
+ "unlearn_time": -1
38
+ },
39
+ {
40
+ "df_accuracy": 0.13425925925925927,
41
+ "epoch": 3.0,
42
+ "eval_accuracy": 0.6209179170344219,
43
+ "eval_loss": 58.500755310058594,
44
+ "eval_runtime": 26.4454,
45
+ "eval_samples_per_second": 257.058,
46
+ "eval_steps_per_second": 32.142,
47
+ "eval_unlearn_overall_accuracy": 0.7433293288875813,
48
+ "step": 567,
49
+ "test_accuracy": 0.6209179170344219,
50
+ "unlearn_overall_accuracy": 0.7433293288875813,
51
+ "unlearn_time": -1
52
+ },
53
+ {
54
+ "df_accuracy": 0.1431878306878307,
55
+ "epoch": 4.0,
56
+ "eval_accuracy": 0.6238599588114151,
57
+ "eval_loss": 74.25088500976562,
58
+ "eval_runtime": 26.482,
59
+ "eval_samples_per_second": 256.703,
60
+ "eval_steps_per_second": 32.097,
61
+ "eval_unlearn_overall_accuracy": 0.7403360640617922,
62
+ "step": 756,
63
+ "test_accuracy": 0.6238599588114151,
64
+ "unlearn_overall_accuracy": 0.7403360640617922,
65
+ "unlearn_time": -1
66
+ },
67
+ {
68
+ "df_accuracy": 0.1345899470899471,
69
+ "epoch": 5.0,
70
+ "eval_accuracy": 0.6215063253898205,
71
+ "eval_loss": 80.43878936767578,
72
+ "eval_runtime": 30.0152,
73
+ "eval_samples_per_second": 226.485,
74
+ "eval_steps_per_second": 28.319,
75
+ "eval_unlearn_overall_accuracy": 0.7434581891499368,
76
+ "step": 945,
77
+ "test_accuracy": 0.6215063253898205,
78
+ "unlearn_overall_accuracy": 0.7434581891499368,
79
+ "unlearn_time": -1
80
+ },
81
+ {
82
+ "epoch": 5.0,
83
+ "step": 945,
84
+ "total_flos": 9.1647369160704e+17,
85
+ "train_loss": 0.0,
86
+ "train_runtime": 640.0755,
87
+ "train_samples_per_second": 47.244,
88
+ "train_steps_per_second": 1.476
89
+ }
90
+ ],
91
+ "logging_steps": 1000,
92
+ "max_steps": 945,
93
+ "num_input_tokens_seen": 0,
94
+ "num_train_epochs": 5,
95
+ "save_steps": 500,
96
+ "total_flos": 9.1647369160704e+17,
97
+ "train_batch_size": 32,
98
+ "trial_name": null,
99
+ "trial_params": null
100
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab5ef727be19b420c19b462e884c7ce82ffcea8052eb34e674b19378b342adc3
3
+ size 5112