Open pfrancks opened 10 months ago
Could you test what happens if you remove the -nt
flag?
On Intel Macs, you have to run without the GPU. Try adding the -ng
flag
I tried both, -ng and -nt and nothing helped. However, I think this must be related to Metal. Whisper.cpp works very slowly (but works) if I build with
WHISPER_NO_METAL=1 make
Hm, the -ng
option should be equivalent to building with WHISPER_NO_METAL=1
It works on my 2013 Intel MacBook
@pfrancks the -ng
works fine too on my intel 2020 MacBook Pro:
./main -ng -m models/ggml-base.en.bin -f samples/jfk.wav
whisper_init_from_file_with_params_no_state: loading model from 'models/ggml-base.en.bin'
whisper_model_load: loading model
whisper_model_load: n_vocab = 51864
whisper_model_load: n_audio_ctx = 1500
whisper_model_load: n_audio_state = 512
whisper_model_load: n_audio_head = 8
whisper_model_load: n_audio_layer = 6
whisper_model_load: n_text_ctx = 448
whisper_model_load: n_text_state = 512
whisper_model_load: n_text_head = 8
whisper_model_load: n_text_layer = 6
whisper_model_load: n_mels = 80
whisper_model_load: ftype = 1
whisper_model_load: qntvr = 0
whisper_model_load: type = 2 (base)
whisper_model_load: adding 1607 extra tokens
whisper_model_load: n_langs = 99
whisper_model_load: CPU buffer size = 149.41 MB
whisper_model_load: model size = 149.32 MB
whisper_init_state: kv self size = 5.25 MB
whisper_init_state: kv cross size = 17.58 MB
whisper_init_state: compute buffer (conv) = 14.11 MB
whisper_init_state: compute buffer (encode) = 81.95 MB
whisper_init_state: compute buffer (cross) = 4.49 MB
whisper_init_state: compute buffer (decode) = 24.70 MB
system_info: n_threads = 4 / 8 | AVX = 1 | AVX2 = 1 | AVX512 = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | METAL = 1 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | CUDA = 0 | COREML = 0 | OPENVINO = 0 |
main: processing 'samples/jfk.wav' (176000 samples, 11.0 sec), 4 threads, 1 processors, lang = en, task = transcribe, timestamps = 1 ...
[00:00:00.000 --> 00:00:11.000] And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country.
I have followed the instructions of the README, however, I am unable to trascribe the jfk example: I get
I..-.,-?.,,.......,.... and,,- as AING-,.,... of..,.....,...- on a.. the ...?...,.,...-,. a......,.,.......,...,,,-,. of,?-,,.,D..,.-,.,. a......?? of.....,,-,?..,..?,...,,..., (..... H why...,-..,.'s, B-.. of. to-,.....,,..,,..,.?,,...... on,,?,-..-...,. "
as transcription.Here is the build log: