kavyamanohar
commited on
Commit
•
bb4e071
1
Parent(s):
f7989a9
Upload 10 files
Browse files- README.md +71 -0
- added_tokens.json +6 -0
- alphabet.json +1 -0
- config.json +108 -0
- model.safetensors +3 -0
- preprocessor_config.json +10 -0
- special_tokens_map.json +30 -0
- tokenizer_config.json +64 -0
- training_args.bin +3 -0
- vocab.json +78 -0
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/wav2vec2-xls-r-300m
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- wer
|
8 |
+
model-index:
|
9 |
+
- name: XLSR-LM-NewData
|
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 |
+
# XLSR-LM-NewData
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.1395
|
21 |
+
- Wer: 0.2952
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 0.00024
|
41 |
+
- train_batch_size: 1
|
42 |
+
- eval_batch_size: 8
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 4
|
45 |
+
- total_train_batch_size: 4
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_steps: 800
|
49 |
+
- num_epochs: 1
|
50 |
+
- mixed_precision_training: Native AMP
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer |
|
55 |
+
|:-------------:|:------:|:----:|:---------------:|:------:|
|
56 |
+
| 1.4912 | 0.1165 | 1000 | 0.5497 | 0.7011 |
|
57 |
+
| 0.5377 | 0.2330 | 2000 | 0.3292 | 0.5364 |
|
58 |
+
| 0.4343 | 0.3494 | 3000 | 0.2475 | 0.4424 |
|
59 |
+
| 0.3678 | 0.4659 | 4000 | 0.2145 | 0.4014 |
|
60 |
+
| 0.3345 | 0.5824 | 5000 | 0.1898 | 0.3774 |
|
61 |
+
| 0.3029 | 0.6989 | 6000 | 0.1718 | 0.3441 |
|
62 |
+
| 0.2685 | 0.8153 | 7000 | 0.1517 | 0.3135 |
|
63 |
+
| 0.2385 | 0.9318 | 8000 | 0.1395 | 0.2952 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.42.4
|
69 |
+
- Pytorch 2.3.1+cu121
|
70 |
+
- Datasets 2.20.0
|
71 |
+
- Tokenizers 0.19.1
|
added_tokens.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 77,
|
3 |
+
"<s>": 76,
|
4 |
+
"dummy1": 78,
|
5 |
+
"dummy2": 79
|
6 |
+
}
|
alphabet.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"labels": [" ", "\u0d02", "\u0d03", "\u0d05", "\u0d06", "\u0d07", "\u0d08", "\u0d09", "\u0d0a", "\u0d0b", "\u0d0e", "\u0d0f", "\u0d10", "\u0d12", "\u0d13", "\u0d14", "\u0d15", "\u0d16", "\u0d17", "\u0d18", "\u0d19", "\u0d1a", "\u0d1b", "\u0d1c", "\u0d1d", "\u0d1e", "\u0d1f", "\u0d20", "\u0d21", "\u0d22", "\u0d23", "\u0d24", "\u0d25", "\u0d26", "\u0d27", "\u0d28", "\u0d2a", "\u0d2b", "\u0d2c", "\u0d2d", "\u0d2e", "\u0d2f", "\u0d30", "\u0d31", "\u0d32", "\u0d33", "\u0d34", "\u0d35", "\u0d36", "\u0d37", "\u0d38", "\u0d39", "\u0d3e", "\u0d3f", "\u0d40", "\u0d41", "\u0d42", "\u0d43", "\u0d46", "\u0d47", "\u0d48", "\u0d4a", "\u0d4b", "\u0d4c", "\u0d4d", "\u0d57", "\u0d7a", "\u0d7b", "\u0d7c", "\u0d7d", "\u0d7e", "\u200c", "\u200d", "\u200e", "\u2047", "", "<s>", "</s>", "dummy1", "dummy2"], "is_bpe": false}
|
config.json
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/wav2vec2-xls-r-300m",
|
3 |
+
"activation_dropout": 0.0,
|
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.094,
|
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.0,
|
54 |
+
"feat_quantizer_dropout": 0.0,
|
55 |
+
"final_dropout": 0.0,
|
56 |
+
"hidden_act": "gelu",
|
57 |
+
"hidden_dropout": 0.05,
|
58 |
+
"hidden_size": 1024,
|
59 |
+
"initializer_range": 0.02,
|
60 |
+
"intermediate_size": 4096,
|
61 |
+
"layer_norm_eps": 1e-05,
|
62 |
+
"layerdrop": 0.045,
|
63 |
+
"mask_feature_length": 10,
|
64 |
+
"mask_feature_min_masks": 0,
|
65 |
+
"mask_feature_prob": 0.0,
|
66 |
+
"mask_time_length": 10,
|
67 |
+
"mask_time_min_masks": 2,
|
68 |
+
"mask_time_prob": 0.082,
|
69 |
+
"model_type": "wav2vec2",
|
70 |
+
"num_adapter_layers": 3,
|
71 |
+
"num_attention_heads": 16,
|
72 |
+
"num_codevector_groups": 2,
|
73 |
+
"num_codevectors_per_group": 320,
|
74 |
+
"num_conv_pos_embedding_groups": 16,
|
75 |
+
"num_conv_pos_embeddings": 128,
|
76 |
+
"num_feat_extract_layers": 7,
|
77 |
+
"num_hidden_layers": 24,
|
78 |
+
"num_negatives": 100,
|
79 |
+
"output_hidden_size": 1024,
|
80 |
+
"pad_token_id": 75,
|
81 |
+
"proj_codevector_dim": 768,
|
82 |
+
"tdnn_dilation": [
|
83 |
+
1,
|
84 |
+
2,
|
85 |
+
3,
|
86 |
+
1,
|
87 |
+
1
|
88 |
+
],
|
89 |
+
"tdnn_dim": [
|
90 |
+
512,
|
91 |
+
512,
|
92 |
+
512,
|
93 |
+
512,
|
94 |
+
1500
|
95 |
+
],
|
96 |
+
"tdnn_kernel": [
|
97 |
+
5,
|
98 |
+
3,
|
99 |
+
3,
|
100 |
+
1,
|
101 |
+
1
|
102 |
+
],
|
103 |
+
"torch_dtype": "float32",
|
104 |
+
"transformers_version": "4.42.4",
|
105 |
+
"use_weighted_layer_sum": false,
|
106 |
+
"vocab_size": 80,
|
107 |
+
"xvector_output_dim": 512
|
108 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6da39ad618919201735047e455a8848429268f4fa92f890e1a16397fe50f7489
|
3 |
+
size 1262135480
|
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": "Wav2Vec2ProcessorWithLM",
|
8 |
+
"return_attention_mask": true,
|
9 |
+
"sampling_rate": 16000
|
10 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": true,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": true,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "[UNK]",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": true,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"74": {
|
4 |
+
"content": "[UNK]",
|
5 |
+
"lstrip": true,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": true,
|
8 |
+
"single_word": false,
|
9 |
+
"special": false
|
10 |
+
},
|
11 |
+
"75": {
|
12 |
+
"content": "[PAD]",
|
13 |
+
"lstrip": true,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": true,
|
16 |
+
"single_word": false,
|
17 |
+
"special": false
|
18 |
+
},
|
19 |
+
"76": {
|
20 |
+
"content": "<s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"77": {
|
28 |
+
"content": "</s>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"78": {
|
36 |
+
"content": "dummy1",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
},
|
43 |
+
"79": {
|
44 |
+
"content": "dummy2",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": true
|
50 |
+
}
|
51 |
+
},
|
52 |
+
"bos_token": "<s>",
|
53 |
+
"clean_up_tokenization_spaces": true,
|
54 |
+
"do_lower_case": false,
|
55 |
+
"eos_token": "</s>",
|
56 |
+
"model_max_length": 1000000000000000019884624838656,
|
57 |
+
"pad_token": "[PAD]",
|
58 |
+
"processor_class": "Wav2Vec2ProcessorWithLM",
|
59 |
+
"replace_word_delimiter_char": " ",
|
60 |
+
"target_lang": null,
|
61 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
62 |
+
"unk_token": "[UNK]",
|
63 |
+
"word_delimiter_token": "|"
|
64 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e27d53ffc74b6f94b7a51230d9d08bfc81e5fc03114a45c15ce34547ff48bcc2
|
3 |
+
size 5240
|
vocab.json
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[PAD]": 75,
|
3 |
+
"[UNK]": 74,
|
4 |
+
"|": 0,
|
5 |
+
"ം": 1,
|
6 |
+
"ഃ": 2,
|
7 |
+
"അ": 3,
|
8 |
+
"ആ": 4,
|
9 |
+
"ഇ": 5,
|
10 |
+
"ഈ": 6,
|
11 |
+
"ഉ": 7,
|
12 |
+
"ഊ": 8,
|
13 |
+
"ഋ": 9,
|
14 |
+
"എ": 10,
|
15 |
+
"ഏ": 11,
|
16 |
+
"ഐ": 12,
|
17 |
+
"ഒ": 13,
|
18 |
+
"ഓ": 14,
|
19 |
+
"ഔ": 15,
|
20 |
+
"ക": 16,
|
21 |
+
"ഖ": 17,
|
22 |
+
"ഗ": 18,
|
23 |
+
"ഘ": 19,
|
24 |
+
"ങ": 20,
|
25 |
+
"ച": 21,
|
26 |
+
"ഛ": 22,
|
27 |
+
"ജ": 23,
|
28 |
+
"ഝ": 24,
|
29 |
+
"ഞ": 25,
|
30 |
+
"ട": 26,
|
31 |
+
"ഠ": 27,
|
32 |
+
"ഡ": 28,
|
33 |
+
"ഢ": 29,
|
34 |
+
"ണ": 30,
|
35 |
+
"ത": 31,
|
36 |
+
"ഥ": 32,
|
37 |
+
"ദ": 33,
|
38 |
+
"ധ": 34,
|
39 |
+
"ന": 35,
|
40 |
+
"പ": 36,
|
41 |
+
"ഫ": 37,
|
42 |
+
"ബ": 38,
|
43 |
+
"ഭ": 39,
|
44 |
+
"മ": 40,
|
45 |
+
"യ": 41,
|
46 |
+
"ര": 42,
|
47 |
+
"റ": 43,
|
48 |
+
"ല": 44,
|
49 |
+
"ള": 45,
|
50 |
+
"ഴ": 46,
|
51 |
+
"വ": 47,
|
52 |
+
"ശ": 48,
|
53 |
+
"ഷ": 49,
|
54 |
+
"സ": 50,
|
55 |
+
"ഹ": 51,
|
56 |
+
"ാ": 52,
|
57 |
+
"ി": 53,
|
58 |
+
"ീ": 54,
|
59 |
+
"ു": 55,
|
60 |
+
"ൂ": 56,
|
61 |
+
"ൃ": 57,
|
62 |
+
"െ": 58,
|
63 |
+
"േ": 59,
|
64 |
+
"ൈ": 60,
|
65 |
+
"ൊ": 61,
|
66 |
+
"ോ": 62,
|
67 |
+
"ൌ": 63,
|
68 |
+
"്": 64,
|
69 |
+
"ൗ": 65,
|
70 |
+
"ൺ": 66,
|
71 |
+
"ൻ": 67,
|
72 |
+
"ർ": 68,
|
73 |
+
"ൽ": 69,
|
74 |
+
"ൾ": 70,
|
75 |
+
"": 71,
|
76 |
+
"": 72,
|
77 |
+
"": 73
|
78 |
+
}
|