BriereAssia commited on
Commit
febeb1f
·
verified ·
1 Parent(s): b1e7e64

BriereAssia/wav2vec2_finetuned_model_86

Browse files
Files changed (5) hide show
  1. README.md +102 -0
  2. config.json +82 -0
  3. model.safetensors +3 -0
  4. preprocessor_config.json +11 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: facebook/w2v-bert-2.0
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - common_voice_11_0
9
+ metrics:
10
+ - wer
11
+ - bleu
12
+ model-index:
13
+ - name: w2v3
14
+ results:
15
+ - task:
16
+ name: Automatic Speech Recognition
17
+ type: automatic-speech-recognition
18
+ dataset:
19
+ name: common_voice_11_0
20
+ type: common_voice_11_0
21
+ config: ar
22
+ split: test
23
+ args: ar
24
+ metrics:
25
+ - name: Wer
26
+ type: wer
27
+ value: 0.14389960749626846
28
+ - name: Bleu
29
+ type: bleu
30
+ value: 0.6267894360640803
31
+ ---
32
+
33
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
34
+ should probably proofread and complete it, then remove this comment. -->
35
+
36
+ # w2v3
37
+
38
+ This model is a fine-tuned version of [facebook/w2v-bert-2.0](https://huggingface.co/facebook/w2v-bert-2.0) on the common_voice_11_0 dataset.
39
+ It achieves the following results on the evaluation set:
40
+ - Loss: 0.1713
41
+ - Wer: 0.1439
42
+ - Cer: 0.0349
43
+ - Bleu: 0.6268
44
+ - Bert Score F1: 0.9719
45
+
46
+ ## Model description
47
+
48
+ More information needed
49
+
50
+ ## Intended uses & limitations
51
+
52
+ More information needed
53
+
54
+ ## Training and evaluation data
55
+
56
+ More information needed
57
+
58
+ ## Training procedure
59
+
60
+ ### Training hyperparameters
61
+
62
+ The following hyperparameters were used during training:
63
+ - learning_rate: 1e-05
64
+ - train_batch_size: 4
65
+ - eval_batch_size: 8
66
+ - seed: 42
67
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
68
+ - lr_scheduler_type: linear
69
+ - training_steps: 5000
70
+
71
+ ### Training results
72
+
73
+ | Training Loss | Epoch | Step | Validation Loss | Wer | Cer | Bleu | Bert Score F1 |
74
+ |:-------------:|:------:|:----:|:---------------:|:------:|:------:|:------:|:-------------:|
75
+ | 3.2221 | 0.0357 | 250 | 0.6698 | 0.5755 | 0.1572 | 0.1621 | 0.8585 |
76
+ | 0.6124 | 0.0713 | 500 | 0.3894 | 0.2558 | 0.0702 | 0.4591 | 0.9370 |
77
+ | 0.3391 | 0.1070 | 750 | 0.3347 | 0.2498 | 0.0672 | 0.4715 | 0.9382 |
78
+ | 0.2579 | 0.1426 | 1000 | 0.2844 | 0.2047 | 0.0547 | 0.5279 | 0.9519 |
79
+ | 0.2819 | 0.1783 | 1250 | 0.2671 | 0.2083 | 0.0538 | 0.5314 | 0.9543 |
80
+ | 0.2042 | 0.2139 | 1500 | 0.2500 | 0.2029 | 0.0502 | 0.5389 | 0.9579 |
81
+ | 0.2262 | 0.2496 | 1750 | 0.2324 | 0.1807 | 0.0466 | 0.5678 | 0.9611 |
82
+ | 0.2001 | 0.2853 | 2000 | 0.2181 | 0.1777 | 0.0434 | 0.5733 | 0.9642 |
83
+ | 0.1609 | 0.3209 | 2250 | 0.2095 | 0.1705 | 0.0430 | 0.5845 | 0.9648 |
84
+ | 0.2138 | 0.3566 | 2500 | 0.2064 | 0.1561 | 0.0395 | 0.6074 | 0.9678 |
85
+ | 0.1736 | 0.3922 | 2750 | 0.2018 | 0.1630 | 0.0398 | 0.5954 | 0.9675 |
86
+ | 0.1622 | 0.4279 | 3000 | 0.2000 | 0.1602 | 0.0389 | 0.6004 | 0.9682 |
87
+ | 0.1737 | 0.4636 | 3250 | 0.2017 | 0.1557 | 0.0383 | 0.6093 | 0.9685 |
88
+ | 0.1525 | 0.4992 | 3500 | 0.1844 | 0.1460 | 0.0362 | 0.6230 | 0.9696 |
89
+ | 0.1615 | 0.5349 | 3750 | 0.1947 | 0.1496 | 0.0365 | 0.6171 | 0.9704 |
90
+ | 0.1558 | 0.5705 | 4000 | 0.1806 | 0.1488 | 0.0364 | 0.6184 | 0.9705 |
91
+ | 0.125 | 0.6062 | 4250 | 0.1792 | 0.1468 | 0.0352 | 0.6234 | 0.9716 |
92
+ | 0.1281 | 0.6418 | 4500 | 0.1785 | 0.1460 | 0.0353 | 0.6230 | 0.9717 |
93
+ | 0.1321 | 0.6775 | 4750 | 0.1732 | 0.1453 | 0.0350 | 0.6245 | 0.9718 |
94
+ | 0.1356 | 0.7132 | 5000 | 0.1713 | 0.1439 | 0.0349 | 0.6268 | 0.9719 |
95
+
96
+
97
+ ### Framework versions
98
+
99
+ - Transformers 4.49.0
100
+ - Pytorch 2.5.1+cu121
101
+ - Datasets 3.3.1
102
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/w2v-bert-2.0",
3
+ "activation_dropout": 0.0,
4
+ "adapter_act": "relu",
5
+ "adapter_kernel_size": 3,
6
+ "adapter_stride": 2,
7
+ "add_adapter": true,
8
+ "apply_spec_augment": false,
9
+ "architectures": [
10
+ "Wav2Vec2BertForCTC"
11
+ ],
12
+ "attention_dropout": 0.0,
13
+ "bos_token_id": 1,
14
+ "classifier_proj_size": 768,
15
+ "codevector_dim": 768,
16
+ "conformer_conv_dropout": 0.1,
17
+ "contrastive_logits_temperature": 0.1,
18
+ "conv_depthwise_kernel_size": 31,
19
+ "ctc_loss_reduction": "mean",
20
+ "ctc_zero_infinity": false,
21
+ "diversity_loss_weight": 0.1,
22
+ "eos_token_id": 2,
23
+ "feat_proj_dropout": 0.0,
24
+ "feat_quantizer_dropout": 0.0,
25
+ "feature_projection_input_dim": 160,
26
+ "final_dropout": 0.1,
27
+ "hidden_act": "swish",
28
+ "hidden_dropout": 0.0,
29
+ "hidden_size": 1024,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 4096,
32
+ "layer_norm_eps": 1e-05,
33
+ "layerdrop": 0.0,
34
+ "left_max_position_embeddings": 64,
35
+ "mask_feature_length": 10,
36
+ "mask_feature_min_masks": 0,
37
+ "mask_feature_prob": 0.0,
38
+ "mask_time_length": 10,
39
+ "mask_time_min_masks": 2,
40
+ "mask_time_prob": 0.0,
41
+ "max_source_positions": 5000,
42
+ "model_type": "wav2vec2-bert",
43
+ "num_adapter_layers": 1,
44
+ "num_attention_heads": 16,
45
+ "num_codevector_groups": 2,
46
+ "num_codevectors_per_group": 320,
47
+ "num_hidden_layers": 24,
48
+ "num_negatives": 100,
49
+ "output_hidden_size": 1024,
50
+ "pad_token_id": 74,
51
+ "position_embeddings_type": "relative_key",
52
+ "proj_codevector_dim": 768,
53
+ "right_max_position_embeddings": 8,
54
+ "rotary_embedding_base": 10000,
55
+ "tdnn_dilation": [
56
+ 1,
57
+ 2,
58
+ 3,
59
+ 1,
60
+ 1
61
+ ],
62
+ "tdnn_dim": [
63
+ 512,
64
+ 512,
65
+ 512,
66
+ 512,
67
+ 1500
68
+ ],
69
+ "tdnn_kernel": [
70
+ 5,
71
+ 3,
72
+ 3,
73
+ 1,
74
+ 1
75
+ ],
76
+ "torch_dtype": "float32",
77
+ "transformers_version": "4.49.0",
78
+ "use_intermediate_ffn_before_adapter": false,
79
+ "use_weighted_layer_sum": false,
80
+ "vocab_size": 77,
81
+ "xvector_output_dim": 512
82
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4990c79313d597fe147e31917b8a8e07cbf050f2832ba941c14f0a967dc4db54
3
+ size 2423130260
preprocessor_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "feature_extractor_type": "SeamlessM4TFeatureExtractor",
3
+ "feature_size": 80,
4
+ "num_mel_bins": 80,
5
+ "padding_side": "right",
6
+ "padding_value": 1,
7
+ "processor_class": "Wav2Vec2BertProcessor",
8
+ "return_attention_mask": true,
9
+ "sampling_rate": 16000,
10
+ "stride": 2
11
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:718ab1836dab9b9949b83db5b99ac96ddb6fabebe306d84a3e5d2ca2da015545
3
+ size 5240