oliverguhr commited on
Commit
5fd1005
1 Parent(s): 8fa7afe

initial commit

Browse files
README copy.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - de
4
+ license: apache-2.0
5
+ tags:
6
+ - automatic-speech-recognition
7
+ - mozilla-foundation/common_voice_9_0
8
+ - generated_from_trainer
9
+ datasets:
10
+ - common_voice
11
+ model-index:
12
+ - name: wav2vec2-base-german-cv9
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # wav2vec2-base-german-cv9
20
+
21
+ This model is a fine-tuned version of [facebook/wav2vec2-base](https://huggingface.co/facebook/wav2vec2-base) on the MOZILLA-FOUNDATION/COMMON_VOICE_9_0 - DE dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.1742
24
+ - Wer: 0.1209
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 0.0001
44
+ - train_batch_size: 16
45
+ - eval_batch_size: 32
46
+ - seed: 42
47
+ - gradient_accumulation_steps: 8
48
+ - total_train_batch_size: 128
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - lr_scheduler_warmup_ratio: 0.1
52
+ - num_epochs: 50.0
53
+ - mixed_precision_training: Native AMP
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Wer |
58
+ |:-------------:|:-----:|:------:|:---------------:|:------:|
59
+ | 0.6827 | 1.0 | 3557 | 0.6695 | 0.6247 |
60
+ | 0.3992 | 2.0 | 7114 | 0.3738 | 0.3936 |
61
+ | 0.2611 | 3.0 | 10671 | 0.3011 | 0.3177 |
62
+ | 0.2536 | 4.0 | 14228 | 0.2672 | 0.2749 |
63
+ | 0.1943 | 5.0 | 17785 | 0.2487 | 0.2480 |
64
+ | 0.2004 | 6.0 | 21342 | 0.2246 | 0.2268 |
65
+ | 0.1605 | 7.0 | 24899 | 0.2176 | 0.2120 |
66
+ | 0.1579 | 8.0 | 28456 | 0.2046 | 0.2024 |
67
+ | 0.1668 | 9.0 | 32013 | 0.2027 | 0.1944 |
68
+ | 0.1338 | 10.0 | 35570 | 0.1968 | 0.1854 |
69
+ | 0.1478 | 11.0 | 39127 | 0.1963 | 0.1823 |
70
+ | 0.1177 | 12.0 | 42684 | 0.1956 | 0.1800 |
71
+ | 0.1245 | 13.0 | 46241 | 0.1889 | 0.1732 |
72
+ | 0.1124 | 14.0 | 49798 | 0.1868 | 0.1714 |
73
+ | 0.1112 | 15.0 | 53355 | 0.1805 | 0.1650 |
74
+ | 0.1209 | 16.0 | 56912 | 0.1860 | 0.1614 |
75
+ | 0.1002 | 17.0 | 60469 | 0.1828 | 0.1604 |
76
+ | 0.118 | 18.0 | 64026 | 0.1832 | 0.1580 |
77
+ | 0.0974 | 19.0 | 67583 | 0.1771 | 0.1555 |
78
+ | 0.1007 | 20.0 | 71140 | 0.1812 | 0.1532 |
79
+ | 0.0866 | 21.0 | 74697 | 0.1752 | 0.1504 |
80
+ | 0.0901 | 22.0 | 78254 | 0.1690 | 0.1477 |
81
+ | 0.0964 | 23.0 | 81811 | 0.1773 | 0.1489 |
82
+ | 0.085 | 24.0 | 85368 | 0.1776 | 0.1456 |
83
+ | 0.0945 | 25.0 | 88925 | 0.1786 | 0.1428 |
84
+ | 0.0804 | 26.0 | 92482 | 0.1737 | 0.1429 |
85
+ | 0.0832 | 27.0 | 96039 | 0.1789 | 0.1394 |
86
+ | 0.0683 | 28.0 | 99596 | 0.1741 | 0.1390 |
87
+ | 0.0761 | 29.0 | 103153 | 0.1688 | 0.1379 |
88
+ | 0.0833 | 30.0 | 106710 | 0.1726 | 0.1370 |
89
+ | 0.0753 | 31.0 | 110267 | 0.1774 | 0.1353 |
90
+ | 0.08 | 32.0 | 113824 | 0.1734 | 0.1344 |
91
+ | 0.0644 | 33.0 | 117381 | 0.1737 | 0.1334 |
92
+ | 0.0745 | 34.0 | 120938 | 0.1763 | 0.1335 |
93
+ | 0.0629 | 35.0 | 124495 | 0.1761 | 0.1311 |
94
+ | 0.0654 | 36.0 | 128052 | 0.1718 | 0.1302 |
95
+ | 0.0656 | 37.0 | 131609 | 0.1697 | 0.1301 |
96
+ | 0.0643 | 38.0 | 135166 | 0.1716 | 0.1279 |
97
+ | 0.0683 | 39.0 | 138723 | 0.1777 | 0.1279 |
98
+ | 0.0587 | 40.0 | 142280 | 0.1735 | 0.1271 |
99
+ | 0.0693 | 41.0 | 145837 | 0.1780 | 0.1260 |
100
+ | 0.0532 | 42.0 | 149394 | 0.1724 | 0.1245 |
101
+ | 0.0594 | 43.0 | 152951 | 0.1736 | 0.1250 |
102
+ | 0.0544 | 44.0 | 156508 | 0.1744 | 0.1238 |
103
+ | 0.0559 | 45.0 | 160065 | 0.1770 | 0.1232 |
104
+ | 0.0557 | 46.0 | 163622 | 0.1766 | 0.1231 |
105
+ | 0.0521 | 47.0 | 167179 | 0.1751 | 0.1220 |
106
+ | 0.0591 | 48.0 | 170736 | 0.1724 | 0.1217 |
107
+ | 0.0507 | 49.0 | 174293 | 0.1753 | 0.1212 |
108
+ | 0.0577 | 50.0 | 177850 | 0.1742 | 0.1209 |
109
+
110
+
111
+ ### Framework versions
112
+
113
+ - Transformers 4.20.1
114
+ - Pytorch 1.11.0+cu113
115
+ - Datasets 2.0.0
116
+ - Tokenizers 0.11.6
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ {
2
+ "</s>": 34,
3
+ "<s>": 33
4
+ }
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 50.0,
3
+ "eval_loss": 0.1741643100976944,
4
+ "eval_runtime": 535.6864,
5
+ "eval_samples": 16033,
6
+ "eval_samples_per_second": 29.93,
7
+ "eval_steps_per_second": 0.937,
8
+ "eval_wer": 0.12089719269034979,
9
+ "train_loss": 0.042193543246732794,
10
+ "train_runtime": 659833.0285,
11
+ "train_samples": 455356,
12
+ "train_samples_per_second": 34.505,
13
+ "train_steps_per_second": 0.27
14
+ }
config.json ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/wav2vec2-base",
3
+ "activation_dropout": 0.05,
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.1,
12
+ "bos_token_id": 1,
13
+ "classifier_proj_size": 256,
14
+ "codevector_dim": 256,
15
+ "contrastive_logits_temperature": 0.1,
16
+ "conv_bias": false,
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": false,
48
+ "eos_token_id": 2,
49
+ "feat_extract_activation": "gelu",
50
+ "feat_extract_norm": "group",
51
+ "feat_proj_dropout": 0.05,
52
+ "feat_quantizer_dropout": 0.0,
53
+ "final_dropout": 0.0,
54
+ "freeze_feat_extract_train": true,
55
+ "hidden_act": "gelu",
56
+ "hidden_dropout": 0.1,
57
+ "hidden_size": 768,
58
+ "initializer_range": 0.02,
59
+ "intermediate_size": 3072,
60
+ "layer_norm_eps": 1e-05,
61
+ "layerdrop": 0.05,
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": 10,
68
+ "mask_feature_min_masks": 0,
69
+ "mask_feature_prob": 0.0,
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
+ "no_mask_channel_overlap": false,
78
+ "no_mask_time_overlap": false,
79
+ "num_adapter_layers": 3,
80
+ "num_attention_heads": 12,
81
+ "num_codevector_groups": 2,
82
+ "num_codevectors_per_group": 320,
83
+ "num_conv_pos_embedding_groups": 16,
84
+ "num_conv_pos_embeddings": 128,
85
+ "num_feat_extract_layers": 7,
86
+ "num_hidden_layers": 12,
87
+ "num_negatives": 100,
88
+ "output_hidden_size": 768,
89
+ "pad_token_id": 32,
90
+ "proj_codevector_dim": 256,
91
+ "tdnn_dilation": [
92
+ 1,
93
+ 2,
94
+ 3,
95
+ 1,
96
+ 1
97
+ ],
98
+ "tdnn_dim": [
99
+ 512,
100
+ 512,
101
+ 512,
102
+ 512,
103
+ 1500
104
+ ],
105
+ "tdnn_kernel": [
106
+ 5,
107
+ 3,
108
+ 3,
109
+ 1,
110
+ 1
111
+ ],
112
+ "torch_dtype": "float32",
113
+ "transformers_version": "4.20.1",
114
+ "use_weighted_layer_sum": false,
115
+ "vocab_size": 35,
116
+ "xvector_output_dim": 512
117
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 50.0,
3
+ "eval_loss": 0.1741643100976944,
4
+ "eval_runtime": 535.6864,
5
+ "eval_samples": 16033,
6
+ "eval_samples_per_second": 29.93,
7
+ "eval_steps_per_second": 0.937,
8
+ "eval_wer": 0.12089719269034979
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.0,
7
+ "return_attention_mask": false,
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:594263b1ddabcbf1a69a6a470c69d8bbae0fb97243b8eda2caed5767eaebd29d
3
+ size 377666071
runs/Jul07_16-49-12_Niles/1657209850.269351/events.out.tfevents.1657209850.Niles.4002262.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97dd3b8c2c0289ece0149d5b20e5893d4fda6e8688217469dea5f38f761312cb
3
+ size 5355
runs/Jul07_16-49-12_Niles/events.out.tfevents.1657209850.Niles.4002262.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b67553306ddd2efd55ab96d30daca339a391290fa57b90b1286f96b8c9a85808
3
+ size 389960
runs/Jul13_16-56-05_Niles/1657728905.835211/events.out.tfevents.1657728905.Niles.195817.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b9b817ad6a2eccdfd24589632280818e2b6f7c7b5daaf58f0dd35cf8368d215
3
+ size 5355
runs/Jul13_16-56-05_Niles/events.out.tfevents.1657728905.Niles.195817.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb88b2f7adff7fccee829a650d7233295601202e027ec6b1277c46a362a1b187
3
+ size 584513
runs/Jul13_16-56-05_Niles/events.out.tfevents.1658389274.Niles.195817.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8be03702656ee8d645b6ab509a7d0180eda223cebd12281ed94e87ec53d99c47
3
+ size 364
special_tokens_map.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": true,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ {
11
+ "content": "</s>",
12
+ "lstrip": false,
13
+ "normalized": true,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ {
18
+ "content": "<s>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ {
25
+ "content": "</s>",
26
+ "lstrip": false,
27
+ "normalized": true,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ ],
32
+ "bos_token": "<s>",
33
+ "eos_token": "</s>",
34
+ "pad_token": "[PAD]",
35
+ "unk_token": "[UNK]"
36
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "do_lower_case": false,
4
+ "eos_token": "</s>",
5
+ "name_or_path": "./wav2vec2-base-german-cv9",
6
+ "pad_token": "[PAD]",
7
+ "replace_word_delimiter_char": " ",
8
+ "special_tokens_map_file": null,
9
+ "tokenizer_class": "Wav2Vec2CTCTokenizer",
10
+ "unk_token": "[UNK]",
11
+ "word_delimiter_token": "|"
12
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 50.0,
3
+ "train_loss": 0.042193543246732794,
4
+ "train_runtime": 659833.0285,
5
+ "train_samples": 455356,
6
+ "train_samples_per_second": 34.505,
7
+ "train_steps_per_second": 0.27
8
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8ef92068a1aa7f666467d6c8b9d1437dd1b18260d6676b3200737e95582a26f
3
+ size 3311
vocab.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "[PAD]": 32,
3
+ "[UNK]": 31,
4
+ "a": 1,
5
+ "b": 2,
6
+ "c": 3,
7
+ "d": 4,
8
+ "e": 5,
9
+ "f": 6,
10
+ "g": 7,
11
+ "h": 8,
12
+ "i": 9,
13
+ "j": 10,
14
+ "k": 11,
15
+ "l": 12,
16
+ "m": 13,
17
+ "n": 14,
18
+ "o": 15,
19
+ "p": 16,
20
+ "q": 17,
21
+ "r": 18,
22
+ "s": 19,
23
+ "t": 20,
24
+ "u": 21,
25
+ "v": 22,
26
+ "w": 23,
27
+ "x": 24,
28
+ "y": 25,
29
+ "z": 26,
30
+ "|": 0,
31
+ "ß": 27,
32
+ "ä": 28,
33
+ "ö": 29,
34
+ "ü": 30
35
+ }