salti commited on
Commit
fb12feb
1 Parent(s): 7a01bd6
Files changed (4) hide show
  1. README.md +68 -0
  2. config.json +76 -0
  3. preprocessor_config.json +9 -0
  4. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+
3
+ model-index:
4
+ - name: wav2vec2-large-xlsr-arabic-common_voice-10_epochs
5
+ ---
6
+
7
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
8
+ should probably proofread and complete it, then remove this comment. -->
9
+
10
+ # wav2vec2-large-xlsr-arabic-common_voice-10_epochs
11
+
12
+ This model was trained from scratch on an unkown dataset.
13
+ It achieves the following results on the evaluation set:
14
+ - Loss: 0.3581
15
+ - Wer: 0.4555
16
+
17
+ ## Model description
18
+
19
+ More information needed
20
+
21
+ ## Intended uses & limitations
22
+
23
+ More information needed
24
+
25
+ ## Training and evaluation data
26
+
27
+ More information needed
28
+
29
+ ## Training procedure
30
+
31
+ ### Training hyperparameters
32
+
33
+ The following hyperparameters were used during training:
34
+ - learning_rate: 0.0003
35
+ - train_batch_size: 16
36
+ - eval_batch_size: 8
37
+ - seed: 42
38
+ - gradient_accumulation_steps: 2
39
+ - total_train_batch_size: 32
40
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
41
+ - lr_scheduler_type: linear
42
+ - lr_scheduler_warmup_ratio: 0.1
43
+ - num_epochs: 10
44
+ - mixed_precision_training: Native AMP
45
+
46
+ ### Training results
47
+
48
+ | Training Loss | Epoch | Step | Validation Loss | Wer |
49
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
50
+ | 3.1701 | 0.9 | 400 | 3.1599 | 1.0 |
51
+ | 0.8933 | 1.8 | 800 | 0.7198 | 0.7877 |
52
+ | 0.5849 | 2.7 | 1200 | 0.5046 | 0.6253 |
53
+ | 0.3858 | 3.6 | 1600 | 0.4247 | 0.5561 |
54
+ | 0.3083 | 4.49 | 2000 | 0.4026 | 0.5251 |
55
+ | 0.2556 | 5.39 | 2400 | 0.4010 | 0.5051 |
56
+ | 0.2221 | 6.29 | 2800 | 0.3765 | 0.4861 |
57
+ | 0.2026 | 7.19 | 3200 | 0.3652 | 0.4794 |
58
+ | 0.1996 | 8.09 | 3600 | 0.3627 | 0.4660 |
59
+ | 0.1755 | 8.99 | 4000 | 0.3582 | 0.4619 |
60
+ | 0.1697 | 9.89 | 4400 | 0.3581 | 0.4555 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.6.0
66
+ - Pytorch 1.8.1+cu102
67
+ - Datasets 1.6.2
68
+ - Tokenizers 0.10.2
config.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/wav2vec2-large-xlsr-53",
3
+ "activation_dropout": 0.0,
4
+ "apply_spec_augment": true,
5
+ "architectures": [
6
+ "Wav2Vec2ForCTC"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "bos_token_id": 1,
10
+ "conv_bias": true,
11
+ "conv_dim": [
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512
19
+ ],
20
+ "conv_kernel": [
21
+ 10,
22
+ 3,
23
+ 3,
24
+ 3,
25
+ 3,
26
+ 2,
27
+ 2
28
+ ],
29
+ "conv_stride": [
30
+ 5,
31
+ 2,
32
+ 2,
33
+ 2,
34
+ 2,
35
+ 2,
36
+ 2
37
+ ],
38
+ "ctc_loss_reduction": "mean",
39
+ "ctc_zero_infinity": false,
40
+ "do_stable_layer_norm": true,
41
+ "eos_token_id": 2,
42
+ "feat_extract_activation": "gelu",
43
+ "feat_extract_dropout": 0.0,
44
+ "feat_extract_norm": "layer",
45
+ "feat_proj_dropout": 0.0,
46
+ "final_dropout": 0.0,
47
+ "gradient_checkpointing": true,
48
+ "hidden_act": "gelu",
49
+ "hidden_dropout": 0.1,
50
+ "hidden_size": 1024,
51
+ "initializer_range": 0.02,
52
+ "intermediate_size": 4096,
53
+ "layer_norm_eps": 1e-05,
54
+ "layerdrop": 0.1,
55
+ "mask_channel_length": 10,
56
+ "mask_channel_min_space": 1,
57
+ "mask_channel_other": 0.0,
58
+ "mask_channel_prob": 0.0,
59
+ "mask_channel_selection": "static",
60
+ "mask_feature_length": 10,
61
+ "mask_feature_prob": 0.0,
62
+ "mask_time_length": 10,
63
+ "mask_time_min_space": 1,
64
+ "mask_time_other": 0.0,
65
+ "mask_time_prob": 0.05,
66
+ "mask_time_selection": "static",
67
+ "model_type": "wav2vec2",
68
+ "num_attention_heads": 16,
69
+ "num_conv_pos_embedding_groups": 16,
70
+ "num_conv_pos_embeddings": 128,
71
+ "num_feat_extract_layers": 7,
72
+ "num_hidden_layers": 24,
73
+ "pad_token_id": 38,
74
+ "transformers_version": "4.6.0",
75
+ "vocab_size": 39
76
+ }
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:81047acba53e007063d753d3172804db1d4817a8aa504ce000775ed27a67ab52
3
+ size 1262093719