-
Notifications
You must be signed in to change notification settings - Fork 4.2k
whisper_backend_init_gpu: failed to initialize Metal backend #3009
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
Comments
Full example output (divided into 2 comment posts) from
|
cont.:
|
@7k50 Thanks for reporting this. I'm currently updating to Xcode 16.3 and I'll see if I can reproduce this. Could you share the build commands that you used to build whisper.cpp? I've tried this out after upgrading to Xcode 16.3, but I've got an M3 so slightly different environment. I was not able to reproduce this directly, but I could force the same error that you are seeing by modifying the path to ggml-common.h to something that does not exist. This will build successfully but at runtime I get a similar error to what you are seeing: whisper_backend_init_gpu: using Metal backend
ggml_metal_init: allocating
ggml_metal_init: found device: Apple M3
ggml_metal_init: picking default device: Apple M3
ggml_metal_load_library: using embedded metal library
ggml_metal_load_library: error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:662:35: error: unknown type name 'block_q4_0'
void dequantize_q4_0(device const block_q4_0 * xb, short il, thread type4x4 & reg) {
^
program_source:681:38: error: unknown type name 'block_q4_0'
void dequantize_q4_0_t4(device const block_q4_0 * xb, short il, thread type4 & reg) {
... But if this header is not there the build would fail so that does not seem like it could be the issue here. The same error would happen if the sed command is failing. Any chance you have a different version of sed that then system default? |
On MacOS, I'm suddenly having pecuilar issues when running, e.g.:
./build/bin/whisper-cli -f samples/jfk.wav
or
./build/bin/whisper-cli -m models/ggml-base.en.bin -f samples/jfk.wav
The main issue seems to be:
Giving lots of errors like:
I'm having this problem both in whisper.cpp
v.1.7.4
&v.1.7.5
.I've tried reinstalling both from scratch (using Python
3.10
&3.11
respectively).I've also tried on different Macs, running MacOS
15.4
&15.3.2
.Xcode version is however the same regardless of MacOS version (Xcode
16.3
released a few days ago), since it's updated via App Store.I don't have an idea about what the problem is, or how to resolve.
The text was updated successfully, but these errors were encountered: