jialicheng commited on
Commit
2eb1ff7
·
verified ·
1 Parent(s): a1708d4

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.6209179170344219
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: 414.7518
37
+ - Accuracy: 0.6209
38
+ - Test Accuracy: 0.6209
39
+ - Df Accuracy: 0.1343
40
+ - Unlearn Overall Accuracy: 0.7433
41
+ - Unlearn Time: 1648.8392
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: 2.5
68
+
69
+ ### Training results
70
+
71
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Overall Accuracy | Unlearn Overall Accuracy | Time |
72
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:----------------:|:------------------------:|:----:|
73
+ | 0.0 | 1.0 | 1503 | 414.7518 | 0.1343 | 0.7433 | 0.7433 | -1 |
74
+ | 0.0 | 2.0 | 3006 | 1072.2520 | 0.1343 | 0.7433 | 0.7433 | -1 |
75
+ | 0.0 | 2.5 | 3758 | 1184.3600 | 0.1343 | 0.7433 | 0.7433 | -1 |
76
+
77
+
78
+ ### Framework versions
79
+
80
+ - Transformers 4.39.3
81
+ - Pytorch 2.2.2+cu118
82
+ - Datasets 2.18.0
83
+ - Tokenizers 0.15.2
all_results.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.13425925925925927,
3
+ "dr_accuracy": 0.6686914915747868,
4
+ "dr_loss": 362.539794921875,
5
+ "dr_runtime": 168.0217,
6
+ "dr_samples_per_second": 286.094,
7
+ "dr_steps_per_second": 35.763,
8
+ "dr_unlearn_overall_accuracy": 0.7672161161577638,
9
+ "epoch": 2.5,
10
+ "eval_accuracy": 0.6209179170344219,
11
+ "eval_loss": 414.7518310546875,
12
+ "eval_runtime": 27.1613,
13
+ "eval_samples_per_second": 250.283,
14
+ "eval_steps_per_second": 31.295,
15
+ "eval_unlearn_overall_accuracy": 0.7433293288875813,
16
+ "test_accuracy": 0.6686914915747868,
17
+ "test_loss": 1029.048583984375,
18
+ "test_runtime": 14.5813,
19
+ "test_samples_per_second": 211.298,
20
+ "test_steps_per_second": 26.472,
21
+ "test_unlearn_overall_accuracy": 0.4745776082801399,
22
+ "train_loss": 0.0,
23
+ "train_runtime": 1382.7366,
24
+ "train_samples_per_second": 86.911,
25
+ "train_steps_per_second": 2.718,
26
+ "unlearn_overall_accuracy": 0.7672161161577638,
27
+ "unlearn_time": 1648.8391699790955
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.13425925925925927,
3
+ "dr_accuracy": 0.6686914915747868,
4
+ "dr_loss": 362.539794921875,
5
+ "dr_runtime": 168.0217,
6
+ "dr_samples_per_second": 286.094,
7
+ "dr_steps_per_second": 35.763,
8
+ "dr_unlearn_overall_accuracy": 0.7672161161577638,
9
+ "epoch": 2.5,
10
+ "test_accuracy": 0.6686914915747868,
11
+ "unlearn_overall_accuracy": 0.7672161161577638,
12
+ "unlearn_time": 1648.8391699790955
13
+ }
eval_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "df_accuracy": 0.13425925925925927,
3
+ "epoch": 2.5,
4
+ "eval_accuracy": 0.6209179170344219,
5
+ "eval_loss": 414.7518310546875,
6
+ "eval_runtime": 27.1613,
7
+ "eval_samples_per_second": 250.283,
8
+ "eval_steps_per_second": 31.295,
9
+ "eval_unlearn_overall_accuracy": 0.7433293288875813,
10
+ "test_accuracy": 0.6209179170344219,
11
+ "unlearn_overall_accuracy": 0.7433293288875813,
12
+ "unlearn_time": 1648.8391699790955
13
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6baa43a7c2758593f795abe271b1a1caa75421b447f6d19377ca2ff2f5c85f6
3
+ size 1262828272
pred_logit_df.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b0d10e3e5d83f9057c5cf322f90157ff37fd4532d571898c828aca932de1f34
3
+ size 145280
pred_logit_dr.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3ebde1ba0c463b1469fa57fb863e13d9dc570228a3a1fea2a41794a52867b9a
3
+ size 2307488
pred_logit_eval.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9dfa356f9908b8458c384b4b94968e5ac0ee9eeb1830e57bbb11ae106d30daa
3
+ size 326432
pred_logit_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8aef23840ea7c8a584b6a2563ee22cf3a0fd3593069dece3525829dc8cf223b3
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.13425925925925927,
3
+ "epoch": 2.5,
4
+ "test_accuracy": 0.0834144758195391,
5
+ "test_loss": 1029.048583984375,
6
+ "test_runtime": 14.5813,
7
+ "test_samples_per_second": 211.298,
8
+ "test_steps_per_second": 26.472,
9
+ "test_unlearn_overall_accuracy": 0.4745776082801399,
10
+ "unlearn_overall_accuracy": 0.4745776082801399,
11
+ "unlearn_time": 1648.8391699790955
12
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.5,
3
+ "train_loss": 0.0,
4
+ "train_runtime": 1382.7366,
5
+ "train_samples_per_second": 86.911,
6
+ "train_steps_per_second": 2.718
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.7433293288875813,
3
+ "best_model_checkpoint": "audio/unlearn/checkpoint/wav2vec2-large/scrub/6.0/superb_ks_42/checkpoint-1503",
4
+ "epoch": 2.5003326679973386,
5
+ "eval_steps": 500,
6
+ "global_step": 3758,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.67,
13
+ "grad_norm": 2860.644775390625,
14
+ "learning_rate": 4.077468953282082e-05,
15
+ "loss": 0.0,
16
+ "step": 1000
17
+ },
18
+ {
19
+ "df_accuracy": 0.13425925925925927,
20
+ "epoch": 1.0,
21
+ "eval_accuracy": 0.6209179170344219,
22
+ "eval_loss": 414.7518310546875,
23
+ "eval_runtime": 27.2,
24
+ "eval_samples_per_second": 249.927,
25
+ "eval_steps_per_second": 31.25,
26
+ "eval_unlearn_overall_accuracy": 0.7433293288875813,
27
+ "step": 1503,
28
+ "test_accuracy": 0.6209179170344219,
29
+ "unlearn_overall_accuracy": 0.7433293288875813,
30
+ "unlearn_time": -1
31
+ },
32
+ {
33
+ "epoch": 1.33,
34
+ "grad_norm": 5017.3203125,
35
+ "learning_rate": 2.599053814311059e-05,
36
+ "loss": 0.0,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 2.0,
41
+ "grad_norm": 6478.43701171875,
42
+ "learning_rate": 1.1206386753400355e-05,
43
+ "loss": 0.0,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "df_accuracy": 0.13425925925925927,
48
+ "epoch": 2.0,
49
+ "eval_accuracy": 0.6209179170344219,
50
+ "eval_loss": 1072.251953125,
51
+ "eval_runtime": 27.1274,
52
+ "eval_samples_per_second": 250.595,
53
+ "eval_steps_per_second": 31.334,
54
+ "eval_unlearn_overall_accuracy": 0.7433293288875813,
55
+ "step": 3006,
56
+ "test_accuracy": 0.6209179170344219,
57
+ "unlearn_overall_accuracy": 0.7433293288875813,
58
+ "unlearn_time": -1
59
+ },
60
+ {
61
+ "df_accuracy": 0.13425925925925927,
62
+ "epoch": 2.5,
63
+ "eval_accuracy": 0.6209179170344219,
64
+ "eval_loss": 1184.3599853515625,
65
+ "eval_runtime": 27.0968,
66
+ "eval_samples_per_second": 250.879,
67
+ "eval_steps_per_second": 31.369,
68
+ "eval_unlearn_overall_accuracy": 0.7433293288875813,
69
+ "step": 3758,
70
+ "test_accuracy": 0.6209179170344219,
71
+ "unlearn_overall_accuracy": 0.7433293288875813,
72
+ "unlearn_time": -1
73
+ },
74
+ {
75
+ "epoch": 2.5,
76
+ "step": 3758,
77
+ "total_flos": 3.642982924137984e+18,
78
+ "train_loss": 0.0,
79
+ "train_runtime": 1382.7366,
80
+ "train_samples_per_second": 86.911,
81
+ "train_steps_per_second": 2.718
82
+ }
83
+ ],
84
+ "logging_steps": 1000,
85
+ "max_steps": 3758,
86
+ "num_input_tokens_seen": 0,
87
+ "num_train_epochs": 3,
88
+ "save_steps": 500,
89
+ "total_flos": 3.642982924137984e+18,
90
+ "train_batch_size": 32,
91
+ "trial_name": null,
92
+ "trial_params": null
93
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bc72d173aade6c14a335cad94b8ea747d3c698aabc671729a5c29be3363c284
3
+ size 5048