M1 support #51
Replies: 13 comments 16 replies
-
I did get it to (partially) run. I installed the nightly build of And then run it with CPU fallback and fp16 disabled
But it would still crash after some time - but with some correct output first - with the following error:
|
Beta Was this translation helpful? Give feedback.
-
I used the last version of PyTorch, but the problem is still |
Beta Was this translation helpful? Give feedback.
-
The problem still persists even after I installed a conda environment with nightly pytorch as described here https://towardsdatascience.com/gpu-acceleration-comes-to-pytorch-on-m1-macs-195c399efcc1 |
Beta Was this translation helpful? Give feedback.
-
I get the same complaint:
You can see it's still uncompleted on the to-do list: pytorch/pytorch#77764 (comment) |
Beta Was this translation helpful? Give feedback.
-
I confirm this problem persists. |
Beta Was this translation helpful? Give feedback.
-
There's a C++ version that runs natively under macOS with Apple Silicon: https://github.com/ggerganov/whisper.cpp |
Beta Was this translation helpful? Give feedback.
-
I removed the two |
Beta Was this translation helpful? Give feedback.
-
Same experience as @0x2447196. Removing the couple of .to_sparse() calls in model.py returns whisper to working, but with a drastically reduced speed. |
Beta Was this translation helpful? Give feedback.
-
some news to gpu use in m1? thx |
Beta Was this translation helpful? Give feedback.
-
mark |
Beta Was this translation helpful? Give feedback.
-
i have the same problem when using mps: |
Beta Was this translation helpful? Give feedback.
-
here for any kinds of update |
Beta Was this translation helpful? Give feedback.
-
The so called MPS ( Metal Performance Shaders ) are there to be used by pytorch. But, as far as I can tell, nobody has been able to use them within this project. Bare in mind that running Whisper locally goes against OpenAI interests, therefore I would not expect any time soon to see support for Apple Silicon GPU by any of the commiters of the project. In a fork someday? maybe... In the meantime, I encourage you to try whisper.cpp it works like a charm in Apple Silicon using the GPU as a first class citizen. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
While using the app, I experienced the following issue on my M1 Max (Mac Studio).
The app seems to be using exclusively CPU, not even 1% of GPU. While both PyTorch and Python are fully optimised for M1, I don't see any reason for this app to stay behind.
Hope to see some news soon!
Regards
Beta Was this translation helpful? Give feedback.
All reactions