Closed rehans closed 2 months ago
Some observations about performance:
-l "auto"
use -l "en"
speeds the process up quite a bitResources
folder inside the bundle. (but which ggml-metal.metal file, there are several. Somehow this file can be compiled into .metallib
files?!).metal
e.g. ggml-metal.metal
. .metal
files into a library called default.metallib
. This library is automatically added to the app bundle's Contents/Resources
subfolder. (MSL files can also be built manually: https://github.com/ggerganov/llama.cpp/issues/5977#issuecomment-1987295222)Contents/Resources
subfolder (as source files WITHOUT being compiled beforehand).Source: https://gist.github.com/MilesLitteral/1a5d9efade94a11cd0898dbee7727775
Whisper takes all options into account. It searches for
default.metallib
,ggml-metal.metal
next to the executable (if it is not a bundle) andggml-metal.metal
inside the Contents/Resources
subfolder of the bundle.Source: https://github.com/ggerganov/whisper.cpp/blob/master/ggml-metal.m#L313
@MaxDev0101 Sorry, I forgot to make a PR ;) But I just added both files to CMake:
Copy needed files into bundle