Commit
·
0ee468a
1
Parent(s):
1e45958
whisper large v3 turbo - ct2 int8 version
Browse files- README.md +78 -3
- config.json +224 -0
- model.bin +3 -0
- preprocessor_config.json +14 -0
- tokenizer.json +0 -0
- vocabulary.json +0 -0
README.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Whisper Large v3 Turbo - CTranslate2
|
| 2 |
+
|
| 3 |
+
This is a CTranslate2-optimized version of OpenAI's Whisper Large v3 Turbo model for automatic speech recognition (ASR).
|
| 4 |
+
|
| 5 |
+
## Model Description
|
| 6 |
+
|
| 7 |
+
This model is a converted version of the original Whisper Large v3 Turbo model, optimized for inference using CTranslate2. CTranslate2 is a C++ and Python library for efficient inference with Transformer models, providing:
|
| 8 |
+
|
| 9 |
+
- **Faster inference**: Optimized implementations of attention mechanisms and feed-forward networks
|
| 10 |
+
- **Lower memory usage**: Quantization support and memory-efficient attention
|
| 11 |
+
- **Better throughput**: Batching and parallel processing optimizations
|
| 12 |
+
- **Cross-platform compatibility**: Support for CPU and GPU inference
|
| 13 |
+
|
| 14 |
+
## Conversion
|
| 15 |
+
|
| 16 |
+
This model has been converted using the following command:
|
| 17 |
+
|
| 18 |
+
```bash
|
| 19 |
+
ct2-transformers-converter --model openai/whisper-large-v3-turbo --output_dir whisper-large-v3-turbo-ct2-int8 --quantization int8 --copy_files tokenizer.json preprocessor_config.json
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
The conversion includes **int8 quantization**, which provides several benefits:
|
| 23 |
+
|
| 24 |
+
- **Reduced disk space**: Significantly smaller model size compared to the original float32 version
|
| 25 |
+
- **Lower memory consumption**: Requires less RAM during inference
|
| 26 |
+
- **Maintained accuracy**: Minimal quality loss while providing substantial efficiency gains
|
| 27 |
+
- **Faster loading**: Reduced time to load the model from disk
|
| 28 |
+
|
| 29 |
+
## Original Model
|
| 30 |
+
|
| 31 |
+
This model is based on OpenAI's Whisper Large v3 Turbo, which is a state-of-the-art automatic speech recognition model that:
|
| 32 |
+
|
| 33 |
+
- Supports 99 languages
|
| 34 |
+
- Provides high-quality transcription and translation
|
| 35 |
+
- Features improved accuracy and speed compared to previous Whisper versions
|
| 36 |
+
- Handles various audio conditions and accents
|
| 37 |
+
|
| 38 |
+
## Usage
|
| 39 |
+
|
| 40 |
+
To use this model, you'll need to install CTranslate2 and the appropriate Whisper integration (faster-whisper):
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
pip install ctranslate2 faster-whisper
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from faster_whisper import WhisperModel
|
| 48 |
+
|
| 49 |
+
model_size = "path/to/whisper-large-v3-turbo-ct2"
|
| 50 |
+
model = WhisperModel(model_size, device="cpu", compute_type="int8")
|
| 51 |
+
|
| 52 |
+
segments, info = model.transcribe("audio.wav", beam_size=5)
|
| 53 |
+
|
| 54 |
+
for segment in segments:
|
| 55 |
+
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Performance
|
| 59 |
+
|
| 60 |
+
This CTranslate2 version provides significant performance improvements over the original PyTorch implementation:
|
| 61 |
+
|
| 62 |
+
- Up to 4x faster inference
|
| 63 |
+
- Reduced memory consumption
|
| 64 |
+
- Support for quantization
|
| 65 |
+
- Optimized for both CPU and GPU inference
|
| 66 |
+
|
| 67 |
+
## Supported Languages
|
| 68 |
+
|
| 69 |
+
Same as the original Whisper Large v3 Turbo:
|
| 70 |
+
Afrikaans, Arabic, Armenian, Azerbaijani, Belarusian, Bosnian, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Kannada, Kazakh, Korean, Latvian, Lithuanian, Macedonian, Malay, Marathi, Maori, Nepali, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Tagalog, Tamil, Thai, Turkish, Ukrainian, Urdu, Vietnamese, Welsh.
|
| 71 |
+
|
| 72 |
+
## Model Card
|
| 73 |
+
|
| 74 |
+
- **Developed by**: OpenAI (original), converted to CT2 format
|
| 75 |
+
- **Model type**: Automatic Speech Recognition
|
| 76 |
+
- **Language(s)**: Multilingual (99 languages)
|
| 77 |
+
- **License**: MIT
|
| 78 |
+
- **Model size**: Large (1550M parameters)
|
config.json
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alignment_heads": [
|
| 3 |
+
[
|
| 4 |
+
2,
|
| 5 |
+
4
|
| 6 |
+
],
|
| 7 |
+
[
|
| 8 |
+
2,
|
| 9 |
+
11
|
| 10 |
+
],
|
| 11 |
+
[
|
| 12 |
+
3,
|
| 13 |
+
3
|
| 14 |
+
],
|
| 15 |
+
[
|
| 16 |
+
3,
|
| 17 |
+
6
|
| 18 |
+
],
|
| 19 |
+
[
|
| 20 |
+
3,
|
| 21 |
+
11
|
| 22 |
+
],
|
| 23 |
+
[
|
| 24 |
+
3,
|
| 25 |
+
14
|
| 26 |
+
]
|
| 27 |
+
],
|
| 28 |
+
"lang_ids": [
|
| 29 |
+
50259,
|
| 30 |
+
50260,
|
| 31 |
+
50261,
|
| 32 |
+
50262,
|
| 33 |
+
50263,
|
| 34 |
+
50264,
|
| 35 |
+
50265,
|
| 36 |
+
50266,
|
| 37 |
+
50267,
|
| 38 |
+
50268,
|
| 39 |
+
50269,
|
| 40 |
+
50270,
|
| 41 |
+
50271,
|
| 42 |
+
50272,
|
| 43 |
+
50273,
|
| 44 |
+
50274,
|
| 45 |
+
50275,
|
| 46 |
+
50276,
|
| 47 |
+
50277,
|
| 48 |
+
50278,
|
| 49 |
+
50279,
|
| 50 |
+
50280,
|
| 51 |
+
50281,
|
| 52 |
+
50282,
|
| 53 |
+
50283,
|
| 54 |
+
50284,
|
| 55 |
+
50285,
|
| 56 |
+
50286,
|
| 57 |
+
50287,
|
| 58 |
+
50288,
|
| 59 |
+
50289,
|
| 60 |
+
50290,
|
| 61 |
+
50291,
|
| 62 |
+
50292,
|
| 63 |
+
50293,
|
| 64 |
+
50294,
|
| 65 |
+
50295,
|
| 66 |
+
50296,
|
| 67 |
+
50297,
|
| 68 |
+
50298,
|
| 69 |
+
50299,
|
| 70 |
+
50300,
|
| 71 |
+
50301,
|
| 72 |
+
50302,
|
| 73 |
+
50303,
|
| 74 |
+
50304,
|
| 75 |
+
50305,
|
| 76 |
+
50306,
|
| 77 |
+
50307,
|
| 78 |
+
50308,
|
| 79 |
+
50309,
|
| 80 |
+
50310,
|
| 81 |
+
50311,
|
| 82 |
+
50312,
|
| 83 |
+
50313,
|
| 84 |
+
50314,
|
| 85 |
+
50315,
|
| 86 |
+
50316,
|
| 87 |
+
50317,
|
| 88 |
+
50318,
|
| 89 |
+
50319,
|
| 90 |
+
50320,
|
| 91 |
+
50321,
|
| 92 |
+
50322,
|
| 93 |
+
50323,
|
| 94 |
+
50324,
|
| 95 |
+
50325,
|
| 96 |
+
50326,
|
| 97 |
+
50327,
|
| 98 |
+
50328,
|
| 99 |
+
50329,
|
| 100 |
+
50330,
|
| 101 |
+
50331,
|
| 102 |
+
50332,
|
| 103 |
+
50333,
|
| 104 |
+
50334,
|
| 105 |
+
50335,
|
| 106 |
+
50336,
|
| 107 |
+
50337,
|
| 108 |
+
50338,
|
| 109 |
+
50339,
|
| 110 |
+
50340,
|
| 111 |
+
50341,
|
| 112 |
+
50342,
|
| 113 |
+
50343,
|
| 114 |
+
50344,
|
| 115 |
+
50345,
|
| 116 |
+
50346,
|
| 117 |
+
50347,
|
| 118 |
+
50348,
|
| 119 |
+
50349,
|
| 120 |
+
50350,
|
| 121 |
+
50351,
|
| 122 |
+
50352,
|
| 123 |
+
50353,
|
| 124 |
+
50354,
|
| 125 |
+
50355,
|
| 126 |
+
50356,
|
| 127 |
+
50357,
|
| 128 |
+
50358
|
| 129 |
+
],
|
| 130 |
+
"suppress_ids": [
|
| 131 |
+
1,
|
| 132 |
+
2,
|
| 133 |
+
7,
|
| 134 |
+
8,
|
| 135 |
+
9,
|
| 136 |
+
10,
|
| 137 |
+
14,
|
| 138 |
+
25,
|
| 139 |
+
26,
|
| 140 |
+
27,
|
| 141 |
+
28,
|
| 142 |
+
29,
|
| 143 |
+
31,
|
| 144 |
+
58,
|
| 145 |
+
59,
|
| 146 |
+
60,
|
| 147 |
+
61,
|
| 148 |
+
62,
|
| 149 |
+
63,
|
| 150 |
+
90,
|
| 151 |
+
91,
|
| 152 |
+
92,
|
| 153 |
+
93,
|
| 154 |
+
359,
|
| 155 |
+
503,
|
| 156 |
+
522,
|
| 157 |
+
542,
|
| 158 |
+
873,
|
| 159 |
+
893,
|
| 160 |
+
902,
|
| 161 |
+
918,
|
| 162 |
+
922,
|
| 163 |
+
931,
|
| 164 |
+
1350,
|
| 165 |
+
1853,
|
| 166 |
+
1982,
|
| 167 |
+
2460,
|
| 168 |
+
2627,
|
| 169 |
+
3246,
|
| 170 |
+
3253,
|
| 171 |
+
3268,
|
| 172 |
+
3536,
|
| 173 |
+
3846,
|
| 174 |
+
3961,
|
| 175 |
+
4183,
|
| 176 |
+
4667,
|
| 177 |
+
6585,
|
| 178 |
+
6647,
|
| 179 |
+
7273,
|
| 180 |
+
9061,
|
| 181 |
+
9383,
|
| 182 |
+
10428,
|
| 183 |
+
10929,
|
| 184 |
+
11938,
|
| 185 |
+
12033,
|
| 186 |
+
12331,
|
| 187 |
+
12562,
|
| 188 |
+
13793,
|
| 189 |
+
14157,
|
| 190 |
+
14635,
|
| 191 |
+
15265,
|
| 192 |
+
15618,
|
| 193 |
+
16553,
|
| 194 |
+
16604,
|
| 195 |
+
18362,
|
| 196 |
+
18956,
|
| 197 |
+
20075,
|
| 198 |
+
21675,
|
| 199 |
+
22520,
|
| 200 |
+
26130,
|
| 201 |
+
26161,
|
| 202 |
+
26435,
|
| 203 |
+
28279,
|
| 204 |
+
29464,
|
| 205 |
+
31650,
|
| 206 |
+
32302,
|
| 207 |
+
32470,
|
| 208 |
+
36865,
|
| 209 |
+
42863,
|
| 210 |
+
47425,
|
| 211 |
+
49870,
|
| 212 |
+
50254,
|
| 213 |
+
50258,
|
| 214 |
+
50359,
|
| 215 |
+
50360,
|
| 216 |
+
50361,
|
| 217 |
+
50362,
|
| 218 |
+
50363
|
| 219 |
+
],
|
| 220 |
+
"suppress_ids_begin": [
|
| 221 |
+
220,
|
| 222 |
+
50257
|
| 223 |
+
]
|
| 224 |
+
}
|
model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7482f978f9493b93b3d0bf68a148a1a62ca02547e8ee981358ff8ef2de8a9418
|
| 3 |
+
size 814054531
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chunk_length": 30,
|
| 3 |
+
"feature_extractor_type": "WhisperFeatureExtractor",
|
| 4 |
+
"feature_size": 128,
|
| 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
|
|
|