kavyamanohar
commited on
Commit
•
d8e98ab
1
Parent(s):
95ec1bd
Upload 11 files
Browse files- .gitattributes +0 -1
- README.md +83 -0
- added_tokens.json +4 -0
- alphabet.json +1 -0
- config.json +82 -0
- model.safetensors +3 -0
- preprocessor_config.json +11 -0
- special_tokens_map.json +30 -0
- tokenizer_config.json +48 -0
- training_args.bin +3 -0
- vocab.json +77 -0
.gitattributes
CHANGED
@@ -33,4 +33,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
-
language_model/unigrams.txt filter=lfs diff=lfs merge=lfs -text
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
README.md
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: facebook/w2v-bert-2.0
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- wer
|
8 |
+
model-index:
|
9 |
+
- name: w2v-bert-studio
|
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 |
+
# w2v-bert-studio
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [facebook/w2v-bert-2.0](https://huggingface.co/facebook/w2v-bert-2.0) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.1587
|
21 |
+
- Wer: 0.1157
|
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: 5e-05
|
41 |
+
- train_batch_size: 16
|
42 |
+
- eval_batch_size: 8
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 2
|
45 |
+
- total_train_batch_size: 32
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_steps: 500
|
49 |
+
- num_epochs: 10
|
50 |
+
- mixed_precision_training: Native AMP
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer |
|
55 |
+
|:-------------:|:------:|:-----:|:---------------:|:------:|
|
56 |
+
| 1.0335 | 0.4932 | 600 | 0.3654 | 0.4387 |
|
57 |
+
| 0.1531 | 0.9864 | 1200 | 0.2373 | 0.3332 |
|
58 |
+
| 0.1074 | 1.4797 | 1800 | 0.2069 | 0.2953 |
|
59 |
+
| 0.0928 | 1.9729 | 2400 | 0.2146 | 0.2814 |
|
60 |
+
| 0.0734 | 2.4661 | 3000 | 0.1947 | 0.2433 |
|
61 |
+
| 0.0678 | 2.9593 | 3600 | 0.1938 | 0.2406 |
|
62 |
+
| 0.0522 | 3.4525 | 4200 | 0.1566 | 0.2053 |
|
63 |
+
| 0.0493 | 3.9457 | 4800 | 0.1649 | 0.1988 |
|
64 |
+
| 0.0366 | 4.4390 | 5400 | 0.1417 | 0.1834 |
|
65 |
+
| 0.0372 | 4.9322 | 6000 | 0.1542 | 0.1749 |
|
66 |
+
| 0.028 | 5.4254 | 6600 | 0.1476 | 0.1620 |
|
67 |
+
| 0.0263 | 5.9186 | 7200 | 0.1388 | 0.1622 |
|
68 |
+
| 0.0195 | 6.4118 | 7800 | 0.1384 | 0.1495 |
|
69 |
+
| 0.0185 | 6.9051 | 8400 | 0.1351 | 0.1383 |
|
70 |
+
| 0.0136 | 7.3983 | 9000 | 0.1404 | 0.1344 |
|
71 |
+
| 0.0119 | 7.8915 | 9600 | 0.1253 | 0.1276 |
|
72 |
+
| 0.0087 | 8.3847 | 10200 | 0.1443 | 0.1284 |
|
73 |
+
| 0.0066 | 8.8779 | 10800 | 0.1475 | 0.1252 |
|
74 |
+
| 0.0049 | 9.3711 | 11400 | 0.1577 | 0.1227 |
|
75 |
+
| 0.0038 | 9.8644 | 12000 | 0.1587 | 0.1157 |
|
76 |
+
|
77 |
+
|
78 |
+
### Framework versions
|
79 |
+
|
80 |
+
- Transformers 4.42.2
|
81 |
+
- Pytorch 2.1.1+cu121
|
82 |
+
- Datasets 2.20.0
|
83 |
+
- Tokenizers 0.19.1
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 76,
|
3 |
+
"<s>": 75
|
4 |
+
}
|
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", "\u2047", "", "<s>", "</s>"], "is_bpe": false}
|
config.json
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/w2v-bert-2.0",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"adapter_act": "relu",
|
5 |
+
"adapter_kernel_size": 3,
|
6 |
+
"adapter_stride": 2,
|
7 |
+
"add_adapter": true,
|
8 |
+
"apply_spec_augment": false,
|
9 |
+
"architectures": [
|
10 |
+
"Wav2Vec2BertForCTC"
|
11 |
+
],
|
12 |
+
"attention_dropout": 0.0,
|
13 |
+
"bos_token_id": 1,
|
14 |
+
"classifier_proj_size": 768,
|
15 |
+
"codevector_dim": 768,
|
16 |
+
"conformer_conv_dropout": 0.1,
|
17 |
+
"contrastive_logits_temperature": 0.1,
|
18 |
+
"conv_depthwise_kernel_size": 31,
|
19 |
+
"ctc_loss_reduction": "mean",
|
20 |
+
"ctc_zero_infinity": false,
|
21 |
+
"diversity_loss_weight": 0.1,
|
22 |
+
"eos_token_id": 2,
|
23 |
+
"feat_proj_dropout": 0.0,
|
24 |
+
"feat_quantizer_dropout": 0.0,
|
25 |
+
"feature_projection_input_dim": 160,
|
26 |
+
"final_dropout": 0.1,
|
27 |
+
"hidden_act": "swish",
|
28 |
+
"hidden_dropout": 0.0,
|
29 |
+
"hidden_size": 1024,
|
30 |
+
"initializer_range": 0.02,
|
31 |
+
"intermediate_size": 4096,
|
32 |
+
"layer_norm_eps": 1e-05,
|
33 |
+
"layerdrop": 0.0,
|
34 |
+
"left_max_position_embeddings": 64,
|
35 |
+
"mask_feature_length": 10,
|
36 |
+
"mask_feature_min_masks": 0,
|
37 |
+
"mask_feature_prob": 0.0,
|
38 |
+
"mask_time_length": 10,
|
39 |
+
"mask_time_min_masks": 2,
|
40 |
+
"mask_time_prob": 0.0,
|
41 |
+
"max_source_positions": 5000,
|
42 |
+
"model_type": "wav2vec2-bert",
|
43 |
+
"num_adapter_layers": 1,
|
44 |
+
"num_attention_heads": 16,
|
45 |
+
"num_codevector_groups": 2,
|
46 |
+
"num_codevectors_per_group": 320,
|
47 |
+
"num_hidden_layers": 24,
|
48 |
+
"num_negatives": 100,
|
49 |
+
"output_hidden_size": 1024,
|
50 |
+
"pad_token_id": 74,
|
51 |
+
"position_embeddings_type": "relative_key",
|
52 |
+
"proj_codevector_dim": 768,
|
53 |
+
"right_max_position_embeddings": 8,
|
54 |
+
"rotary_embedding_base": 10000,
|
55 |
+
"tdnn_dilation": [
|
56 |
+
1,
|
57 |
+
2,
|
58 |
+
3,
|
59 |
+
1,
|
60 |
+
1
|
61 |
+
],
|
62 |
+
"tdnn_dim": [
|
63 |
+
512,
|
64 |
+
512,
|
65 |
+
512,
|
66 |
+
512,
|
67 |
+
1500
|
68 |
+
],
|
69 |
+
"tdnn_kernel": [
|
70 |
+
5,
|
71 |
+
3,
|
72 |
+
3,
|
73 |
+
1,
|
74 |
+
1
|
75 |
+
],
|
76 |
+
"torch_dtype": "float32",
|
77 |
+
"transformers_version": "4.42.2",
|
78 |
+
"use_intermediate_ffn_before_adapter": false,
|
79 |
+
"use_weighted_layer_sum": false,
|
80 |
+
"vocab_size": 77,
|
81 |
+
"xvector_output_dim": 512
|
82 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6feeaf88344010fd9484d945b7c4ca96b8dd63f242a0b4b9b6916784c4d70b85
|
3 |
+
size 2423130260
|
preprocessor_config.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"feature_extractor_type": "SeamlessM4TFeatureExtractor",
|
3 |
+
"feature_size": 80,
|
4 |
+
"num_mel_bins": 80,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0.0,
|
7 |
+
"processor_class": "Wav2Vec2ProcessorWithLM",
|
8 |
+
"return_attention_mask": true,
|
9 |
+
"sampling_rate": 16000,
|
10 |
+
"stride": 2
|
11 |
+
}
|
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,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"73": {
|
4 |
+
"content": "[UNK]",
|
5 |
+
"lstrip": true,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": true,
|
8 |
+
"single_word": false,
|
9 |
+
"special": false
|
10 |
+
},
|
11 |
+
"74": {
|
12 |
+
"content": "[PAD]",
|
13 |
+
"lstrip": true,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": true,
|
16 |
+
"single_word": false,
|
17 |
+
"special": false
|
18 |
+
},
|
19 |
+
"75": {
|
20 |
+
"content": "<s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"76": {
|
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": "Wav2Vec2ProcessorWithLM",
|
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:a6accd20a677f5728c8389cc2ed8415f786a1f1a4dfafdc098e8b846880fff7e
|
3 |
+
size 5112
|
vocab.json
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[PAD]": 74,
|
3 |
+
"[UNK]": 73,
|
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 |
+
}
|