abidanoaman commited on
Commit
bf9be72
·
verified ·
1 Parent(s): c636da4

Add fine-tuned Whisper-Tiny Urdu ASR weights

Browse files
Files changed (4) hide show
  1. README.md +199 -0
  2. config.json +59 -0
  3. generation_config.json +188 -0
  4. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "gelu",
4
+ "apply_spec_augment": false,
5
+ "architectures": [
6
+ "WhisperForConditionalGeneration"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 50257,
10
+ "classifier_proj_size": 256,
11
+ "d_model": 384,
12
+ "decoder_attention_heads": 6,
13
+ "decoder_ffn_dim": 1536,
14
+ "decoder_layerdrop": 0.0,
15
+ "decoder_layers": 4,
16
+ "decoder_start_token_id": 50258,
17
+ "dropout": 0.0,
18
+ "dtype": "float32",
19
+ "encoder_attention_heads": 6,
20
+ "encoder_ffn_dim": 1536,
21
+ "encoder_layerdrop": 0.0,
22
+ "encoder_layers": 4,
23
+ "eos_token_id": 50257,
24
+ "forced_decoder_ids": [
25
+ [
26
+ 1,
27
+ 50259
28
+ ],
29
+ [
30
+ 2,
31
+ 50359
32
+ ],
33
+ [
34
+ 3,
35
+ 50363
36
+ ]
37
+ ],
38
+ "init_std": 0.02,
39
+ "is_encoder_decoder": true,
40
+ "mask_feature_length": 10,
41
+ "mask_feature_min_masks": 0,
42
+ "mask_feature_prob": 0.0,
43
+ "mask_time_length": 10,
44
+ "mask_time_min_masks": 2,
45
+ "mask_time_prob": 0.05,
46
+ "max_source_positions": 1500,
47
+ "max_target_positions": 448,
48
+ "median_filter_width": 7,
49
+ "model_type": "whisper",
50
+ "num_hidden_layers": 4,
51
+ "num_mel_bins": 80,
52
+ "pad_token_id": 50257,
53
+ "scale_embedding": false,
54
+ "tie_word_embeddings": true,
55
+ "transformers_version": "5.2.0",
56
+ "use_cache": false,
57
+ "use_weighted_layer_sum": false,
58
+ "vocab_size": 51865
59
+ }
generation_config.json ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alignment_heads": [
3
+ [
4
+ 2,
5
+ 2
6
+ ],
7
+ [
8
+ 3,
9
+ 0
10
+ ],
11
+ [
12
+ 3,
13
+ 2
14
+ ],
15
+ [
16
+ 3,
17
+ 3
18
+ ],
19
+ [
20
+ 3,
21
+ 4
22
+ ],
23
+ [
24
+ 3,
25
+ 5
26
+ ]
27
+ ],
28
+ "assistant_confidence_threshold": 0.4,
29
+ "assistant_lookbehind": 10,
30
+ "begin_suppress_tokens": [
31
+ 220,
32
+ 50257
33
+ ],
34
+ "bos_token_id": 50257,
35
+ "decoder_start_token_id": 50258,
36
+ "diversity_penalty": 0.0,
37
+ "do_sample": false,
38
+ "early_stopping": false,
39
+ "encoder_no_repeat_ngram_size": 0,
40
+ "encoder_repetition_penalty": 1.0,
41
+ "eos_token_id": 50257,
42
+ "epsilon_cutoff": 0.0,
43
+ "eta_cutoff": 0.0,
44
+ "forced_decoder_ids": [
45
+ [
46
+ 1,
47
+ null
48
+ ],
49
+ [
50
+ 2,
51
+ 50359
52
+ ]
53
+ ],
54
+ "is_multilingual": true,
55
+ "lang_to_id": {
56
+ "<|af|>": 50327,
57
+ "<|am|>": 50334,
58
+ "<|ar|>": 50272,
59
+ "<|as|>": 50350,
60
+ "<|az|>": 50304,
61
+ "<|ba|>": 50355,
62
+ "<|be|>": 50330,
63
+ "<|bg|>": 50292,
64
+ "<|bn|>": 50302,
65
+ "<|bo|>": 50347,
66
+ "<|br|>": 50309,
67
+ "<|bs|>": 50315,
68
+ "<|ca|>": 50270,
69
+ "<|cs|>": 50283,
70
+ "<|cy|>": 50297,
71
+ "<|da|>": 50285,
72
+ "<|de|>": 50261,
73
+ "<|el|>": 50281,
74
+ "<|en|>": 50259,
75
+ "<|es|>": 50262,
76
+ "<|et|>": 50307,
77
+ "<|eu|>": 50310,
78
+ "<|fa|>": 50300,
79
+ "<|fi|>": 50277,
80
+ "<|fo|>": 50338,
81
+ "<|fr|>": 50265,
82
+ "<|gl|>": 50319,
83
+ "<|gu|>": 50333,
84
+ "<|haw|>": 50352,
85
+ "<|ha|>": 50354,
86
+ "<|he|>": 50279,
87
+ "<|hi|>": 50276,
88
+ "<|hr|>": 50291,
89
+ "<|ht|>": 50339,
90
+ "<|hu|>": 50286,
91
+ "<|hy|>": 50312,
92
+ "<|id|>": 50275,
93
+ "<|is|>": 50311,
94
+ "<|it|>": 50274,
95
+ "<|ja|>": 50266,
96
+ "<|jw|>": 50356,
97
+ "<|ka|>": 50329,
98
+ "<|kk|>": 50316,
99
+ "<|km|>": 50323,
100
+ "<|kn|>": 50306,
101
+ "<|ko|>": 50264,
102
+ "<|la|>": 50294,
103
+ "<|lb|>": 50345,
104
+ "<|ln|>": 50353,
105
+ "<|lo|>": 50336,
106
+ "<|lt|>": 50293,
107
+ "<|lv|>": 50301,
108
+ "<|mg|>": 50349,
109
+ "<|mi|>": 50295,
110
+ "<|mk|>": 50308,
111
+ "<|ml|>": 50296,
112
+ "<|mn|>": 50314,
113
+ "<|mr|>": 50320,
114
+ "<|ms|>": 50282,
115
+ "<|mt|>": 50343,
116
+ "<|my|>": 50346,
117
+ "<|ne|>": 50313,
118
+ "<|nl|>": 50271,
119
+ "<|nn|>": 50342,
120
+ "<|no|>": 50288,
121
+ "<|oc|>": 50328,
122
+ "<|pa|>": 50321,
123
+ "<|pl|>": 50269,
124
+ "<|ps|>": 50340,
125
+ "<|pt|>": 50267,
126
+ "<|ro|>": 50284,
127
+ "<|ru|>": 50263,
128
+ "<|sa|>": 50344,
129
+ "<|sd|>": 50332,
130
+ "<|si|>": 50322,
131
+ "<|sk|>": 50298,
132
+ "<|sl|>": 50305,
133
+ "<|sn|>": 50324,
134
+ "<|so|>": 50326,
135
+ "<|sq|>": 50317,
136
+ "<|sr|>": 50303,
137
+ "<|su|>": 50357,
138
+ "<|sv|>": 50273,
139
+ "<|sw|>": 50318,
140
+ "<|ta|>": 50287,
141
+ "<|te|>": 50299,
142
+ "<|tg|>": 50331,
143
+ "<|th|>": 50289,
144
+ "<|tk|>": 50341,
145
+ "<|tl|>": 50348,
146
+ "<|tr|>": 50268,
147
+ "<|tt|>": 50351,
148
+ "<|uk|>": 50280,
149
+ "<|ur|>": 50290,
150
+ "<|uz|>": 50337,
151
+ "<|vi|>": 50278,
152
+ "<|yi|>": 50335,
153
+ "<|yo|>": 50325,
154
+ "<|zh|>": 50260
155
+ },
156
+ "language": "urdu",
157
+ "length_penalty": 1.0,
158
+ "max_initial_timestamp_index": 50,
159
+ "max_length": 448,
160
+ "min_length": 0,
161
+ "no_repeat_ngram_size": 0,
162
+ "no_timestamps_token_id": 50363,
163
+ "num_assistant_tokens": 20,
164
+ "num_assistant_tokens_schedule": "constant",
165
+ "num_beam_groups": 1,
166
+ "num_beams": 1,
167
+ "num_return_sequences": 1,
168
+ "output_scores": false,
169
+ "pad_token_id": 50257,
170
+ "prev_sot_token_id": 50361,
171
+ "remove_invalid_values": false,
172
+ "repetition_penalty": 1.0,
173
+ "return_dict_in_generate": false,
174
+ "return_timestamps": false,
175
+ "suppress_tokens": [],
176
+ "target_lookbehind": 10,
177
+ "task": "transcribe",
178
+ "task_to_id": {
179
+ "transcribe": 50359,
180
+ "translate": 50358
181
+ },
182
+ "temperature": 1.0,
183
+ "top_k": 50,
184
+ "top_p": 1.0,
185
+ "transformers_version": "5.2.0",
186
+ "typical_p": 1.0,
187
+ "use_cache": true
188
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b61d784cfb16a528e02540a922833d5c64920dd4b0847fe86801c0dcd1c52aaa
3
+ size 151061672