Jhon Parra commited on
Commit
62751ae
1 Parent(s): 40d1851

base model

Browse files
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ - "es"
6
+ - "robust-speech-event"
7
+ datasets:
8
+ - common_voice
9
+ model-index:
10
+ - name: wav2vec2-large-xls-r-300m-spanish-large
11
+ results: []
12
+
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
+ # wav2vec2-large-xls-r-300m-spanish-large
19
+
20
+ This model is a fine-tuned version of [tomascufaro/xls-r-es-test](https://huggingface.co/tomascufaro/xls-r-es-test) on the common_voice dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.1431
23
+ - Wer: 0.1197
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0002
43
+ - train_batch_size: 10
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - gradient_accumulation_steps: 2
47
+ - total_train_batch_size: 20
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - lr_scheduler_warmup_steps: 300
51
+ - num_epochs: 5
52
+ - mixed_precision_training: Native AMP
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Wer |
57
+ |:-------------:|:-----:|:-----:|:---------------:|:------:|
58
+ | 0.1769 | 0.15 | 400 | 0.1795 | 0.1698 |
59
+ | 0.217 | 0.3 | 800 | 0.2000 | 0.1945 |
60
+ | 0.2372 | 0.45 | 1200 | 0.1985 | 0.1859 |
61
+ | 0.2351 | 0.6 | 1600 | 0.1901 | 0.1772 |
62
+ | 0.2269 | 0.75 | 2000 | 0.1968 | 0.1783 |
63
+ | 0.2284 | 0.9 | 2400 | 0.1873 | 0.1771 |
64
+ | 0.2014 | 1.06 | 2800 | 0.1840 | 0.1696 |
65
+ | 0.1988 | 1.21 | 3200 | 0.1904 | 0.1730 |
66
+ | 0.1919 | 1.36 | 3600 | 0.1827 | 0.1630 |
67
+ | 0.1919 | 1.51 | 4000 | 0.1788 | 0.1629 |
68
+ | 0.1817 | 1.66 | 4400 | 0.1755 | 0.1558 |
69
+ | 0.1812 | 1.81 | 4800 | 0.1795 | 0.1638 |
70
+ | 0.1808 | 1.96 | 5200 | 0.1762 | 0.1603 |
71
+ | 0.1625 | 2.11 | 5600 | 0.1721 | 0.1557 |
72
+ | 0.1477 | 2.26 | 6000 | 0.1735 | 0.1504 |
73
+ | 0.1508 | 2.41 | 6400 | 0.1708 | 0.1478 |
74
+ | 0.157 | 2.56 | 6800 | 0.1644 | 0.1466 |
75
+ | 0.1491 | 2.71 | 7200 | 0.1638 | 0.1445 |
76
+ | 0.1458 | 2.86 | 7600 | 0.1582 | 0.1426 |
77
+ | 0.1387 | 3.02 | 8000 | 0.1607 | 0.1376 |
78
+ | 0.1269 | 3.17 | 8400 | 0.1559 | 0.1364 |
79
+ | 0.1172 | 3.32 | 8800 | 0.1521 | 0.1335 |
80
+ | 0.1203 | 3.47 | 9200 | 0.1534 | 0.1330 |
81
+ | 0.1177 | 3.62 | 9600 | 0.1485 | 0.1304 |
82
+ | 0.1167 | 3.77 | 10000 | 0.1498 | 0.1302 |
83
+ | 0.1194 | 3.92 | 10400 | 0.1463 | 0.1287 |
84
+ | 0.1053 | 4.07 | 10800 | 0.1483 | 0.1282 |
85
+ | 0.098 | 4.22 | 11200 | 0.1498 | 0.1267 |
86
+ | 0.0958 | 4.37 | 11600 | 0.1461 | 0.1233 |
87
+ | 0.0946 | 4.52 | 12000 | 0.1444 | 0.1218 |
88
+ | 0.094 | 4.67 | 12400 | 0.1434 | 0.1206 |
89
+ | 0.0932 | 4.82 | 12800 | 0.1424 | 0.1206 |
90
+ | 0.0912 | 4.98 | 13200 | 0.1431 | 0.1197 |
91
+
92
+
93
+ ### Framework versions
94
+
95
+ - Transformers 4.17.0.dev0
96
+ - Pytorch 1.10.2+cu102
97
+ - Datasets 1.18.2.dev0
98
+ - Tokenizers 0.11.0
added_tokens.json ADDED
@@ -0,0 +1 @@
 
1
+ {"<s>": 34, "</s>": 35}
config.json ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "tomascufaro/xls-r-es-test",
3
+ "activation_dropout": 0.1,
4
+ "adapter_kernel_size": 3,
5
+ "adapter_stride": 2,
6
+ "add_adapter": false,
7
+ "apply_spec_augment": true,
8
+ "architectures": [
9
+ "Wav2Vec2ForCTC"
10
+ ],
11
+ "attention_dropout": 0.0,
12
+ "bos_token_id": 1,
13
+ "classifier_proj_size": 256,
14
+ "codevector_dim": 768,
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": false,
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.0,
53
+ "feat_quantizer_dropout": 0.0,
54
+ "final_dropout": 0.0,
55
+ "hidden_act": "gelu",
56
+ "hidden_dropout": 0.0,
57
+ "hidden_size": 1024,
58
+ "initializer_range": 0.02,
59
+ "intermediate_size": 4096,
60
+ "layer_norm_eps": 1e-05,
61
+ "layerdrop": 0.0,
62
+ "mask_channel_length": 10,
63
+ "mask_channel_min_space": 1,
64
+ "mask_channel_other": 0.0,
65
+ "mask_channel_prob": 0.0,
66
+ "mask_channel_selection": "static",
67
+ "mask_feature_length": 64,
68
+ "mask_feature_min_masks": 0,
69
+ "mask_feature_prob": 0.25,
70
+ "mask_time_length": 10,
71
+ "mask_time_min_masks": 2,
72
+ "mask_time_min_space": 1,
73
+ "mask_time_other": 0.0,
74
+ "mask_time_prob": 0.05,
75
+ "mask_time_selection": "static",
76
+ "model_type": "wav2vec2",
77
+ "num_adapter_layers": 3,
78
+ "num_attention_heads": 16,
79
+ "num_codevector_groups": 2,
80
+ "num_codevectors_per_group": 320,
81
+ "num_conv_pos_embedding_groups": 16,
82
+ "num_conv_pos_embeddings": 128,
83
+ "num_feat_extract_layers": 7,
84
+ "num_hidden_layers": 24,
85
+ "num_negatives": 100,
86
+ "output_hidden_size": 1024,
87
+ "pad_token_id": 33,
88
+ "proj_codevector_dim": 768,
89
+ "tdnn_dilation": [
90
+ 1,
91
+ 2,
92
+ 3,
93
+ 1,
94
+ 1
95
+ ],
96
+ "tdnn_dim": [
97
+ 512,
98
+ 512,
99
+ 512,
100
+ 512,
101
+ 1500
102
+ ],
103
+ "tdnn_kernel": [
104
+ 5,
105
+ 3,
106
+ 3,
107
+ 1,
108
+ 1
109
+ ],
110
+ "torch_dtype": "float32",
111
+ "transformers_version": "4.17.0.dev0",
112
+ "use_weighted_layer_sum": false,
113
+ "vocab_size": 36,
114
+ "xvector_output_dim": 512
115
+ }
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
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c41222f5493b1c33722cc54f4187750cebfd7d194b2f6ffc95a261b99f8dfb0
3
+ size 1262071281
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "[UNK]", "pad_token": "[PAD]", "additional_special_tokens": [{"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}]}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
1
+ {"unk_token": "[UNK]", "bos_token": "<s>", "eos_token": "</s>", "pad_token": "[PAD]", "do_lower_case": false, "word_delimiter_token": "|", "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "./", "tokenizer_class": "Wav2Vec2CTCTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:746ee9d68c06fa57de985af684a3a28c5f379833673e91d135b889b6bed394cd
3
+ size 3055
vocab.json ADDED
@@ -0,0 +1 @@
 
1
+ {"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6, "g": 7, "h": 8, "i": 9, "j": 10, "k": 11, "l": 12, "m": 13, "n": 14, "o": 15, "p": 16, "q": 17, "r": 18, "s": 19, "t": 20, "u": 21, "v": 22, "w": 23, "x": 24, "y": 25, "z": 26, "á": 27, "í": 28, "ñ": 29, "ó": 30, "ú": 31, "|": 0, "[UNK]": 32, "[PAD]": 33}