Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- ja
|
5 |
+
base_model:
|
6 |
+
- litagin/anime-whisper
|
7 |
+
tags:
|
8 |
+
- whisper
|
9 |
+
- anime
|
10 |
+
- japanese
|
11 |
+
---
|
12 |
+
|
13 |
+
# anime-whisper-ggml
|
14 |
+
|
15 |
+
このモデルは、[litagin/anime-whisper](https://huggingface.co/litagin/anime-whisper)を[whisper.cpp](https://github.com/ggml-org/whisper.cpp)を使ってggml変換・量子化を行ったモデルです。
|
16 |
+
|
17 |
+
推論の動作自体は確認していますが、文字起こし結果がややおかしくなる問題を抱えています(先頭に謎の文字が入るなど)。解決策等分かる方いれば教えてください。
|
18 |
+
|
19 |
+
## 変換手順
|
20 |
+
|
21 |
+
大本のモデルである[kotoba-tech/kotoba-whisper-v2.0-ggml](https://huggingface.co/kotoba-tech/kotoba-whisper-v2.0-ggml)のREADMEを参考に、以下のような手順で変換・量子化しています。
|
22 |
+
|
23 |
+
```bash
|
24 |
+
# clone OpenAI whisper and whisper.cpp
|
25 |
+
git clone https://github.com/openai/whisper
|
26 |
+
git clone https://github.com/ggerganov/whisper.cpp
|
27 |
+
|
28 |
+
# get the models
|
29 |
+
cd whisper.cpp/models
|
30 |
+
huggingface-cli download litagin/anime-whisper --local-dir ./anime-whisper
|
31 |
+
|
32 |
+
# convert to ggml
|
33 |
+
python ./convert-h5-to-ggml.py ./anime-whisper/ ../../whisper .
|
34 |
+
mv ggml-model.bin ggml-anime-whisper.bin
|
35 |
+
|
36 |
+
# quantize ggml model
|
37 |
+
cd ../
|
38 |
+
cmake -B build -DGGML_CUDA=1
|
39 |
+
cmake --build build -j --config Release
|
40 |
+
./build/bin/quantize models/ggml-anime-whisper.bin models/ggml-anime-whisper-q8_0.bin q8_0
|
41 |
+
```
|