KasuleTrevor
commited on
Commit
•
57e1f0a
1
Parent(s):
779daf6
Initial commit with copied content
Browse files- README.md +87 -0
- added_tokens.json +4 -0
- config.json +110 -0
- model.safetensors +3 -0
- preprocessor_config.json +10 -0
- special_tokens_map.json +6 -0
- tokenizer_config.json +48 -0
- training_args.bin +3 -0
- vocab.json +31 -0
README.md
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: facebook/wav2vec2-large
|
3 |
+
license: apache-2.0
|
4 |
+
metrics:
|
5 |
+
- wer
|
6 |
+
tags:
|
7 |
+
- generated_from_trainer
|
8 |
+
model-index:
|
9 |
+
- name: wav2vec2-large-sw-cv-100hr-v2
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# wav2vec2-large-sw-cv-100hr-v2
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [facebook/wav2vec2-large](https://huggingface.co/facebook/wav2vec2-large) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.6293
|
21 |
+
- Model Preparation Time: 0.004
|
22 |
+
- Wer: 0.3558
|
23 |
+
- Cer: 0.1353
|
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.0007
|
43 |
+
- train_batch_size: 32
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- gradient_accumulation_steps: 2
|
47 |
+
- total_train_batch_size: 64
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- lr_scheduler_warmup_ratio: 0.6
|
51 |
+
- num_epochs: 120
|
52 |
+
- mixed_precision_training: Native AMP
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Model Preparation Time | Wer | Cer |
|
57 |
+
|:-------------:|:-----:|:-----:|:---------------:|:----------------------:|:------:|:------:|
|
58 |
+
| 3.5004 | 1.0 | 1040 | 0.7862 | 0.004 | 0.6822 | 0.1909 |
|
59 |
+
| 0.4704 | 2.0 | 2080 | 0.5245 | 0.004 | 0.4970 | 0.1335 |
|
60 |
+
| 0.3202 | 3.0 | 3120 | 0.4288 | 0.004 | 0.3956 | 0.1066 |
|
61 |
+
| 0.2551 | 4.0 | 4160 | 0.3800 | 0.004 | 0.3644 | 0.0962 |
|
62 |
+
| 0.2213 | 5.0 | 5200 | 0.3481 | 0.004 | 0.3358 | 0.0911 |
|
63 |
+
| 0.2005 | 6.0 | 6240 | 0.3241 | 0.004 | 0.3101 | 0.0839 |
|
64 |
+
| 0.1911 | 7.0 | 7280 | 0.3535 | 0.004 | 0.3283 | 0.0924 |
|
65 |
+
| 0.1854 | 8.0 | 8320 | 0.3161 | 0.004 | 0.3002 | 0.0843 |
|
66 |
+
| 0.1819 | 9.0 | 9360 | 0.3181 | 0.004 | 0.3233 | 0.0964 |
|
67 |
+
| 0.1788 | 10.0 | 10400 | 0.3099 | 0.004 | 0.3086 | 0.0832 |
|
68 |
+
| 0.1796 | 11.0 | 11440 | 0.3245 | 0.004 | 0.3011 | 0.0827 |
|
69 |
+
| 0.1805 | 12.0 | 12480 | 0.3068 | 0.004 | 0.2967 | 0.0845 |
|
70 |
+
| 0.1791 | 13.0 | 13520 | 0.3163 | 0.004 | 0.3076 | 0.0864 |
|
71 |
+
| 0.1812 | 14.0 | 14560 | 0.3336 | 0.004 | 0.3104 | 0.0867 |
|
72 |
+
| 0.1844 | 15.0 | 15600 | 0.3257 | 0.004 | 0.3117 | 0.0864 |
|
73 |
+
| 0.1884 | 16.0 | 16640 | 0.3440 | 0.004 | 0.3136 | 0.0886 |
|
74 |
+
| 0.1979 | 17.0 | 17680 | 0.3444 | 0.004 | 0.3172 | 0.0899 |
|
75 |
+
| 0.2058 | 18.0 | 18720 | 0.3286 | 0.004 | 0.3456 | 0.1092 |
|
76 |
+
| 0.2114 | 19.0 | 19760 | 0.3603 | 0.004 | 0.3358 | 0.0969 |
|
77 |
+
| 0.2229 | 20.0 | 20800 | 0.3658 | 0.004 | 0.3301 | 0.0954 |
|
78 |
+
| 0.2275 | 21.0 | 21840 | 0.3849 | 0.004 | 0.3729 | 0.1197 |
|
79 |
+
| 0.2351 | 22.0 | 22880 | 0.3753 | 0.004 | 0.3488 | 0.1011 |
|
80 |
+
|
81 |
+
|
82 |
+
### Framework versions
|
83 |
+
|
84 |
+
- Transformers 4.44.0
|
85 |
+
- Pytorch 2.1.0+cu118
|
86 |
+
- Datasets 2.20.0
|
87 |
+
- Tokenizers 0.19.1
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 30,
|
3 |
+
"<s>": 29
|
4 |
+
}
|
config.json
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/wav2vec2-large",
|
3 |
+
"activation_dropout": 0.1,
|
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.0,
|
13 |
+
"bos_token_id": 1,
|
14 |
+
"classifier_proj_size": 256,
|
15 |
+
"codevector_dim": 768,
|
16 |
+
"contrastive_logits_temperature": 0.1,
|
17 |
+
"conv_bias": false,
|
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": false,
|
49 |
+
"eos_token_id": 2,
|
50 |
+
"feat_extract_activation": "gelu",
|
51 |
+
"feat_extract_dropout": 0.0,
|
52 |
+
"feat_extract_norm": "group",
|
53 |
+
"feat_proj_dropout": 0.0,
|
54 |
+
"feat_quantizer_dropout": 0.0,
|
55 |
+
"final_dropout": 0.1,
|
56 |
+
"gradient_checkpointing": false,
|
57 |
+
"hidden_act": "gelu",
|
58 |
+
"hidden_dropout": 0.0,
|
59 |
+
"hidden_dropout_prob": 0.1,
|
60 |
+
"hidden_size": 1024,
|
61 |
+
"initializer_range": 0.02,
|
62 |
+
"intermediate_size": 4096,
|
63 |
+
"layer_norm_eps": 1e-05,
|
64 |
+
"layerdrop": 0.0,
|
65 |
+
"mask_feature_length": 10,
|
66 |
+
"mask_feature_min_masks": 0,
|
67 |
+
"mask_feature_prob": 0.0,
|
68 |
+
"mask_time_length": 10,
|
69 |
+
"mask_time_min_masks": 2,
|
70 |
+
"mask_time_prob": 0.05,
|
71 |
+
"model_type": "wav2vec2",
|
72 |
+
"num_adapter_layers": 3,
|
73 |
+
"num_attention_heads": 16,
|
74 |
+
"num_codevector_groups": 2,
|
75 |
+
"num_codevectors_per_group": 320,
|
76 |
+
"num_conv_pos_embedding_groups": 16,
|
77 |
+
"num_conv_pos_embeddings": 128,
|
78 |
+
"num_feat_extract_layers": 7,
|
79 |
+
"num_hidden_layers": 24,
|
80 |
+
"num_negatives": 100,
|
81 |
+
"output_hidden_size": 1024,
|
82 |
+
"pad_token_id": 28,
|
83 |
+
"proj_codevector_dim": 768,
|
84 |
+
"tdnn_dilation": [
|
85 |
+
1,
|
86 |
+
2,
|
87 |
+
3,
|
88 |
+
1,
|
89 |
+
1
|
90 |
+
],
|
91 |
+
"tdnn_dim": [
|
92 |
+
512,
|
93 |
+
512,
|
94 |
+
512,
|
95 |
+
512,
|
96 |
+
1500
|
97 |
+
],
|
98 |
+
"tdnn_kernel": [
|
99 |
+
5,
|
100 |
+
3,
|
101 |
+
3,
|
102 |
+
1,
|
103 |
+
1
|
104 |
+
],
|
105 |
+
"torch_dtype": "float32",
|
106 |
+
"transformers_version": "4.44.0",
|
107 |
+
"use_weighted_layer_sum": false,
|
108 |
+
"vocab_size": 31,
|
109 |
+
"xvector_output_dim": 512
|
110 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:432f2259f912b888868671d767f53206439e33b1ddf0c8dc029579c4bd28e865
|
3 |
+
size 1261893268
|
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.0,
|
7 |
+
"processor_class": "Wav2Vec2Processor",
|
8 |
+
"return_attention_mask": true,
|
9 |
+
"sampling_rate": 16000
|
10 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"unk_token": "[UNK]"
|
6 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"27": {
|
4 |
+
"content": "[UNK]",
|
5 |
+
"lstrip": true,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": true,
|
8 |
+
"single_word": false,
|
9 |
+
"special": false
|
10 |
+
},
|
11 |
+
"28": {
|
12 |
+
"content": "[PAD]",
|
13 |
+
"lstrip": true,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": true,
|
16 |
+
"single_word": false,
|
17 |
+
"special": false
|
18 |
+
},
|
19 |
+
"29": {
|
20 |
+
"content": "<s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"30": {
|
28 |
+
"content": "</s>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
}
|
35 |
+
},
|
36 |
+
"bos_token": "<s>",
|
37 |
+
"clean_up_tokenization_spaces": true,
|
38 |
+
"do_lower_case": false,
|
39 |
+
"eos_token": "</s>",
|
40 |
+
"model_max_length": 1000000000000000019884624838656,
|
41 |
+
"pad_token": "[PAD]",
|
42 |
+
"processor_class": "Wav2Vec2Processor",
|
43 |
+
"replace_word_delimiter_char": " ",
|
44 |
+
"target_lang": null,
|
45 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
46 |
+
"unk_token": "[UNK]",
|
47 |
+
"word_delimiter_token": "|"
|
48 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:addc29842e1aea61589f273fb7374e928e102f4d16d48005bb202c4ed42df697
|
3 |
+
size 5176
|
vocab.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[PAD]": 28,
|
3 |
+
"[UNK]": 27,
|
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 |
+
}
|