blackhole33 commited on
Commit
5ed56da
1 Parent(s): de571a8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +246 -3
README.md CHANGED
@@ -1,3 +1,246 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - aisha-org/wav2wec-dataset-100k
5
+ language:
6
+ - uz
7
+ metrics:
8
+ - wer
9
+ pipeline_tag: automatic-speech-recognition
10
+ library_name: transformers
11
+ ---
12
+ # Model Card for Model ID
13
+
14
+ <!-- Provide a quick summary of what the model is/does. -->
15
+
16
+ This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
17
+
18
+ ## Model Details
19
+
20
+ ```
21
+
22
+ from transformers import Wav2Vec2CTCTokenizer, SeamlessM4TFeatureExtractor, Wav2Vec2BertProcessor, Wav2Vec2BertForCTC>
23
+
24
+ # Define the repository name
25
+ repo_name = "aisha-org/wev2vec-uzb-100k"
26
+
27
+ # Load components
28
+ tokenizer = Wav2Vec2CTCTokenizer.from_pretrained("./", unk_token="[UNK]", pad_token="[PAD]", word_delimiter_token="|")
29
+ feature_extractor = SeamlessM4TFeatureExtractor.from_pretrained(repo_name)
30
+ processor = Wav2Vec2BertProcessor(feature_extractor=feature_extractor, tokenizer=tokenizer)
31
+
32
+ model = Wav2Vec2BertForCTC.from_pretrained(
33
+ repo_name,
34
+ attention_dropout=0.0,
35
+ hidden_dropout=0.0,
36
+ feat_proj_dropout=0.0,
37
+ mask_time_prob=0.0,
38
+ layerdrop=0.0,
39
+ ctc_loss_reduction="mean",
40
+ add_adapter=True,
41
+ pad_token_id=processor.tokenizer.pad_token_id,
42
+ vocab_size=len(processor.tokenizer),
43
+ )
44
+
45
+ # Push components to the Hub
46
+ #tokenizer.push_to_hub(repo_name)
47
+ #feature_extractor.push_to_hub(repo_name)
48
+ #processor.push_to_hub(repo_name)
49
+ #model.push_to_hub(repo_name)
50
+
51
+ # Define the pipeline
52
+ pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=tokenizer, feature_extractor=feature_extractor)
53
+ # Example usage of the pipeline
54
+ def transcribe_audio(file_path):
55
+ result = pipe(file_path)
56
+ return result
57
+
58
+
59
+ ```
60
+
61
+ ### Model Description
62
+
63
+ <!-- Provide a longer summary of what this model is. -->
64
+
65
+
66
+
67
+ - **Developed by:** [More Information Needed]
68
+ - **Funded by [optional]:** [More Information Needed]
69
+ - **Shared by [optional]:** [More Information Needed]
70
+ - **Model type:** [More Information Needed]
71
+ - **Language(s) (NLP):** [More Information Needed]
72
+ - **License:** [More Information Needed]
73
+ - **Finetuned from model [optional]:** [More Information Needed]
74
+
75
+ ### Model Sources [optional]
76
+
77
+ <!-- Provide the basic links for the model. -->
78
+
79
+ - **Repository:** [More Information Needed]
80
+ - **Paper [optional]:** [More Information Needed]
81
+ - **Demo [optional]:** [More Information Needed]
82
+
83
+ ## Uses
84
+
85
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
86
+
87
+ ### Direct Use
88
+
89
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
90
+
91
+ [More Information Needed]
92
+
93
+ ### Downstream Use [optional]
94
+
95
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
96
+
97
+ [More Information Needed]
98
+
99
+ ### Out-of-Scope Use
100
+
101
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
102
+
103
+ [More Information Needed]
104
+
105
+ ## Bias, Risks, and Limitations
106
+
107
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
108
+
109
+ [More Information Needed]
110
+
111
+ ### Recommendations
112
+
113
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
114
+
115
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
116
+
117
+ ## How to Get Started with the Model
118
+
119
+ Use the code below to get started with the model.
120
+
121
+ [More Information Needed]
122
+
123
+ ## Training Details
124
+
125
+ ### Training Data
126
+
127
+ <!-- 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. -->
128
+
129
+ [More Information Needed]
130
+
131
+ ### Training Procedure
132
+
133
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
134
+
135
+ #### Preprocessing [optional]
136
+
137
+ [More Information Needed]
138
+
139
+
140
+ #### Training Hyperparameters
141
+
142
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
143
+
144
+ #### Speeds, Sizes, Times [optional]
145
+
146
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
147
+
148
+ [More Information Needed]
149
+
150
+ ## Evaluation
151
+
152
+ <!-- This section describes the evaluation protocols and provides the results. -->
153
+
154
+ ### Testing Data, Factors & Metrics
155
+
156
+ #### Testing Data
157
+
158
+ <!-- This should link to a Dataset Card if possible. -->
159
+
160
+ [More Information Needed]
161
+
162
+ #### Factors
163
+
164
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
165
+
166
+ [More Information Needed]
167
+
168
+ #### Metrics
169
+
170
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
171
+
172
+ [More Information Needed]
173
+
174
+ ### Results
175
+
176
+ [More Information Needed]
177
+
178
+ #### Summary
179
+
180
+
181
+
182
+ ## Model Examination [optional]
183
+
184
+ <!-- Relevant interpretability work for the model goes here -->
185
+
186
+ [More Information Needed]
187
+
188
+ ## Environmental Impact
189
+
190
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
191
+
192
+ 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).
193
+
194
+ - **Hardware Type:** [More Information Needed]
195
+ - **Hours used:** [More Information Needed]
196
+ - **Cloud Provider:** [More Information Needed]
197
+ - **Compute Region:** [More Information Needed]
198
+ - **Carbon Emitted:** [More Information Needed]
199
+
200
+ ## Technical Specifications [optional]
201
+
202
+ ### Model Architecture and Objective
203
+
204
+ [More Information Needed]
205
+
206
+ ### Compute Infrastructure
207
+
208
+ [More Information Needed]
209
+
210
+ #### Hardware
211
+
212
+ [More Information Needed]
213
+
214
+ #### Software
215
+
216
+ [More Information Needed]
217
+
218
+ ## Citation [optional]
219
+
220
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
221
+
222
+ **BibTeX:**
223
+
224
+ [More Information Needed]
225
+
226
+ **APA:**
227
+
228
+ [More Information Needed]
229
+
230
+ ## Glossary [optional]
231
+
232
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
233
+
234
+ [More Information Needed]
235
+
236
+ ## More Information [optional]
237
+
238
+ [More Information Needed]
239
+
240
+ ## Model Card Authors [optional]
241
+
242
+ [More Information Needed]
243
+
244
+ ## Model Card Contact
245
+
246
+ [More Information Needed]