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
Getting bizarre output on Metal #1862
Comments
Which PR? Are you using the latest |
I meant the PR where the Metal support was added. Yes, this is the latest master and cloned right before. |
I am facing the same issue, on Apple M2 Pro. |
Hm strange, it works on my M1 Pro and M2 Ultra |
Can you try a completely fresh build: git clone https://github.com/ggerganov/whisper.cpp whisper.cpp-coreml
cd whisper.cpp-coreml
# download base.en
./models/download-ggml-model.sh base.en
# create CoreML model
python3 -m venv .coreml
source ./.coreml/bin/activate
pip3 install -r ./models/requirements-coreml.txt
./models/generate-coreml-model.sh base.en
# build and run
WHISPER_COREML=1 make -j && ./main -m models/ggml-base.en.bin -f samples/jfk.wav |
Yes, same thing. I just ran all that and the output is
|
Hm strange. And can you confirm that it works if you checkout |
Possibly something to do with Swift version, maybe, a wild guess. I am using Swift version 5.8, btw. |
I get the following output: [00:00:00.000 --> 00:00:30.000] and my first |
Gives following output, for this too: |
So this means that it is not caused by any recent changes. |
On v1.5.4, I still get the same thing:
Which is, strangely, slightly different from what milsun is getting above. I'll see if I can figure out some earlier commit that works. |
OK, it does work in commit 5e47e22, which is where CoreML was added.
I note for both this commit and v1.5.4, I used conda instead of venv as ./models/requirements-coreml.txt wasn't there. |
The commit seems to work. Thanks! |
Tried the latest code on M3, works. |
I'm getting very strange output when running some of the basic samples from Metal on an M1 Max. In particular, I'm getting this for jfk.wav, with the CoreML base.en, basically from the instructions that are on the README right now:
I've installed all of the pip libraries and etc. Here's the entire output log from generating the coreml file onward:
CoreML
Running whisper.cpp
If I run the same thing without coreml I get the correct output. Has something changed since this PR was added?
The text was updated successfully, but these errors were encountered: