bl4dylion commited on
Commit
783754a
·
1 Parent(s): 522b8fe

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - audio
5
+ - automatic-speech-recognition
6
+ language:
7
+ - be
8
+ pipeline_tag: automatic-speech-recognition
9
+ ---
10
+ # Whisper small model for CTranslate2
11
+
12
+ This repository contains the conversion of fine-tunining Tiny version of Whisper 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/guillaumekln/faster-whisper).
15
+
16
+ ## Install faster-whisper
17
+ ```bash
18
+ pip install git+https://github.com/guillaumekln/faster-whisper.git
19
+ ```
20
+
21
+ ## Example
22
+
23
+ ```python
24
+ from faster_whisper import WhisperModel
25
+
26
+ model = WhisperModel("bl4dylion/faster-whisper-tiny-belarusian")
27
+
28
+ segments, info = model.transcribe("audio.mp3")
29
+ for segment in segments:
30
+ print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
31
+ ```
32
+
33
+ ## Conversion details
34
+
35
+ The original model was converted with the following command:
36
+
37
+ ```
38
+ ct2-transformers-converter --model <model_path> --output_dir faster-whisper-tiny-belarusian \
39
+ --copy_files tokenizer_config.json --quantization float16
40
+ ```
41
+
42
+ 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).