oliverguhr
commited on
Commit
·
ba365da
1
Parent(s):
7c7f6ef
Upload folder using huggingface_hub
Browse files- README.md +97 -0
- added_tokens.json +6 -0
- all_results.json +15 -0
- config.json +116 -0
- eval_results.json +10 -0
- preprocessor_config.json +10 -0
- pytorch_model.bin +3 -0
- runs/Nov07_15-13-37_ipc13112/events.out.tfevents.1699371922.ipc13112.514063.0 +3 -0
- runs/Nov07_15-13-37_ipc13112/events.out.tfevents.1699389140.ipc13112.514063.1 +3 -0
- runs/Oct30_14-54-33_ipc13112/events.out.tfevents.1698679694.ipc13112.2331418.0 +3 -0
- special_tokens_map.json +10 -0
- tokenizer_config.json +53 -0
- train_results.json +8 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
- vocab.json +35 -0
README.md
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- de
|
4 |
+
license: apache-2.0
|
5 |
+
base_model: facebook/wav2vec2-large-xlsr-53
|
6 |
+
tags:
|
7 |
+
- automatic-speech-recognition
|
8 |
+
- mozilla-foundation/common_voice_13_0
|
9 |
+
- generated_from_trainer
|
10 |
+
datasets:
|
11 |
+
- common_voice_13_0
|
12 |
+
metrics:
|
13 |
+
- wer
|
14 |
+
model-index:
|
15 |
+
- name: wav2vec2-large-xlsr-53-german-cv13-restart
|
16 |
+
results:
|
17 |
+
- task:
|
18 |
+
name: Automatic Speech Recognition
|
19 |
+
type: automatic-speech-recognition
|
20 |
+
dataset:
|
21 |
+
name: MOZILLA-FOUNDATION/COMMON_VOICE_13_0 - DE
|
22 |
+
type: common_voice_13_0
|
23 |
+
config: de
|
24 |
+
split: test
|
25 |
+
args: 'Config: de, Training split: train+validation, Eval split: test'
|
26 |
+
metrics:
|
27 |
+
- name: Wer
|
28 |
+
type: wer
|
29 |
+
value: 0.10748248671697858
|
30 |
+
---
|
31 |
+
|
32 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
33 |
+
should probably proofread and complete it, then remove this comment. -->
|
34 |
+
|
35 |
+
# wav2vec2-large-xlsr-53-german-cv13-restart
|
36 |
+
|
37 |
+
This model is a fine-tuned version of [facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) on the MOZILLA-FOUNDATION/COMMON_VOICE_13_0 - DE dataset.
|
38 |
+
It achieves the following results on the evaluation set:
|
39 |
+
- Loss: 0.1121
|
40 |
+
- Wer: 0.1075
|
41 |
+
- Cer: 0.0286
|
42 |
+
|
43 |
+
## Model description
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Intended uses & limitations
|
48 |
+
|
49 |
+
More information needed
|
50 |
+
|
51 |
+
## Training and evaluation data
|
52 |
+
|
53 |
+
More information needed
|
54 |
+
|
55 |
+
## Training procedure
|
56 |
+
|
57 |
+
### Training hyperparameters
|
58 |
+
|
59 |
+
The following hyperparameters were used during training:
|
60 |
+
- learning_rate: 0.0003
|
61 |
+
- train_batch_size: 32
|
62 |
+
- eval_batch_size: 16
|
63 |
+
- seed: 42
|
64 |
+
- gradient_accumulation_steps: 4
|
65 |
+
- total_train_batch_size: 128
|
66 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
67 |
+
- lr_scheduler_type: linear
|
68 |
+
- lr_scheduler_warmup_ratio: 0.01
|
69 |
+
- num_epochs: 15.0
|
70 |
+
|
71 |
+
### Training results
|
72 |
+
|
73 |
+
| Training Loss | Epoch | Step | Cer | Validation Loss | Wer |
|
74 |
+
|:-------------:|:-----:|:-----:|:------:|:---------------:|:------:|
|
75 |
+
| 0.1679 | 1.0 | 4348 | 0.0459 | 0.1617 | 0.1707 |
|
76 |
+
| 0.1597 | 2.0 | 8697 | 0.0479 | 0.1592 | 0.1717 |
|
77 |
+
| 0.1364 | 3.0 | 13045 | 0.0425 | 0.1524 | 0.1563 |
|
78 |
+
| 0.1311 | 4.0 | 17394 | 0.0406 | 0.1446 | 0.1515 |
|
79 |
+
| 0.1152 | 5.0 | 21742 | 0.0397 | 0.1431 | 0.1470 |
|
80 |
+
| 0.107 | 6.0 | 26091 | 0.0369 | 0.1382 | 0.1377 |
|
81 |
+
| 0.0957 | 7.0 | 30439 | 0.0373 | 0.1343 | 0.1372 |
|
82 |
+
| 0.0924 | 8.0 | 34788 | 0.0355 | 0.1335 | 0.1315 |
|
83 |
+
| 0.0835 | 9.0 | 39136 | 0.0384 | 0.1328 | 0.1380 |
|
84 |
+
| 0.0775 | 10.0 | 43485 | 0.0328 | 0.1232 | 0.1229 |
|
85 |
+
| 0.0752 | 11.0 | 47833 | 0.0309 | 0.1220 | 0.1174 |
|
86 |
+
| 0.0691 | 12.0 | 52182 | 0.0327 | 0.1182 | 0.1197 |
|
87 |
+
| 0.0689 | 13.0 | 56530 | 0.0307 | 0.1163 | 0.1150 |
|
88 |
+
| 0.0653 | 14.0 | 60879 | 0.0304 | 0.1141 | 0.1126 |
|
89 |
+
| 0.0717 | 15.0 | 65220 | 0.1121 | 0.1075 | 0.0286 |
|
90 |
+
|
91 |
+
|
92 |
+
### Framework versions
|
93 |
+
|
94 |
+
- Transformers 4.34.0
|
95 |
+
- Pytorch 2.1.0+cu121
|
96 |
+
- Datasets 2.14.5
|
97 |
+
- Tokenizers 0.14.0
|
added_tokens.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 34,
|
3 |
+
"<s>": 33,
|
4 |
+
"[PAD]": 32,
|
5 |
+
"[UNK]": 31
|
6 |
+
}
|
all_results.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 15.0,
|
3 |
+
"eval_cer": 0.028607112182745118,
|
4 |
+
"eval_loss": 0.11205731332302094,
|
5 |
+
"eval_runtime": 403.6365,
|
6 |
+
"eval_samples": 16143,
|
7 |
+
"eval_samples_per_second": 39.994,
|
8 |
+
"eval_steps_per_second": 2.5,
|
9 |
+
"eval_wer": 0.10748248671697858,
|
10 |
+
"train_loss": 0.0045058862668025425,
|
11 |
+
"train_runtime": 16814.3798,
|
12 |
+
"train_samples": 556578,
|
13 |
+
"train_samples_per_second": 496.52,
|
14 |
+
"train_steps_per_second": 3.879
|
15 |
+
}
|
config.json
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/wav2vec2-large-xlsr-53",
|
3 |
+
"activation_dropout": 0.05,
|
4 |
+
"adapter_attn_dim": null,
|
5 |
+
"adapter_kernel_size": 3,
|
6 |
+
"adapter_stride": 2,
|
7 |
+
"add_adapter": false,
|
8 |
+
"apply_spec_augment": true,
|
9 |
+
"architectures": [
|
10 |
+
"Wav2Vec2ForCTC"
|
11 |
+
],
|
12 |
+
"attention_dropout": 0.1,
|
13 |
+
"bos_token_id": 1,
|
14 |
+
"classifier_proj_size": 256,
|
15 |
+
"codevector_dim": 768,
|
16 |
+
"contrastive_logits_temperature": 0.1,
|
17 |
+
"conv_bias": true,
|
18 |
+
"conv_dim": [
|
19 |
+
512,
|
20 |
+
512,
|
21 |
+
512,
|
22 |
+
512,
|
23 |
+
512,
|
24 |
+
512,
|
25 |
+
512
|
26 |
+
],
|
27 |
+
"conv_kernel": [
|
28 |
+
10,
|
29 |
+
3,
|
30 |
+
3,
|
31 |
+
3,
|
32 |
+
3,
|
33 |
+
2,
|
34 |
+
2
|
35 |
+
],
|
36 |
+
"conv_stride": [
|
37 |
+
5,
|
38 |
+
2,
|
39 |
+
2,
|
40 |
+
2,
|
41 |
+
2,
|
42 |
+
2,
|
43 |
+
2
|
44 |
+
],
|
45 |
+
"ctc_loss_reduction": "mean",
|
46 |
+
"ctc_zero_infinity": false,
|
47 |
+
"diversity_loss_weight": 0.1,
|
48 |
+
"do_stable_layer_norm": true,
|
49 |
+
"eos_token_id": 2,
|
50 |
+
"feat_extract_activation": "gelu",
|
51 |
+
"feat_extract_dropout": 0.0,
|
52 |
+
"feat_extract_norm": "layer",
|
53 |
+
"feat_proj_dropout": 0.05,
|
54 |
+
"feat_quantizer_dropout": 0.0,
|
55 |
+
"final_dropout": 0.0,
|
56 |
+
"hidden_act": "gelu",
|
57 |
+
"hidden_dropout": 0.1,
|
58 |
+
"hidden_size": 1024,
|
59 |
+
"initializer_range": 0.02,
|
60 |
+
"intermediate_size": 4096,
|
61 |
+
"layer_norm_eps": 1e-05,
|
62 |
+
"layerdrop": 0.05,
|
63 |
+
"mask_channel_length": 10,
|
64 |
+
"mask_channel_min_space": 1,
|
65 |
+
"mask_channel_other": 0.0,
|
66 |
+
"mask_channel_prob": 0.0,
|
67 |
+
"mask_channel_selection": "static",
|
68 |
+
"mask_feature_length": 10,
|
69 |
+
"mask_feature_min_masks": 0,
|
70 |
+
"mask_feature_prob": 0.0,
|
71 |
+
"mask_time_length": 10,
|
72 |
+
"mask_time_min_masks": 2,
|
73 |
+
"mask_time_min_space": 1,
|
74 |
+
"mask_time_other": 0.0,
|
75 |
+
"mask_time_prob": 0.05,
|
76 |
+
"mask_time_selection": "static",
|
77 |
+
"model_type": "wav2vec2",
|
78 |
+
"num_adapter_layers": 3,
|
79 |
+
"num_attention_heads": 16,
|
80 |
+
"num_codevector_groups": 2,
|
81 |
+
"num_codevectors_per_group": 320,
|
82 |
+
"num_conv_pos_embedding_groups": 16,
|
83 |
+
"num_conv_pos_embeddings": 128,
|
84 |
+
"num_feat_extract_layers": 7,
|
85 |
+
"num_hidden_layers": 24,
|
86 |
+
"num_negatives": 100,
|
87 |
+
"output_hidden_size": 1024,
|
88 |
+
"pad_token_id": 32,
|
89 |
+
"proj_codevector_dim": 768,
|
90 |
+
"tdnn_dilation": [
|
91 |
+
1,
|
92 |
+
2,
|
93 |
+
3,
|
94 |
+
1,
|
95 |
+
1
|
96 |
+
],
|
97 |
+
"tdnn_dim": [
|
98 |
+
512,
|
99 |
+
512,
|
100 |
+
512,
|
101 |
+
512,
|
102 |
+
1500
|
103 |
+
],
|
104 |
+
"tdnn_kernel": [
|
105 |
+
5,
|
106 |
+
3,
|
107 |
+
3,
|
108 |
+
1,
|
109 |
+
1
|
110 |
+
],
|
111 |
+
"torch_dtype": "float32",
|
112 |
+
"transformers_version": "4.34.0",
|
113 |
+
"use_weighted_layer_sum": false,
|
114 |
+
"vocab_size": 35,
|
115 |
+
"xvector_output_dim": 512
|
116 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 15.0,
|
3 |
+
"eval_cer": 0.028607112182745118,
|
4 |
+
"eval_loss": 0.11205731332302094,
|
5 |
+
"eval_runtime": 403.6365,
|
6 |
+
"eval_samples": 16143,
|
7 |
+
"eval_samples_per_second": 39.994,
|
8 |
+
"eval_steps_per_second": 2.5,
|
9 |
+
"eval_wer": 0.10748248671697858
|
10 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0,
|
7 |
+
"processor_class": "Wav2Vec2Processor",
|
8 |
+
"return_attention_mask": true,
|
9 |
+
"sampling_rate": 16000
|
10 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b534ef5793d0024013681f5531d991a998a8bbb60ce8ebf8ac7ba99cc4337f08
|
3 |
+
size 1262045866
|
runs/Nov07_15-13-37_ipc13112/events.out.tfevents.1699371922.ipc13112.514063.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b678ac729d0dfedb090226de0e7794e04d8bf4e0d01412ec85616d6f3d1674e0
|
3 |
+
size 29792
|
runs/Nov07_15-13-37_ipc13112/events.out.tfevents.1699389140.ipc13112.514063.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34fc3a2065e551c2cb4c528493cd90c78a11a4aedc1b7df3c178896167a1d1ed
|
3 |
+
size 460
|
runs/Oct30_14-54-33_ipc13112/events.out.tfevents.1698679694.ipc13112.2331418.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:088cf721fe1421d004968f6b3b6870ec2896a1788acd23e2662bfbea400a7d35
|
3 |
+
size 336597
|
special_tokens_map.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<s>",
|
4 |
+
"</s>"
|
5 |
+
],
|
6 |
+
"bos_token": "<s>",
|
7 |
+
"eos_token": "</s>",
|
8 |
+
"pad_token": "[PAD]",
|
9 |
+
"unk_token": "[UNK]"
|
10 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"31": {
|
4 |
+
"content": "[UNK]",
|
5 |
+
"lstrip": true,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": true,
|
8 |
+
"single_word": false,
|
9 |
+
"special": false
|
10 |
+
},
|
11 |
+
"32": {
|
12 |
+
"content": "[PAD]",
|
13 |
+
"lstrip": true,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": true,
|
16 |
+
"single_word": false,
|
17 |
+
"special": false
|
18 |
+
},
|
19 |
+
"33": {
|
20 |
+
"content": "<s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"34": {
|
28 |
+
"content": "</s>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
}
|
35 |
+
},
|
36 |
+
"additional_special_tokens": [
|
37 |
+
"<s>",
|
38 |
+
"</s>"
|
39 |
+
],
|
40 |
+
"bos_token": "<s>",
|
41 |
+
"clean_up_tokenization_spaces": true,
|
42 |
+
"do_lower_case": false,
|
43 |
+
"eos_token": "</s>",
|
44 |
+
"model_max_length": 1000000000000000019884624838656,
|
45 |
+
"pad_token": "[PAD]",
|
46 |
+
"processor_class": "Wav2Vec2Processor",
|
47 |
+
"replace_word_delimiter_char": " ",
|
48 |
+
"target_lang": null,
|
49 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
50 |
+
"tokenizer_file": null,
|
51 |
+
"unk_token": "[UNK]",
|
52 |
+
"word_delimiter_token": "|"
|
53 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 15.0,
|
3 |
+
"train_loss": 0.0045058862668025425,
|
4 |
+
"train_runtime": 16814.3798,
|
5 |
+
"train_samples": 556578,
|
6 |
+
"train_samples_per_second": 496.52,
|
7 |
+
"train_steps_per_second": 3.879
|
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:50c6500a9c13e03c9d0e120e7457927ff15567dcf31c81b4373bcc29fdd978da
|
3 |
+
size 4600
|
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 |
+
}
|