ngkien commited on
Commit
fbac75f
1 Parent(s): d14a4d0

Upload the Distil-Whisper large-v2 conversion model to the Hugging Face hub

Browse files
Files changed (7) hide show
  1. .gitattributes +1 -0
  2. README.md +137 -0
  3. config.json +277 -0
  4. model.bin +3 -0
  5. preprocessor_config.json +14 -0
  6. tokenizer.json +0 -0
  7. vocabulary.json +0 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
 
 
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
+ model.bin filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,140 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: mit
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - de
6
+ - es
7
+ - ru
8
+ - ko
9
+ - fr
10
+ - ja
11
+ - pt
12
+ - tr
13
+ - pl
14
+ - ca
15
+ - nl
16
+ - ar
17
+ - sv
18
+ - it
19
+ - id
20
+ - hi
21
+ - fi
22
+ - vi
23
+ - he
24
+ - uk
25
+ - el
26
+ - ms
27
+ - cs
28
+ - ro
29
+ - da
30
+ - hu
31
+ - ta
32
+ - 'no'
33
+ - th
34
+ - ur
35
+ - hr
36
+ - bg
37
+ - lt
38
+ - la
39
+ - mi
40
+ - ml
41
+ - cy
42
+ - sk
43
+ - te
44
+ - fa
45
+ - lv
46
+ - bn
47
+ - sr
48
+ - az
49
+ - sl
50
+ - kn
51
+ - et
52
+ - mk
53
+ - br
54
+ - eu
55
+ - is
56
+ - hy
57
+ - ne
58
+ - mn
59
+ - bs
60
+ - kk
61
+ - sq
62
+ - sw
63
+ - gl
64
+ - mr
65
+ - pa
66
+ - si
67
+ - km
68
+ - sn
69
+ - yo
70
+ - so
71
+ - af
72
+ - oc
73
+ - ka
74
+ - be
75
+ - tg
76
+ - sd
77
+ - gu
78
+ - am
79
+ - yi
80
+ - lo
81
+ - uz
82
+ - fo
83
+ - ht
84
+ - ps
85
+ - tk
86
+ - nn
87
+ - mt
88
+ - sa
89
+ - lb
90
+ - my
91
+ - bo
92
+ - tl
93
+ - mg
94
+ - as
95
+ - tt
96
+ - haw
97
+ - ln
98
+ - ha
99
+ - ba
100
+ - jw
101
+ - su
102
+ tags:
103
+ - audio
104
+ - automatic-speech-recognition
105
  license: mit
106
+ library_name: ctranslate2
107
  ---
108
+
109
+ # Whisper distil-large-v2 model for CTranslate2
110
+
111
+ This repository contains the conversion of [distil-whisper/distil-large-v2](https://huggingface.co/distil-whisper/distil-large-v2) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format.
112
+
113
+ This model can be used in CTranslate2 or projects based on CTranslate2 such as [faster-whisper](https://github.com/systran/faster-whisper).
114
+
115
+ ## Example
116
+
117
+ ```python
118
+ from faster_whisper import WhisperModel
119
+
120
+ model = WhisperModel("distil-large-v2")
121
+
122
+ segments, info = model.transcribe("audio.mp3")
123
+ for segment in segments:
124
+ print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
125
+ ```
126
+
127
+ ## Conversion details
128
+
129
+ The original model was converted with the following command:
130
+
131
+ ```
132
+ ct2-transformers-converter --model distil-whisper/distil-large-v2 --output_dir faster-distil-whisper-large-v2 \
133
+ --copy_files tokenizer.json preprocessor_config.json --quantization float16
134
+ ```
135
+
136
+ 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).
137
+
138
+ ## More information
139
+
140
+ **For more information about the original model, see its [model card](https://huggingface.co/distil-whisper/distil-large-v2).**
config.json ADDED
@@ -0,0 +1,277 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alignment_heads": [
3
+ [
4
+ 1,
5
+ 0
6
+ ],
7
+ [
8
+ 1,
9
+ 1
10
+ ],
11
+ [
12
+ 1,
13
+ 2
14
+ ],
15
+ [
16
+ 1,
17
+ 3
18
+ ],
19
+ [
20
+ 1,
21
+ 4
22
+ ],
23
+ [
24
+ 1,
25
+ 5
26
+ ],
27
+ [
28
+ 1,
29
+ 6
30
+ ],
31
+ [
32
+ 1,
33
+ 7
34
+ ],
35
+ [
36
+ 1,
37
+ 8
38
+ ],
39
+ [
40
+ 1,
41
+ 9
42
+ ],
43
+ [
44
+ 1,
45
+ 10
46
+ ],
47
+ [
48
+ 1,
49
+ 11
50
+ ],
51
+ [
52
+ 1,
53
+ 12
54
+ ],
55
+ [
56
+ 1,
57
+ 13
58
+ ],
59
+ [
60
+ 1,
61
+ 14
62
+ ],
63
+ [
64
+ 1,
65
+ 15
66
+ ],
67
+ [
68
+ 1,
69
+ 16
70
+ ],
71
+ [
72
+ 1,
73
+ 17
74
+ ],
75
+ [
76
+ 1,
77
+ 18
78
+ ],
79
+ [
80
+ 1,
81
+ 19
82
+ ]
83
+ ],
84
+ "lang_ids": [
85
+ 50259,
86
+ 50260,
87
+ 50261,
88
+ 50262,
89
+ 50263,
90
+ 50264,
91
+ 50265,
92
+ 50266,
93
+ 50267,
94
+ 50268,
95
+ 50269,
96
+ 50270,
97
+ 50271,
98
+ 50272,
99
+ 50273,
100
+ 50274,
101
+ 50275,
102
+ 50276,
103
+ 50277,
104
+ 50278,
105
+ 50279,
106
+ 50280,
107
+ 50281,
108
+ 50282,
109
+ 50283,
110
+ 50284,
111
+ 50285,
112
+ 50286,
113
+ 50287,
114
+ 50288,
115
+ 50289,
116
+ 50290,
117
+ 50291,
118
+ 50292,
119
+ 50293,
120
+ 50294,
121
+ 50295,
122
+ 50296,
123
+ 50297,
124
+ 50298,
125
+ 50299,
126
+ 50300,
127
+ 50301,
128
+ 50302,
129
+ 50303,
130
+ 50304,
131
+ 50305,
132
+ 50306,
133
+ 50307,
134
+ 50308,
135
+ 50309,
136
+ 50310,
137
+ 50311,
138
+ 50312,
139
+ 50313,
140
+ 50314,
141
+ 50315,
142
+ 50316,
143
+ 50317,
144
+ 50318,
145
+ 50319,
146
+ 50320,
147
+ 50321,
148
+ 50322,
149
+ 50323,
150
+ 50324,
151
+ 50325,
152
+ 50326,
153
+ 50327,
154
+ 50328,
155
+ 50329,
156
+ 50330,
157
+ 50331,
158
+ 50332,
159
+ 50333,
160
+ 50334,
161
+ 50335,
162
+ 50336,
163
+ 50337,
164
+ 50338,
165
+ 50339,
166
+ 50340,
167
+ 50341,
168
+ 50342,
169
+ 50343,
170
+ 50344,
171
+ 50345,
172
+ 50346,
173
+ 50347,
174
+ 50348,
175
+ 50349,
176
+ 50350,
177
+ 50351,
178
+ 50352,
179
+ 50353,
180
+ 50354,
181
+ 50355,
182
+ 50356,
183
+ 50357
184
+ ],
185
+ "suppress_ids": [
186
+ 1,
187
+ 2,
188
+ 7,
189
+ 8,
190
+ 9,
191
+ 10,
192
+ 14,
193
+ 25,
194
+ 26,
195
+ 27,
196
+ 28,
197
+ 29,
198
+ 31,
199
+ 58,
200
+ 59,
201
+ 60,
202
+ 61,
203
+ 62,
204
+ 63,
205
+ 90,
206
+ 91,
207
+ 92,
208
+ 93,
209
+ 359,
210
+ 503,
211
+ 522,
212
+ 542,
213
+ 873,
214
+ 893,
215
+ 902,
216
+ 918,
217
+ 922,
218
+ 931,
219
+ 1350,
220
+ 1853,
221
+ 1982,
222
+ 2460,
223
+ 2627,
224
+ 3246,
225
+ 3253,
226
+ 3268,
227
+ 3536,
228
+ 3846,
229
+ 3961,
230
+ 4183,
231
+ 4667,
232
+ 6585,
233
+ 6647,
234
+ 7273,
235
+ 9061,
236
+ 9383,
237
+ 10428,
238
+ 10929,
239
+ 11938,
240
+ 12033,
241
+ 12331,
242
+ 12562,
243
+ 13793,
244
+ 14157,
245
+ 14635,
246
+ 15265,
247
+ 15618,
248
+ 16553,
249
+ 16604,
250
+ 18362,
251
+ 18956,
252
+ 20075,
253
+ 21675,
254
+ 22520,
255
+ 26130,
256
+ 26161,
257
+ 26435,
258
+ 28279,
259
+ 29464,
260
+ 31650,
261
+ 32302,
262
+ 32470,
263
+ 36865,
264
+ 42863,
265
+ 47425,
266
+ 49870,
267
+ 50254,
268
+ 50258,
269
+ 50360,
270
+ 50361,
271
+ 50362
272
+ ],
273
+ "suppress_ids_begin": [
274
+ 220,
275
+ 50257
276
+ ]
277
+ }
model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b415593cd109c0418d42ecb106c40ae45c8229cb4090e67db12243901e071ab3
3
+ size 1512556667
preprocessor_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "feature_extractor_type": "WhisperFeatureExtractor",
4
+ "feature_size": 80,
5
+ "hop_length": 160,
6
+ "n_fft": 400,
7
+ "n_samples": 480000,
8
+ "nb_max_frames": 3000,
9
+ "padding_side": "right",
10
+ "padding_value": 0.0,
11
+ "processor_class": "WhisperProcessor",
12
+ "return_attention_mask": false,
13
+ "sampling_rate": 16000
14
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
vocabulary.json ADDED
The diff for this file is too large to render. See raw diff