Closed knpwrs closed 1 year ago
You can always build the main
example manually by running these commands:
cc -I. -O3 -std=c11 -pthread -DGGML_USE_ACCELERATE -c ggml.c -o ggml.o
c++ -I. -I./examples -O3 -std=c++11 -pthread -c whisper.cpp -o whisper.o
c++ -I. -I./examples -O3 -std=c++11 -pthread examples/main/main.cpp ggml.o whisper.o -o main -framework Accelerate
This should work regardless of the terminal app that you use. Other than that, I am not sure what is the problem. It looks like some misconfiguration in your environment.
Those commands work. And the transcribing is brilliantly fast even on CPU (the original python implementation was painfully slow).
Awesome work on this!
While it would be great to have make
working I'm going to end up building this in Docker and running it in Linux containers so I'll just go ahead and close this since it's not blocking me.
Thank you!
Just FYI - whisper.cpp
is 2-3 times faster compared to Python only on ARM Apple Silicon CPUs.
On x86 architectures it is only marginally faster, so don't expect the same performance on Linux.
Good to know. I'll have to try it out. What about ARM in the cloud, by chance? E.g., AWS Graviton.
Here are benchmarks for Graviton 3: https://github.com/ggerganov/whisper.cpp/issues/89#issuecomment-1322319512
Whenever I run
make
I see the following output:I saw the link to https://github.com/ggerganov/whisper.cpp/issues/66\#issuecomment-1282546789 but I'm not seeing anything that helps out. On a hunch from that thread I thought I might be having an issue due to using Alacritty as my terminal emulator with Tmux as a multiplexer. So I opened
Terminal.app
and... it worked!When I went to check
Activity Monitor.app
, however, it appeared that Alcritty, tmux, and zsh were all Apple processes, not Intel (i.e., not running under Rosetta):Confused, I decided to try
make clean
andmake
again in my Alacritty/tmux/zsh setup, and saw the same error as I did originally.Here's the real kicker though: I went back to
Terminal.app
, plain zsh, no tmux, and... now I'm seeing the same build error as I did originally under Alacritty, for bothmake
andmake base.en
:I'm not super familiar with C++, but it seems like the compiler doesn't like something inside
Accelerate.framework
. Are there any debugging steps I can take to figure this out?