UmarRamzan commited on
Commit
abe0763
1 Parent(s): b7bb3e9

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - common_voice_17_0
6
+ metrics:
7
+ - wer
8
+ model-index:
9
+ - name: w2v2-bert-urdu
10
+ results:
11
+ - task:
12
+ name: Automatic Speech Recognition
13
+ type: automatic-speech-recognition
14
+ dataset:
15
+ name: common_voice_17_0
16
+ type: common_voice_17_0
17
+ config: ur
18
+ split: test[:100]
19
+ args: ur
20
+ metrics:
21
+ - name: Wer
22
+ type: wer
23
+ value: 0.3300546448087432
24
+ ---
25
+
26
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
27
+ should probably proofread and complete it, then remove this comment. -->
28
+
29
+ # w2v2-bert-urdu
30
+
31
+ This model was trained from scratch on the common_voice_17_0 dataset.
32
+ It achieves the following results on the evaluation set:
33
+ - Loss: 0.4246
34
+ - Wer: 0.3301
35
+
36
+ ## Model description
37
+
38
+ More information needed
39
+
40
+ ## Intended uses & limitations
41
+
42
+ More information needed
43
+
44
+ ## Training and evaluation data
45
+
46
+ More information needed
47
+
48
+ ## Training procedure
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 5e-06
54
+ - train_batch_size: 16
55
+ - eval_batch_size: 8
56
+ - seed: 42
57
+ - gradient_accumulation_steps: 2
58
+ - total_train_batch_size: 32
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - lr_scheduler_warmup_steps: 100
62
+ - num_epochs: 2
63
+ - mixed_precision_training: Native AMP
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Wer |
68
+ |:-------------:|:------:|:----:|:---------------:|:------:|
69
+ | 0.8145 | 0.1695 | 50 | 0.4620 | 0.3421 |
70
+ | 0.4364 | 0.3390 | 100 | 0.3969 | 0.2874 |
71
+ | 0.418 | 0.5085 | 150 | 0.3697 | 0.2820 |
72
+ | 0.402 | 0.6780 | 200 | 0.3627 | 0.2842 |
73
+ | 0.3698 | 0.8475 | 250 | 0.3314 | 0.2710 |
74
+ | 0.3779 | 1.0169 | 300 | 0.3292 | 0.2852 |
75
+ | 0.3167 | 1.1864 | 350 | 0.3230 | 0.2820 |
76
+ | 0.3578 | 1.3559 | 400 | 0.3825 | 0.2940 |
77
+ | 0.4189 | 1.5254 | 450 | 0.4225 | 0.3104 |
78
+ | 0.4803 | 1.6949 | 500 | 0.4248 | 0.3311 |
79
+ | 0.4612 | 1.8644 | 550 | 0.4246 | 0.3301 |
80
+
81
+
82
+ ### Framework versions
83
+
84
+ - Transformers 4.40.2
85
+ - Pytorch 2.2.1+cu121
86
+ - Datasets 2.19.1
87
+ - Tokenizers 0.19.1
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "</s>": 64,
3
+ "<s>": 63
4
+ }
alphabet.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"labels": [" ", "\u0623", "\u0624", "\u0626", "\u0627", "\u0628", "\u062a", "\u062b", "\u062c", "\u062d", "\u062e", "\u062f", "\u0630", "\u0631", "\u0632", "\u0633", "\u0634", "\u0635", "\u0636", "\u0637", "\u0638", "\u0639", "\u063a", "\u0641", "\u0642", "\u0643", "\u0644", "\u0645", "\u0646", "\u0647", "\u0648", "\u064a", "\u0679", "\u067e", "\u0686", "\u0688", "\u0691", "\u0698", "\u06a9", "\u06af", "\u06ba", "\u06be", "\u06c1", "\u06c2", "\u06c3", "\u06cc", "\u06d2", "\u06d3", "\ufb68", "\ufbad", "\ufbaf", "\ufbfe", "\ufdf2", "\ufdfa", "\ufe85", "\ufe97", "\ufe98", "\ufea9", "\ufeb2", "\ufee7", "\ufeee", "\u2047", "", "<s>", "</s>"], "is_bpe": false}
config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "w2v2-bert-urdu",
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": 62,
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.40.2",
78
+ "use_intermediate_ffn_before_adapter": false,
79
+ "use_weighted_layer_sum": false,
80
+ "vocab_size": 65,
81
+ "xvector_output_dim": 512
82
+ }
language_model/5gram.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e5454facbffe62a26c6781b6b779953e12aad7815b5eb3b03bdd7082f17181a
3
+ size 6366106
language_model/attrs.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"alpha": 0.5, "beta": 1.5, "unk_score_offset": -10.0, "score_boundary": true}
language_model/unigrams.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17747e10300fac022a134b42d307ebdfd5b00ee0b2b350da2fd17ec67ff66fab
3
+ size 2423081060
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": 1,
7
+ "processor_class": "Wav2Vec2ProcessorWithLM",
8
+ "return_attention_mask": true,
9
+ "sampling_rate": 16000,
10
+ "stride": 2
11
+ }
runs/May12_17-18-18_1d4a7576e075/events.out.tfevents.1715534458.1d4a7576e075.1900.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2f3e451abeb3da8bf7175b8a52962c3167ee0e0d59241d65ba9e581e899931a
3
+ size 18118
runs/May12_18-22-06_1d4a7576e075/events.out.tfevents.1715538284.1d4a7576e075.1900.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f86c39156283e6a1025f9d70bc4fed254fbc60859204ec04daff0b4e2f58dabb
3
+ size 12072
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
+ "61": {
4
+ "content": "[UNK]",
5
+ "lstrip": true,
6
+ "normalized": false,
7
+ "rstrip": true,
8
+ "single_word": false,
9
+ "special": false
10
+ },
11
+ "62": {
12
+ "content": "[PAD]",
13
+ "lstrip": true,
14
+ "normalized": false,
15
+ "rstrip": true,
16
+ "single_word": false,
17
+ "special": false
18
+ },
19
+ "63": {
20
+ "content": "<s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "64": {
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:9a14a5c3359637bb1b3e9fd4d16f8e63f99e460411687da64ccb77020ddd1d84
3
+ size 4984
vocab.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "[PAD]": 62,
3
+ "[UNK]": 61,
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
+ }