Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: ja
|
| 3 |
+
tags:
|
| 4 |
+
- audio
|
| 5 |
+
- automatic-speech-recognition
|
| 6 |
+
license: mit
|
| 7 |
+
library_name: ctranslate2
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Whisper kotoba-whisper-v1.0 model for CTranslate2
|
| 11 |
+
|
| 12 |
+
This repository contains the conversion of [kotoba-tech/kotoba-whisper-v1.0](https://huggingface.co/kotoba-tech/kotoba-whisper-v1.0) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format.
|
| 13 |
+
|
| 14 |
+
This model can be used in CTranslate2 or projects based on CTranslate2 such as [faster-whisper](https://github.com/systran/faster-whisper).
|
| 15 |
+
|
| 16 |
+
## Example
|
| 17 |
+
|
| 18 |
+
```python
|
| 19 |
+
from faster_whisper import WhisperModel
|
| 20 |
+
|
| 21 |
+
model = WhisperModel("kotoba-tech/kotoba-whisper-v1.02")
|
| 22 |
+
|
| 23 |
+
segments, info = model.transcribe("audio.mp3")
|
| 24 |
+
for segment in segments:
|
| 25 |
+
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Conversion details
|
| 29 |
+
|
| 30 |
+
The original model was converted with the following command:
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
ct2-transformers-converter --model distil-whisper/distil-large-v2 --output_dir faster-distil-whisper-large-v2 \
|
| 34 |
+
--copy_files tokenizer.json preprocessor_config.json --quantization float16
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
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).
|
| 38 |
+
|
| 39 |
+
## More information
|
| 40 |
+
|
| 41 |
+
**For more information about the original model, see its [model card](https://huggingface.co/distil-whisper/distil-large-v2).**
|