Skip to content

Commit

Permalink
fix(whisper.cpp) (#7538)
Browse files Browse the repository at this point in the history
* fix(whisper.cpp)

 closes #7535

* openmp
  • Loading branch information
jhheider authored Oct 5, 2024
1 parent 55a197b commit fcd1c13
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions projects/github.com/ggerganov/whisper.cpp/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ provides:

dependencies:
libsdl.org: '*'
linux:
openmp.llvm.org: 18 # as of 1.7.0

build:
dependencies:
Expand All @@ -30,9 +32,12 @@ build:

# ggml-metal.metal must be installed alongside whisper.cpp sadly
- install -Dt {{prefix}}/bin
ggml-metal.metal
stream command
models/download-ggml-model.sh
stream command
models/download-ggml-model.sh
- run: cp ggml-metal.metal {{prefix}}/bin
if: <1.7
- run: cp ggml/src/ggml-metal.metal {{prefix}}/bin
if: '>=1.7'

- install -D main {{prefix}}/bin/whisper.cpp

Expand All @@ -45,5 +50,4 @@ test:
huggingface-cli download ggerganov/whisper.cpp ggml-base.en.bin
model="$(find "$cache" -name "ggml-base.en.bin")"
curl https://github.com/ggerganov/whisper.cpp/raw/master/samples/jfk.wav | whisper.cpp --model "$model" -
cache:
$HOME/.cache/huggingface
cache: $HOME/.cache/huggingface

0 comments on commit fcd1c13

Please sign in to comment.