bl4dylion commited on
Commit
781caa3
1 Parent(s): 9dd138d

Update README.md

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