-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling on Mac Pro 5.1 - Illegal instruction: 4 #597
Comments
If you remove the following line from the Makefile and run Line 67 in 4aa3bcf
|
Always update before reporting a problem.Lesson learned, move forward if you have the same error. removed (line 88 for me) nevertheless, i tried with line 67 removing: CFLAGS += -mavx
did
Same error, this is the output: MacPro:whisper.cpp federico$ make cc -I. -O3 -DNDEBUG -std=c11 -fPIC -pthread -mf16c -DGGML_USE_ACCELERATE -c ggml.c -o ggml.o usage: ./main [options] file0.wav file1.wav ... options: MacPro:whisper.cpp federico$ ./main -f samples/jfk.wav |
Did a repo pull, changed line 67 and everything worked flawlessly. This are the benchmark results for jfk.wav if you may be interested: whisper_init_from_file_no_state: loading model from 'models/ggml-base.en.bin' system_info: n_threads = 4 / 24 | AVX = 0 | AVX2 = 0 | AVX512 = 0 | FMA = 0 | NEON = 0 | ARM_FMA = 0 | F16C = 0 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | VSX = 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. whisper_print_timings: load time = 1848.29 ms |
I also ran into the same issue and the makefile line 67 fix worked for me as well. I am noticing that this build of the executable runs considerably slower than my other builds. What exactly does removing line 67 do to the file processing or processor utilization? |
Happened the same to me. |
I'm having the same error. I am trying to package whisper for a package manager tea, and one of the GitHub actions on the repo is to check whether the build works on an intel mac. Once I fetch the latest release from GitHub, I am applying a patch where I remove line 67, but I still run into this error. Specs are Any thoughts? Happy to provide more details! Here is the error output: Done! Model 'base.en' saved in 'models/ggml-base.en.bin'
You can now use it like this:
$ ./main -m models/ggml-base.en.bin -f samples/jfk.wav
/Users/runner/.tea/github.com/ggerganov/whisper.cpp/v1.3.0/tbin/models/base.en.bin
whisper_init_from_file_no_state: loading model from '/Users/runner/.tea/github.com/ggerganov/whisper.cpp/v1.3.0/tbin/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: f16 = 1
whisper_model_load: type = 2
whisper_model_load: mem required = 218.00 MB (+ 6.00 MB per decoder)
whisper_model_load: adding 1607 extra tokens
whisper_model_load: model ctx = 140.60 MB
whisper_model_load: model size = 140.54 MB
whisper_init_state: kv self size = 5.25 MB
whisper_init_state: kv cross size = 17.58 MB
system_info: n_threads = 3 / 3 | AVX = 1 | AVX2 = 1 | AVX512 = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 0 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | VSX = 0 | COREML = 0 |
main: processing '/Users/runner/.tea/github.com/ggerganov/whisper.cpp/v1.3.0/share/jfk.wav' (176000 samples, 11.0 sec), 3 threads, 1 processors, lang = en, task = transcribe, timestamps = 1 ...
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/afa95bc2/xyz.tea.test.sh: line 24: 3237 Illegal instruction: 4 whisper.main -f /Users/runner/.tea/github.com/ggerganov/whisper.cpp/v1.3.0/share/jfk.wav --print-colors
Error: Process completed with exit code 132. |
It seems there's an error from sysctl which is on the right path: /usr/sbin/sysctl.
Make warns about fall back on libraries.
I'm not very savvy compiling on mac, clearly.
This is my target platform, make output and error running the example. Any help will be very much appreciated.
High Sierra 10.3.6
2 x Intel(R) Xeon(R) CPU X5675 @ 3.07GHz
NVIDIA GeForce GTX 980
The text was updated successfully, but these errors were encountered: