From 76a12677998f115f5265187511bb8b90c271e896 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 15 May 2023 01:00:16 +0200 Subject: [PATCH] bump: update whisper.cpp (#260) --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 274cbfd..4cf3a76 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ GPT4ALL_VERSION?=a330bfe26e9e35ca402e16df18973a3b162fb4db GOGPT2_VERSION?=92421a8cf61ed6e03babd9067af292b094cb1307 RWKV_REPO?=https://github.com/donomii/go-rwkv.cpp RWKV_VERSION?=07166da10cb2a9e8854395a4f210464dcea76e47 -WHISPER_CPP_VERSION?=1d17cd5bb37a3212679d6055ad69ba5a8d58eb71 +WHISPER_CPP_VERSION?=a5defbc1b98bea0f070331ce1e8b62d947b0443d BERT_VERSION?=33118e0da50318101408986b86a331daeb4a6658 BLOOMZ_VERSION?=e9366e82abdfe70565644fbfae9651976714efd1 @@ -118,6 +118,9 @@ go-gpt2/libgpt2.a: go-gpt2 whisper.cpp: git clone https://github.com/ggerganov/whisper.cpp.git cd whisper.cpp && git checkout -b build $(WHISPER_CPP_VERSION) && git submodule update --init --recursive --depth 1 + @find ./whisper.cpp -type f -name "*.c" -exec sed -i'' -e 's/ggml_/ggml_whisper_/g' {} + + @find ./whisper.cpp -type f -name "*.cpp" -exec sed -i'' -e 's/ggml_/ggml_whisper_/g' {} + + @find ./whisper.cpp -type f -name "*.h" -exec sed -i'' -e 's/ggml_/ggml_whisper_/g' {} + whisper.cpp/libwhisper.a: whisper.cpp cd whisper.cpp && make libwhisper.a