Spaces:
Sleeping
Sleeping
models : add info about distilled models
Browse files- models/README.md +24 -0
models/README.md
CHANGED
|
@@ -76,3 +76,27 @@ git clone https://huggingface.co/openai/whisper-medium
|
|
| 76 |
# convert the model to ggml
|
| 77 |
python3 ./whisper.cpp/models/convert-h5-to-ggml.py ./whisper-medium/ ./whisper .
|
| 78 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
# convert the model to ggml
|
| 77 |
python3 ./whisper.cpp/models/convert-h5-to-ggml.py ./whisper-medium/ ./whisper .
|
| 78 |
```
|
| 79 |
+
|
| 80 |
+
## Distilled models
|
| 81 |
+
|
| 82 |
+
Initial support for https://huggingface.co/distil-whisper is available.
|
| 83 |
+
|
| 84 |
+
Currently, the chunk-based transcription strategy is not implemented, so there can be sub-optimal quality when using the distilled models with `whisper.cpp`.
|
| 85 |
+
|
| 86 |
+
```bash
|
| 87 |
+
# clone OpenAI whisper and whisper.cpp
|
| 88 |
+
git clone https://github.com/openai/whisper
|
| 89 |
+
git clone https://github.com/ggerganov/whisper.cpp
|
| 90 |
+
|
| 91 |
+
# get the models
|
| 92 |
+
cd whisper.cpp/models
|
| 93 |
+
git clone https://huggingface.co/distil-whisper/distil-medium.en
|
| 94 |
+
git clone https://huggingface.co/distil-whisper/distil-large-v2
|
| 95 |
+
|
| 96 |
+
# convert to ggml
|
| 97 |
+
python3 ./convert-h5-to-ggml.py ./distil-medium.en/ ../../whisper .
|
| 98 |
+
mv ggml-model.bin ggml-medium.en-distil.bin
|
| 99 |
+
|
| 100 |
+
python3 ./convert-h5-to-ggml.py ./distil-large-v2/ ../../whisper .
|
| 101 |
+
mv ggml-model.bin ggml-large-v2-distil.bin
|
| 102 |
+
```
|