guillaumekln commited on
Commit
583a213
1 Parent(s): e7c47f2

Upload with huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +42 -0
  2. config.json +270 -0
  3. model.bin +3 -0
  4. tokenizer.json +0 -0
  5. vocabulary.txt +0 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - audio
6
+ - automatic-speech-recognition
7
+ license: mit
8
+ library_name: ctranslate2
9
+ ---
10
+
11
+ # Whisper medium.en model for CTranslate2
12
+
13
+ This repository contains the conversion of [openai/whisper-medium.en](https://huggingface.co/openai/whisper-medium.en) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format.
14
+
15
+ This model can be used in CTranslate2 or projets based on CTranslate2 such as [faster-whisper](https://github.com/guillaumekln/faster-whisper).
16
+
17
+ ## Example
18
+
19
+ ```python
20
+ from faster_whisper import WhisperModel
21
+
22
+ model = WhisperModel("medium.en")
23
+
24
+ segments, info = model.transcribe("audio.mp3")
25
+ for segment in segments:
26
+ print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
27
+ ```
28
+
29
+ ## Conversion details
30
+
31
+ The original model was converted with the following command:
32
+
33
+ ```
34
+ ct2-transformers-converter --model openai/whisper-medium.en --output_dir faster-whisper-medium.en \
35
+ --copy_files tokenizer.json --quantization float16
36
+ ```
37
+
38
+ Note that the model weights are saved in FP16. This type can be changed when the model is loaded using the [`compute_type` option in CTranslate2](https://opennmt.net/CTranslate2/quantization.html).
39
+
40
+ ## More information
41
+
42
+ **For more information about the original model, see its [model card](https://huggingface.co/openai/whisper-medium.en).**
config.json ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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261,
80
+ 50262,
81
+ 50263,
82
+ 50264,
83
+ 50265,
84
+ 50266,
85
+ 50267,
86
+ 50268,
87
+ 50269,
88
+ 50270,
89
+ 50271,
90
+ 50272,
91
+ 50273,
92
+ 50274,
93
+ 50275,
94
+ 50276,
95
+ 50277,
96
+ 50278,
97
+ 50279,
98
+ 50280,
99
+ 50281,
100
+ 50282,
101
+ 50283,
102
+ 50284,
103
+ 50285,
104
+ 50286,
105
+ 50287,
106
+ 50288,
107
+ 50289,
108
+ 50290,
109
+ 50291,
110
+ 50292,
111
+ 50293,
112
+ 50294,
113
+ 50295,
114
+ 50296,
115
+ 50297,
116
+ 50298,
117
+ 50299,
118
+ 50300,
119
+ 50301,
120
+ 50302,
121
+ 50303,
122
+ 50304,
123
+ 50305,
124
+ 50306,
125
+ 50307,
126
+ 50308,
127
+ 50309,
128
+ 50310,
129
+ 50311,
130
+ 50312,
131
+ 50313,
132
+ 50314,
133
+ 50315,
134
+ 50316,
135
+ 50317,
136
+ 50318,
137
+ 50319,
138
+ 50320,
139
+ 50321,
140
+ 50322,
141
+ 50323,
142
+ 50324,
143
+ 50325,
144
+ 50326,
145
+ 50327,
146
+ 50328,
147
+ 50329,
148
+ 50330,
149
+ 50331,
150
+ 50332,
151
+ 50333,
152
+ 50334,
153
+ 50335,
154
+ 50336,
155
+ 50337,
156
+ 50338,
157
+ 50339,
158
+ 50340,
159
+ 50341,
160
+ 50342,
161
+ 50343,
162
+ 50344,
163
+ 50345,
164
+ 50346,
165
+ 50347,
166
+ 50348,
167
+ 50349,
168
+ 50350,
169
+ 50351,
170
+ 50352,
171
+ 50353,
172
+ 50354,
173
+ 50355,
174
+ 50356
175
+ ],
176
+ "suppress_ids": [
177
+ 1,
178
+ 2,
179
+ 7,
180
+ 8,
181
+ 9,
182
+ 10,
183
+ 14,
184
+ 25,
185
+ 26,
186
+ 27,
187
+ 28,
188
+ 29,
189
+ 31,
190
+ 58,
191
+ 59,
192
+ 60,
193
+ 61,
194
+ 62,
195
+ 63,
196
+ 90,
197
+ 91,
198
+ 92,
199
+ 93,
200
+ 357,
201
+ 366,
202
+ 438,
203
+ 532,
204
+ 685,
205
+ 705,
206
+ 796,
207
+ 930,
208
+ 1058,
209
+ 1220,
210
+ 1267,
211
+ 1279,
212
+ 1303,
213
+ 1343,
214
+ 1377,
215
+ 1391,
216
+ 1635,
217
+ 1782,
218
+ 1875,
219
+ 2162,
220
+ 2361,
221
+ 2488,
222
+ 3467,
223
+ 4008,
224
+ 4211,
225
+ 4600,
226
+ 4808,
227
+ 5299,
228
+ 5855,
229
+ 6329,
230
+ 7203,
231
+ 9609,
232
+ 9959,
233
+ 10563,
234
+ 10786,
235
+ 11420,
236
+ 11709,
237
+ 11907,
238
+ 13163,
239
+ 13697,
240
+ 13700,
241
+ 14808,
242
+ 15306,
243
+ 16410,
244
+ 16791,
245
+ 17992,
246
+ 19203,
247
+ 19510,
248
+ 20724,
249
+ 22305,
250
+ 22935,
251
+ 27007,
252
+ 30109,
253
+ 30420,
254
+ 33409,
255
+ 34949,
256
+ 40283,
257
+ 40493,
258
+ 40549,
259
+ 47282,
260
+ 49146,
261
+ 50257,
262
+ 50359,
263
+ 50360,
264
+ 50361
265
+ ],
266
+ "suppress_ids_begin": [
267
+ 220,
268
+ 50256
269
+ ]
270
+ }
model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11b220779aea4c6f3ce9d2549c8a95ea869ed84066864b999531ef53e594fe5b
3
+ size 1527904330
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
vocabulary.txt ADDED
The diff for this file is too large to render. See raw diff