samitizerxu commited on
Commit
c5fb639
1 Parent(s): c1ce467

Added model files

Browse files
README.md CHANGED
@@ -1,3 +1,67 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - lg
4
+ license: apache-2.0
5
+ tags:
6
+ - automatic-speech-recognition
7
+ - robust-speech-event
8
+ - common_voice
9
+ - generated_from_trainer
10
+ datasets:
11
+ - common_voice
12
+ model-index:
13
+ - name: wav2vec2-xls-r-300m-lg
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # wav2vec2-xls-r-300m-lg
21
+
22
+ This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the COMMON_VOICE - LG dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.6989
25
+ - Wer: 0.8529
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 0.0003
45
+ - train_batch_size: 16
46
+ - eval_batch_size: 8
47
+ - seed: 42
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 20.0
51
+ - mixed_precision_training: Native AMP
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Wer |
56
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
57
+ | 2.9089 | 6.33 | 500 | 2.8983 | 1.0002 |
58
+ | 2.5754 | 12.66 | 1000 | 1.8710 | 1.0 |
59
+ | 1.4093 | 18.99 | 1500 | 0.7195 | 0.8547 |
60
+
61
+
62
+ ### Framework versions
63
+
64
+ - Transformers 4.17.0.dev0
65
+ - Pytorch 1.10.2+cu102
66
+ - Datasets 1.18.2.dev0
67
+ - Tokenizers 0.11.0
added_tokens.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"<s>": 33, "</s>": 34}
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 20.0,
3
+ "eval_loss": 0.6989022493362427,
4
+ "eval_runtime": 32.5515,
5
+ "eval_samples": 584,
6
+ "eval_samples_per_second": 17.941,
7
+ "eval_steps_per_second": 2.243,
8
+ "eval_wer": 0.8528689439607056,
9
+ "train_loss": 2.2397680982758725,
10
+ "train_runtime": 1536.9705,
11
+ "train_samples": 1250,
12
+ "train_samples_per_second": 16.266,
13
+ "train_steps_per_second": 1.028
14
+ }
checkpoint-1500/config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/wav2vec2-xls-r-300m",
3
+ "activation_dropout": 0.0,
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_feature_length": 64,
63
+ "mask_feature_min_masks": 0,
64
+ "mask_feature_prob": 0.25,
65
+ "mask_time_length": 10,
66
+ "mask_time_min_masks": 2,
67
+ "mask_time_prob": 0.75,
68
+ "model_type": "wav2vec2",
69
+ "num_adapter_layers": 3,
70
+ "num_attention_heads": 16,
71
+ "num_codevector_groups": 2,
72
+ "num_codevectors_per_group": 320,
73
+ "num_conv_pos_embedding_groups": 16,
74
+ "num_conv_pos_embeddings": 128,
75
+ "num_feat_extract_layers": 7,
76
+ "num_hidden_layers": 24,
77
+ "num_negatives": 100,
78
+ "output_hidden_size": 1024,
79
+ "pad_token_id": 32,
80
+ "proj_codevector_dim": 768,
81
+ "tdnn_dilation": [
82
+ 1,
83
+ 2,
84
+ 3,
85
+ 1,
86
+ 1
87
+ ],
88
+ "tdnn_dim": [
89
+ 512,
90
+ 512,
91
+ 512,
92
+ 512,
93
+ 1500
94
+ ],
95
+ "tdnn_kernel": [
96
+ 5,
97
+ 3,
98
+ 3,
99
+ 1,
100
+ 1
101
+ ],
102
+ "torch_dtype": "float32",
103
+ "transformers_version": "4.17.0.dev0",
104
+ "use_weighted_layer_sum": false,
105
+ "vocab_size": 35,
106
+ "xvector_output_dim": 512
107
+ }
checkpoint-1500/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21d904218540109689239922280a946662ee011edd86bec251c7370527ad4941
3
+ size 2490346001
checkpoint-1500/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,
7
+ "return_attention_mask": true,
8
+ "sampling_rate": 16000
9
+ }
checkpoint-1500/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69fb5a065fa6ed0677cba6583748fa75bdefb5c4126396fdf1dff68d7c8a5943
3
+ size 1262067185
checkpoint-1500/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ce7cd11c07d3a00656a6d4bdbcdfd5c7a8cd5e7becd311130665efa84940439
3
+ size 14567
checkpoint-1500/scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0040f974cd0e823a8165d65b98a5e051372bd49cadf90ec18b3f906cfc158652
3
+ size 559
checkpoint-1500/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26e2196ad298cf0d91f1828a2047a2d1124469a2f33874fb3fecd0f1e4c6a57e
3
+ size 623
checkpoint-1500/trainer_state.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 18.9873417721519,
5
+ "global_step": 1500,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 6.33,
12
+ "learning_rate": 0.00020544303797468352,
13
+ "loss": 2.9089,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 6.33,
18
+ "eval_loss": 2.89827823638916,
19
+ "eval_runtime": 29.5705,
20
+ "eval_samples_per_second": 19.749,
21
+ "eval_steps_per_second": 2.469,
22
+ "eval_wer": 1.0002232641214557,
23
+ "step": 500
24
+ },
25
+ {
26
+ "epoch": 12.66,
27
+ "learning_rate": 0.00011069620253164557,
28
+ "loss": 2.5754,
29
+ "step": 1000
30
+ },
31
+ {
32
+ "epoch": 12.66,
33
+ "eval_loss": 1.8709616661071777,
34
+ "eval_runtime": 29.8131,
35
+ "eval_samples_per_second": 19.589,
36
+ "eval_steps_per_second": 2.449,
37
+ "eval_wer": 1.0,
38
+ "step": 1000
39
+ },
40
+ {
41
+ "epoch": 18.99,
42
+ "learning_rate": 1.5759493670886074e-05,
43
+ "loss": 1.4093,
44
+ "step": 1500
45
+ },
46
+ {
47
+ "epoch": 18.99,
48
+ "eval_loss": 0.7194529175758362,
49
+ "eval_runtime": 29.359,
50
+ "eval_samples_per_second": 19.892,
51
+ "eval_steps_per_second": 2.486,
52
+ "eval_wer": 0.854655056932351,
53
+ "step": 1500
54
+ }
55
+ ],
56
+ "max_steps": 1580,
57
+ "num_train_epochs": 20,
58
+ "total_flos": 3.455573616051334e+18,
59
+ "trial_name": null,
60
+ "trial_params": null
61
+ }
checkpoint-1500/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e62690eea4d37160aab77e872f33e76a037a328dce161d3049151e0e9074debf
3
+ size 3055
config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/wav2vec2-xls-r-300m",
3
+ "activation_dropout": 0.0,
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_feature_length": 64,
63
+ "mask_feature_min_masks": 0,
64
+ "mask_feature_prob": 0.25,
65
+ "mask_time_length": 10,
66
+ "mask_time_min_masks": 2,
67
+ "mask_time_prob": 0.75,
68
+ "model_type": "wav2vec2",
69
+ "num_adapter_layers": 3,
70
+ "num_attention_heads": 16,
71
+ "num_codevector_groups": 2,
72
+ "num_codevectors_per_group": 320,
73
+ "num_conv_pos_embedding_groups": 16,
74
+ "num_conv_pos_embeddings": 128,
75
+ "num_feat_extract_layers": 7,
76
+ "num_hidden_layers": 24,
77
+ "num_negatives": 100,
78
+ "output_hidden_size": 1024,
79
+ "pad_token_id": 32,
80
+ "proj_codevector_dim": 768,
81
+ "tdnn_dilation": [
82
+ 1,
83
+ 2,
84
+ 3,
85
+ 1,
86
+ 1
87
+ ],
88
+ "tdnn_dim": [
89
+ 512,
90
+ 512,
91
+ 512,
92
+ 512,
93
+ 1500
94
+ ],
95
+ "tdnn_kernel": [
96
+ 5,
97
+ 3,
98
+ 3,
99
+ 1,
100
+ 1
101
+ ],
102
+ "torch_dtype": "float32",
103
+ "transformers_version": "4.17.0.dev0",
104
+ "use_weighted_layer_sum": false,
105
+ "vocab_size": 35,
106
+ "xvector_output_dim": 512
107
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 20.0,
3
+ "eval_loss": 0.6989022493362427,
4
+ "eval_runtime": 32.5515,
5
+ "eval_samples": 584,
6
+ "eval_samples_per_second": 17.941,
7
+ "eval_steps_per_second": 2.243,
8
+ "eval_wer": 0.8528689439607056
9
+ }
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,
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:48a45355a5682445e5357a871c321461901a9260a46405d104da422725d95f2c
3
+ size 1262067185
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": "./wav2vec2-xls-r-300m-lg", "tokenizer_class": "Wav2Vec2CTCTokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 20.0,
3
+ "train_loss": 2.2397680982758725,
4
+ "train_runtime": 1536.9705,
5
+ "train_samples": 1250,
6
+ "train_samples_per_second": 16.266,
7
+ "train_steps_per_second": 1.028
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 20.0,
5
+ "global_step": 1580,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 6.33,
12
+ "learning_rate": 0.00020544303797468352,
13
+ "loss": 2.9089,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 6.33,
18
+ "eval_loss": 2.89827823638916,
19
+ "eval_runtime": 29.5705,
20
+ "eval_samples_per_second": 19.749,
21
+ "eval_steps_per_second": 2.469,
22
+ "eval_wer": 1.0002232641214557,
23
+ "step": 500
24
+ },
25
+ {
26
+ "epoch": 12.66,
27
+ "learning_rate": 0.00011069620253164557,
28
+ "loss": 2.5754,
29
+ "step": 1000
30
+ },
31
+ {
32
+ "epoch": 12.66,
33
+ "eval_loss": 1.8709616661071777,
34
+ "eval_runtime": 29.8131,
35
+ "eval_samples_per_second": 19.589,
36
+ "eval_steps_per_second": 2.449,
37
+ "eval_wer": 1.0,
38
+ "step": 1000
39
+ },
40
+ {
41
+ "epoch": 18.99,
42
+ "learning_rate": 1.5759493670886074e-05,
43
+ "loss": 1.4093,
44
+ "step": 1500
45
+ },
46
+ {
47
+ "epoch": 18.99,
48
+ "eval_loss": 0.7194529175758362,
49
+ "eval_runtime": 29.359,
50
+ "eval_samples_per_second": 19.892,
51
+ "eval_steps_per_second": 2.486,
52
+ "eval_wer": 0.854655056932351,
53
+ "step": 1500
54
+ },
55
+ {
56
+ "epoch": 20.0,
57
+ "step": 1580,
58
+ "total_flos": 3.6376414033360364e+18,
59
+ "train_loss": 2.2397680982758725,
60
+ "train_runtime": 1536.9705,
61
+ "train_samples_per_second": 16.266,
62
+ "train_steps_per_second": 1.028
63
+ }
64
+ ],
65
+ "max_steps": 1580,
66
+ "num_train_epochs": 20,
67
+ "total_flos": 3.6376414033360364e+18,
68
+ "trial_name": null,
69
+ "trial_params": null
70
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e62690eea4d37160aab77e872f33e76a037a328dce161d3049151e0e9074debf
3
+ size 3055
vocab.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"!": 1, "\"": 2, "'": 3, ",": 4, ".": 5, "?": 6, "a": 7, "b": 8, "c": 9, "d": 10, "e": 11, "f": 12, "g": 13, "h": 14, "i": 15, "j": 16, "k": 17, "l": 18, "m": 19, "n": 20, "o": 21, "p": 22, "r": 23, "s": 24, "t": 25, "u": 26, "v": 27, "w": 28, "y": 29, "z": 30, "|": 0, "[UNK]": 31, "[PAD]": 32}