Creating a formula for "whisper.cpp" #4292
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I'd also like to see this as a formula. For the standard language model ("small") - which gives excellent results - it should be as "simple" as this: def install
system "./make"
system "cd /models"
system "bash ./download-ggml-model.sh small"
end ... I'd probably then suggest to the user how they might download other language models. I don't know enough about Homebrew to help understand where the output of "./make" would go, sadly - but this is a perfect opportunity to use Homebrew, particularly since most users will also want to download |
Beta Was this translation helpful? Give feedback.
-
supports the proposal. whisper.cpp is so powerful a transcription utility. |
Beta Was this translation helpful? Give feedback.
-
It exists now! https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/w/whisper-cpp.rb After manually downloading a model and pointing In order to get the brew installed version to use metal I had to add the following env var:
I'm not sure what the best practice would be to automatically set that env var for the user (or prompt them to on install and upgrade), but it would be cool if it could be super fast straight out of the box. |
Beta Was this translation helpful? Give feedback.
It exists now! https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/w/whisper-cpp.rb
After manually downloading a model and pointing
whisper-cpp
to the right place it works fine but it doesn't use metal without some unintuitive trickery. I'm using an M1 Max and without metal it takes about 60 seconds to process a 1 min file. WITH metal the same task only takes 12 seconds!In order to get the brew installed version to use metal I had to add the following env var:
I'm not sure what the best practice would be to automatically s…