guillaumekln
commited on
Commit
•
fad79c0
1
Parent(s):
500d14e
Upload with huggingface_hub
Browse files- README.md +42 -0
- config.json +218 -0
- model.bin +3 -0
- tokenizer.json +0 -0
- 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 base.en model for CTranslate2
|
12 |
+
|
13 |
+
This repository contains the conversion of [openai/whisper-base.en](https://huggingface.co/openai/whisper-base.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("base.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-base.en --output_dir faster-whisper-base.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-base.en).**
|
config.json
ADDED
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alignment_heads": [
|
3 |
+
[
|
4 |
+
3,
|
5 |
+
3
|
6 |
+
],
|
7 |
+
[
|
8 |
+
4,
|
9 |
+
7
|
10 |
+
],
|
11 |
+
[
|
12 |
+
5,
|
13 |
+
1
|
14 |
+
],
|
15 |
+
[
|
16 |
+
5,
|
17 |
+
5
|
18 |
+
],
|
19 |
+
[
|
20 |
+
5,
|
21 |
+
7
|
22 |
+
]
|
23 |
+
],
|
24 |
+
"lang_ids": [
|
25 |
+
50259,
|
26 |
+
50260,
|
27 |
+
50261,
|
28 |
+
50262,
|
29 |
+
50263,
|
30 |
+
50264,
|
31 |
+
50265,
|
32 |
+
50266,
|
33 |
+
50267,
|
34 |
+
50268,
|
35 |
+
50269,
|
36 |
+
50270,
|
37 |
+
50271,
|
38 |
+
50272,
|
39 |
+
50273,
|
40 |
+
50274,
|
41 |
+
50275,
|
42 |
+
50276,
|
43 |
+
50277,
|
44 |
+
50278,
|
45 |
+
50279,
|
46 |
+
50280,
|
47 |
+
50281,
|
48 |
+
50282,
|
49 |
+
50283,
|
50 |
+
50284,
|
51 |
+
50285,
|
52 |
+
50286,
|
53 |
+
50287,
|
54 |
+
50288,
|
55 |
+
50289,
|
56 |
+
50290,
|
57 |
+
50291,
|
58 |
+
50292,
|
59 |
+
50293,
|
60 |
+
50294,
|
61 |
+
50295,
|
62 |
+
50296,
|
63 |
+
50297,
|
64 |
+
50298,
|
65 |
+
50299,
|
66 |
+
50300,
|
67 |
+
50301,
|
68 |
+
50302,
|
69 |
+
50303,
|
70 |
+
50304,
|
71 |
+
50305,
|
72 |
+
50306,
|
73 |
+
50307,
|
74 |
+
50308,
|
75 |
+
50309,
|
76 |
+
50310,
|
77 |
+
50311,
|
78 |
+
50312,
|
79 |
+
50313,
|
80 |
+
50314,
|
81 |
+
50315,
|
82 |
+
50316,
|
83 |
+
50317,
|
84 |
+
50318,
|
85 |
+
50319,
|
86 |
+
50320,
|
87 |
+
50321,
|
88 |
+
50322,
|
89 |
+
50323,
|
90 |
+
50324,
|
91 |
+
50325,
|
92 |
+
50326,
|
93 |
+
50327,
|
94 |
+
50328,
|
95 |
+
50329,
|
96 |
+
50330,
|
97 |
+
50331,
|
98 |
+
50332,
|
99 |
+
50333,
|
100 |
+
50334,
|
101 |
+
50335,
|
102 |
+
50336,
|
103 |
+
50337,
|
104 |
+
50338,
|
105 |
+
50339,
|
106 |
+
50340,
|
107 |
+
50341,
|
108 |
+
50342,
|
109 |
+
50343,
|
110 |
+
50344,
|
111 |
+
50345,
|
112 |
+
50346,
|
113 |
+
50347,
|
114 |
+
50348,
|
115 |
+
50349,
|
116 |
+
50350,
|
117 |
+
50351,
|
118 |
+
50352,
|
119 |
+
50353,
|
120 |
+
50354,
|
121 |
+
50355,
|
122 |
+
50356
|
123 |
+
],
|
124 |
+
"suppress_ids": [
|
125 |
+
1,
|
126 |
+
2,
|
127 |
+
7,
|
128 |
+
8,
|
129 |
+
9,
|
130 |
+
10,
|
131 |
+
14,
|
132 |
+
25,
|
133 |
+
26,
|
134 |
+
27,
|
135 |
+
28,
|
136 |
+
29,
|
137 |
+
31,
|
138 |
+
58,
|
139 |
+
59,
|
140 |
+
60,
|
141 |
+
61,
|
142 |
+
62,
|
143 |
+
63,
|
144 |
+
90,
|
145 |
+
91,
|
146 |
+
92,
|
147 |
+
93,
|
148 |
+
357,
|
149 |
+
366,
|
150 |
+
438,
|
151 |
+
532,
|
152 |
+
685,
|
153 |
+
705,
|
154 |
+
796,
|
155 |
+
930,
|
156 |
+
1058,
|
157 |
+
1220,
|
158 |
+
1267,
|
159 |
+
1279,
|
160 |
+
1303,
|
161 |
+
1343,
|
162 |
+
1377,
|
163 |
+
1391,
|
164 |
+
1635,
|
165 |
+
1782,
|
166 |
+
1875,
|
167 |
+
2162,
|
168 |
+
2361,
|
169 |
+
2488,
|
170 |
+
3467,
|
171 |
+
4008,
|
172 |
+
4211,
|
173 |
+
4600,
|
174 |
+
4808,
|
175 |
+
5299,
|
176 |
+
5855,
|
177 |
+
6329,
|
178 |
+
7203,
|
179 |
+
9609,
|
180 |
+
9959,
|
181 |
+
10563,
|
182 |
+
10786,
|
183 |
+
11420,
|
184 |
+
11709,
|
185 |
+
11907,
|
186 |
+
13163,
|
187 |
+
13697,
|
188 |
+
13700,
|
189 |
+
14808,
|
190 |
+
15306,
|
191 |
+
16410,
|
192 |
+
16791,
|
193 |
+
17992,
|
194 |
+
19203,
|
195 |
+
19510,
|
196 |
+
20724,
|
197 |
+
22305,
|
198 |
+
22935,
|
199 |
+
27007,
|
200 |
+
30109,
|
201 |
+
30420,
|
202 |
+
33409,
|
203 |
+
34949,
|
204 |
+
40283,
|
205 |
+
40493,
|
206 |
+
40549,
|
207 |
+
47282,
|
208 |
+
49146,
|
209 |
+
50257,
|
210 |
+
50359,
|
211 |
+
50360,
|
212 |
+
50361
|
213 |
+
],
|
214 |
+
"suppress_ids_begin": [
|
215 |
+
220,
|
216 |
+
50256
|
217 |
+
]
|
218 |
+
}
|
model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2a166925539a16005f14ff328359f9b9adb9dc4fb631bb3b227526862e93e2ef
|
3 |
+
size 145216508
|
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
|
|