asahi417 commited on
Commit
6f03869
·
verified ·
1 Parent(s): ff474f4

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: ja
3
+ tags:
4
+ - audio
5
+ - automatic-speech-recognition
6
+ license: apache-2.0
7
+ ---
8
+
9
+ # Kotoba-Whisper: kotoba-whisper-v1.0 for Whisper cpp
10
+ This repository contains the model weights for [kotoba-tech/kotoba-whisper-v1.0](https://huggingface.co/kotoba-tech/kotoba-whisper-v1.0)
11
+ converted to [GGML](https://github.com/ggerganov/ggml) format. GGML is the weight format expected by C/C++ packages
12
+ such as [Whisper.cpp](https://github.com/ggerganov/whisper.cpp), for which we provide an example below.
13
+
14
+ ## Usage
15
+ Kotoba-Whisper can be run with the [Whisper.cpp](https://github.com/ggerganov/whisper.cpp) package with the original
16
+ sequential long-form transcription algorithm.
17
+
18
+ Steps for getting started:
19
+
20
+ 1. Clone the Whisper.cpp repository:
21
+ ```
22
+ git clone https://github.com/ggerganov/whisper.cpp.git
23
+ cd whisper.cpp
24
+ ```
25
+ 2. Install the Hugging Face Hub Python package:
26
+ ```bash
27
+ pip install --upgrade huggingface_hub
28
+ ```
29
+ And download the GGML weights for distil-large-v3 using the following Python snippet:
30
+
31
+ ```python
32
+ from huggingface_hub import hf_hub_download
33
+
34
+ hf_hub_download(repo_id='kotoba-tech/kotoba-whisper-v1.0-ggml', filename='ggml-kotoba-whisper-v1.0.bin', local_dir='./models')
35
+ ```
36
+
37
+ Note that if you do not have a Python environment set-up, you can also download the weights directly with `wget`:
38
+
39
+ ```bash
40
+ wget https://huggingface.co/kotoba-tech/kotoba-whisper-v1.0-ggml/resolve/main/ggml-kotoba-whisper-v1.0.bin -P ./models
41
+ ```
42
+
43
+ 3. Run inference using the provided sample audio:
44
+
45
+ ```bash
46
+ make -j && ./main -m models/ggml-kotoba-whisper-v1.0.bin -f samples/jfk.wav
47
+ ```
48
+
49
+ ## Model Details
50
+
51
+ For more information about the distil-large-v3 model, refer to the original [model card](https://huggingface.co/kotoba-tech/kotoba-whisper-v1.0).