FadQ commited on
Commit
f88b823
·
verified ·
1 Parent(s): 51df8d9

End of training

Browse files
Files changed (5) hide show
  1. README.md +29 -15
  2. config.json +123 -31
  3. model.safetensors +2 -2
  4. preprocessor_config.json +10 -0
  5. training_args.bin +2 -2
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  library_name: transformers
3
- license: mit
4
- base_model: roberta-base
5
  tags:
6
  - generated_from_trainer
7
  metrics:
@@ -16,10 +16,10 @@ should probably proofread and complete it, then remove this comment. -->
16
 
17
  # results
18
 
19
- This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
20
  It achieves the following results on the evaluation set:
21
- - Loss: 0.9055
22
- - Accuracy: 0.6847
23
 
24
  ## Model description
25
 
@@ -38,26 +38,40 @@ More information needed
38
  ### Training hyperparameters
39
 
40
  The following hyperparameters were used during training:
41
- - learning_rate: 2e-05
42
- - train_batch_size: 16
43
- - eval_batch_size: 16
44
  - seed: 42
45
  - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
  - lr_scheduler_type: linear
47
- - num_epochs: 3
 
 
48
 
49
  ### Training results
50
 
51
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
53
- | 0.9666 | 1.0 | 2714 | 0.8702 | 0.6819 |
54
- | 0.7747 | 2.0 | 5428 | 0.8733 | 0.6812 |
55
- | 0.6512 | 3.0 | 8142 | 0.9055 | 0.6847 |
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
 
58
  ### Framework versions
59
 
60
- - Transformers 4.51.3
61
  - Pytorch 2.6.0+cu124
62
- - Datasets 3.5.1
63
- - Tokenizers 0.21.1
 
1
  ---
2
  library_name: transformers
3
+ license: apache-2.0
4
+ base_model: r-f/wav2vec-english-speech-emotion-recognition
5
  tags:
6
  - generated_from_trainer
7
  metrics:
 
16
 
17
  # results
18
 
19
+ This model is a fine-tuned version of [r-f/wav2vec-english-speech-emotion-recognition](https://huggingface.co/r-f/wav2vec-english-speech-emotion-recognition) on an unknown dataset.
20
  It achieves the following results on the evaluation set:
21
+ - Loss: 0.1011
22
+ - Accuracy: 0.9724
23
 
24
  ## Model description
25
 
 
38
  ### Training hyperparameters
39
 
40
  The following hyperparameters were used during training:
41
+ - learning_rate: 0.001
42
+ - train_batch_size: 10
43
+ - eval_batch_size: 5
44
  - seed: 42
45
  - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
  - lr_scheduler_type: linear
47
+ - lr_scheduler_warmup_steps: 50
48
+ - num_epochs: 15
49
+ - mixed_precision_training: Native AMP
50
 
51
  ### Training results
52
 
53
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
55
+ | 1.4918 | 1.0 | 232 | 1.3591 | 0.3672 |
56
+ | 1.0899 | 2.0 | 464 | 0.9012 | 0.5672 |
57
+ | 0.9523 | 3.0 | 696 | 1.2430 | 0.4862 |
58
+ | 0.8062 | 4.0 | 928 | 0.6423 | 0.7759 |
59
+ | 0.5591 | 5.0 | 1160 | 0.5161 | 0.8276 |
60
+ | 0.4538 | 6.0 | 1392 | 0.6369 | 0.8069 |
61
+ | 0.3527 | 7.0 | 1624 | 0.2526 | 0.9207 |
62
+ | 0.3833 | 8.0 | 1856 | 0.2226 | 0.9328 |
63
+ | 0.2532 | 9.0 | 2088 | 0.1955 | 0.9466 |
64
+ | 0.1296 | 10.0 | 2320 | 0.1860 | 0.9483 |
65
+ | 0.144 | 11.0 | 2552 | 0.1885 | 0.9552 |
66
+ | 0.1976 | 12.0 | 2784 | 0.1243 | 0.9655 |
67
+ | 0.0147 | 13.0 | 3016 | 0.1375 | 0.9655 |
68
+ | 0.0149 | 14.0 | 3248 | 0.1061 | 0.9776 |
69
+ | 0.0199 | 15.0 | 3480 | 0.1011 | 0.9724 |
70
 
71
 
72
  ### Framework versions
73
 
74
+ - Transformers 4.53.0
75
  - Pytorch 2.6.0+cu124
76
+ - Datasets 3.6.0
77
+ - Tokenizers 0.21.2
config.json CHANGED
@@ -1,45 +1,137 @@
1
  {
 
 
 
 
 
 
2
  "architectures": [
3
- "RobertaForSequenceClassification"
4
  ],
5
- "attention_probs_dropout_prob": 0.1,
6
- "bos_token_id": 0,
7
- "classifier_dropout": null,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  "eos_token_id": 2,
 
 
 
 
 
 
 
9
  "hidden_act": "gelu",
10
- "hidden_dropout_prob": 0.1,
11
- "hidden_size": 768,
12
  "id2label": {
13
- "0": "LABEL_0",
14
- "1": "LABEL_1",
15
- "2": "LABEL_2",
16
- "3": "LABEL_3",
17
- "4": "LABEL_4",
18
- "5": "LABEL_5",
19
- "6": "LABEL_6"
20
  },
21
  "initializer_range": 0.02,
22
- "intermediate_size": 3072,
23
  "label2id": {
24
- "LABEL_0": 0,
25
- "LABEL_1": 1,
26
- "LABEL_2": 2,
27
- "LABEL_3": 3,
28
- "LABEL_4": 4,
29
- "LABEL_5": 5,
30
- "LABEL_6": 6
31
  },
32
  "layer_norm_eps": 1e-05,
33
- "max_position_embeddings": 514,
34
- "model_type": "roberta",
35
- "num_attention_heads": 12,
36
- "num_hidden_layers": 12,
37
- "pad_token_id": 1,
38
- "position_embedding_type": "absolute",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  "problem_type": "single_label_classification",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  "torch_dtype": "float32",
41
- "transformers_version": "4.51.3",
42
- "type_vocab_size": 1,
43
- "use_cache": true,
44
- "vocab_size": 50265
45
  }
 
1
  {
2
+ "activation_dropout": 0.05,
3
+ "adapter_attn_dim": null,
4
+ "adapter_kernel_size": 3,
5
+ "adapter_stride": 2,
6
+ "add_adapter": false,
7
+ "apply_spec_augment": true,
8
  "architectures": [
9
+ "Wav2Vec2ForSequenceClassification"
10
  ],
11
+ "attention_dropout": 0.1,
12
+ "bos_token_id": 1,
13
+ "classifier_proj_size": 256,
14
+ "codevector_dim": 256,
15
+ "contrastive_logits_temperature": 0.1,
16
+ "conv_bias": true,
17
+ "conv_dim": [
18
+ 512,
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512
25
+ ],
26
+ "conv_kernel": [
27
+ 10,
28
+ 3,
29
+ 3,
30
+ 3,
31
+ 3,
32
+ 2,
33
+ 2
34
+ ],
35
+ "conv_stride": [
36
+ 5,
37
+ 2,
38
+ 2,
39
+ 2,
40
+ 2,
41
+ 2,
42
+ 2
43
+ ],
44
+ "ctc_loss_reduction": "mean",
45
+ "ctc_zero_infinity": true,
46
+ "diversity_loss_weight": 0.1,
47
+ "do_stable_layer_norm": true,
48
  "eos_token_id": 2,
49
+ "feat_extract_activation": "gelu",
50
+ "feat_extract_dropout": 0.0,
51
+ "feat_extract_norm": "layer",
52
+ "feat_proj_dropout": 0.05,
53
+ "feat_quantizer_dropout": 0.0,
54
+ "final_dropout": 0.0,
55
+ "finetuning_task": "wav2vec2_clf",
56
  "hidden_act": "gelu",
57
+ "hidden_dropout": 0.05,
58
+ "hidden_size": 1024,
59
  "id2label": {
60
+ "0": "angry",
61
+ "1": "disgust",
62
+ "2": "fear",
63
+ "3": "happy",
64
+ "4": "neutral",
65
+ "5": "sad",
66
+ "6": "surprised"
67
  },
68
  "initializer_range": 0.02,
69
+ "intermediate_size": 4096,
70
  "label2id": {
71
+ "angry": 0,
72
+ "disgust": 1,
73
+ "fear": 2,
74
+ "happy": 3,
75
+ "neutral": 4,
76
+ "sad": 5,
77
+ "surprised": 6
78
  },
79
  "layer_norm_eps": 1e-05,
80
+ "layerdrop": 0.05,
81
+ "mask_channel_length": 10,
82
+ "mask_channel_min_space": 1,
83
+ "mask_channel_other": 0.0,
84
+ "mask_channel_prob": 0.0,
85
+ "mask_channel_selection": "static",
86
+ "mask_feature_length": 10,
87
+ "mask_feature_min_masks": 0,
88
+ "mask_feature_prob": 0.0,
89
+ "mask_time_length": 10,
90
+ "mask_time_min_masks": 2,
91
+ "mask_time_min_space": 1,
92
+ "mask_time_other": 0.0,
93
+ "mask_time_prob": 0.05,
94
+ "mask_time_selection": "static",
95
+ "model_type": "wav2vec2",
96
+ "num_adapter_layers": 3,
97
+ "num_attention_heads": 16,
98
+ "num_codevector_groups": 2,
99
+ "num_codevectors_per_group": 320,
100
+ "num_conv_pos_embedding_groups": 16,
101
+ "num_conv_pos_embeddings": 128,
102
+ "num_feat_extract_layers": 7,
103
+ "num_hidden_layers": 24,
104
+ "num_negatives": 100,
105
+ "output_hidden_size": 1024,
106
+ "pad_token_id": 0,
107
+ "pooling_mode": "mean",
108
  "problem_type": "single_label_classification",
109
+ "processor_class": "Wav2Vec2CTCTokenizer",
110
+ "proj_codevector_dim": 256,
111
+ "tdnn_dilation": [
112
+ 1,
113
+ 2,
114
+ 3,
115
+ 1,
116
+ 1
117
+ ],
118
+ "tdnn_dim": [
119
+ 512,
120
+ 512,
121
+ 512,
122
+ 512,
123
+ 1500
124
+ ],
125
+ "tdnn_kernel": [
126
+ 5,
127
+ 3,
128
+ 3,
129
+ 1,
130
+ 1
131
+ ],
132
  "torch_dtype": "float32",
133
+ "transformers_version": "4.53.0",
134
+ "use_weighted_layer_sum": false,
135
+ "vocab_size": 33,
136
+ "xvector_output_dim": 512
137
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:291ec4e2a1e7f4381c38897326b88cd4c336451c826f052c3809792f800f8236
3
- size 498628204
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ebb1bc36b34766f7325eb7998f2ba1cb222cc85f3d3b21b7cc90f80da757e97
3
+ size 1262864444
preprocessor_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0.0,
7
+ "processor_class": "Wav2Vec2ProcessorWithLM",
8
+ "return_attention_mask": true,
9
+ "sampling_rate": 16000
10
+ }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7f28fef4a21adab64fc4b3be0ba95ad0894a81aa0482791cd1dd22375c8229aa
3
- size 5240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af5e257efd617a24dbd5e8a90678a44b6bfbccd9a90665ac4737befdf594eed4
3
+ size 5304