@@ -22,7 +22,7 @@ RWKV_REPO?=https://github.com/donomii/go-rwkv.cpp
22
22
RWKV_VERSION? =c898cd0f62df8f2a7830e53d1d513bef4f6f792b
23
23
24
24
# whisper.cpp version
25
- WHISPER_CPP_VERSION? =85ed71aaec8e0612a84c0b67804bde75aa75a273
25
+ WHISPER_CPP_VERSION? =9d6ebd877ce7d99053423d186e6f5387a4a4753c
26
26
27
27
# bert.cpp version
28
28
BERT_VERSION? =6abe312cded14042f6b7c3cd8edf082713334a4d
@@ -85,11 +85,13 @@ endif
85
85
86
86
ifeq ($(BUILD_TYPE ) ,openblas)
87
87
CGO_LDFLAGS+=-lopenblas
88
+ export WHISPER_OPENBLAS=1
88
89
endif
89
90
90
91
ifeq ($(BUILD_TYPE ) ,cublas)
91
92
CGO_LDFLAGS+=-lcublas -lcudart -L$(CUDA_LIBPATH)
92
93
export LLAMA_CUBLAS=1
94
+ export WHISPER_CUBLAS=1
93
95
endif
94
96
95
97
ifeq ($(BUILD_TYPE ) ,hipblas)
@@ -98,6 +100,7 @@ ifeq ($(BUILD_TYPE),hipblas)
98
100
export CC=$(ROCM_HOME)/llvm/bin/clang
99
101
# llama-ggml has no hipblas support, so override it here.
100
102
export STABLE_BUILD_TYPE=
103
+ export WHISPER_HIPBLAS=1
101
104
GPU_TARGETS ?= gfx900,gfx90a,gfx1030,gfx1031,gfx1100
102
105
AMDGPU_TARGETS ?= "$(GPU_TARGETS)"
103
106
CMAKE_ARGS+=-DLLAMA_HIPBLAS=ON -DAMDGPU_TARGETS="$(AMDGPU_TARGETS)" -DGPU_TARGETS="$(GPU_TARGETS)"
@@ -107,10 +110,12 @@ endif
107
110
ifeq ($(BUILD_TYPE ) ,metal)
108
111
CGO_LDFLAGS+=-framework Foundation -framework Metal -framework MetalKit -framework MetalPerformanceShaders
109
112
export LLAMA_METAL=1
113
+ export WHISPER_METAL=1
110
114
endif
111
115
112
116
ifeq ($(BUILD_TYPE ) ,clblas)
113
117
CGO_LDFLAGS+=-lOpenCL -lclblast
118
+ export WHISPER_CLBLAST=1
114
119
endif
115
120
116
121
# glibc-static or glibc-devel-static required
@@ -234,6 +239,7 @@ replace:
234
239
$(GOCMD ) mod edit -replace github.com/go-skynet/go-ggml-transformers.cpp=$(shell pwd) /sources/go-ggml-transformers
235
240
$(GOCMD ) mod edit -replace github.com/donomii/go-rwkv.cpp=$(shell pwd) /sources/go-rwkv
236
241
$(GOCMD ) mod edit -replace github.com/ggerganov/whisper.cpp=$(shell pwd) /sources/whisper.cpp
242
+ $(GOCMD ) mod edit -replace github.com/ggerganov/whisper.cpp/bindings/go=$(shell pwd) /sources/whisper.cpp/bindings/go
237
243
$(GOCMD ) mod edit -replace github.com/go-skynet/go-bert.cpp=$(shell pwd) /sources/go-bert
238
244
$(GOCMD ) mod edit -replace github.com/mudler/go-stable-diffusion=$(shell pwd) /sources/go-stable-diffusion
239
245
$(GOCMD ) mod edit -replace github.com/mudler/go-piper=$(shell pwd) /sources/go-piper
0 commit comments