RASMUS commited on
Commit
c58924b
1 Parent(s): c99cebc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -0
README.md CHANGED
@@ -1,3 +1,64 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - fi
5
+ tags:
6
+ - speech-recognition
7
  ---
8
+
9
+ Example how to use with whisper.cpp
10
+
11
+ ```bash
12
+ git clone https://github.com/ggerganov/whisper.cpp.git
13
+ cd whisper.cpp
14
+
15
+ git reset --hard 0b9af32a8b3fa7e2ae5f15a9a08f5b10394993f5
16
+ make
17
+ ```
18
+
19
+ ```bash
20
+ one of the following:
21
+ ./main -m ggml-model-fi-tiny.bin -f INSERT_YOUR_FILENAME_HERE.wav -l fi
22
+ ./main -m ggml-model-fi-medium.bin -f INSERT_YOUR_FILENAME_HERE.wav -l fi
23
+ ./main -m ggml-model-fi-large.bin -f INSERT_YOUR_FILENAME_HERE.wav -l fi
24
+ ./main -m ggml-model-fi-large-v3.bin -f INSERT_YOUR_FILENAME_HERE.wav -l fi
25
+ ```
26
+
27
+ ```bash
28
+ Sample output should look something like this:
29
+
30
+
31
+ (finetuneEnv) rasmus@DESKTOP-59O9VN1:/mnt/f/Omat_opiskelut/whisper_transformaatio/whisper.cpp$ ./main -m ggml-model-fi-medium.bin -f oma_nauhoitus_16khz.wav -l fi
32
+ whisper_init_from_file_with_params_no_state: loading model from 'ggml-model-fi-medium.bin'
33
+ whisper_model_load: loading model
34
+ whisper_model_load: n_vocab = 51865
35
+ whisper_model_load: n_audio_ctx = 1500
36
+ whisper_model_load: n_audio_state = 1024
37
+ whisper_model_load: n_audio_head = 16
38
+ whisper_model_load: n_audio_layer = 24
39
+ whisper_model_load: n_text_ctx = 448
40
+ whisper_model_load: n_text_state = 1024
41
+ whisper_model_load: n_text_head = 16
42
+ whisper_model_load: n_text_layer = 24
43
+ whisper_model_load: n_mels = 80
44
+ whisper_model_load: ftype = 1
45
+ whisper_model_load: qntvr = 0
46
+ whisper_model_load: type = 4 (medium)
47
+ whisper_model_load: adding 1608 extra tokens
48
+ whisper_model_load: n_langs = 99
49
+ whisper_model_load: CPU buffer size = 1533.52 MB
50
+ whisper_model_load: model size = 1533.14 MB
51
+ whisper_init_state: kv self size = 132.12 MB
52
+ whisper_init_state: kv cross size = 147.46 MB
53
+ whisper_init_state: compute buffer (conv) = 25.61 MB
54
+ whisper_init_state: compute buffer (encode) = 170.28 MB
55
+ whisper_init_state: compute buffer (cross) = 7.85 MB
56
+ whisper_init_state: compute buffer (decode) = 98.32 MB
57
+
58
+ system_info: n_threads = 4 / 8 | AVX = 1 | AVX2 = 1 | AVX512 = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | METAL = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | CUDA = 0 | COREML = 0 | OPENVINO = 0 |
59
+
60
+ main: processing 'oma_nauhoitus_16khz.wav' (144160 samples, 9.0 sec), 4 threads, 1 processors, 5 beams + best of 5, lang = fi, task = transcribe, timestamps = 1 ...
61
+
62
+
63
+ [00:00:00.000 --> 00:00:09.000] Moi, nimeni on Rasmus ja testaan tekoälymallia, joka tunnistaa puheeni ja kirjoittaa sen tekstiksi.
64
+ ```