@@ -10,10 +10,6 @@ GOLLAMA_REPO?=https://github.com/go-skynet/go-llama.cpp
10
10
GOLLAMA_VERSION? =2b57a8ae43e4699d3dc5d1496a1ccd42922993be
11
11
CPPLLAMA_VERSION? =47f931c8f9a26c072d71224bc8013cc66ea9e445
12
12
13
- # go-rwkv version
14
- RWKV_REPO? =https://github.com/donomii/go-rwkv.cpp
15
- RWKV_VERSION? =661e7ae26d442f5cfebd2a0881b44e8c55949ec6
16
-
17
13
# whisper.cpp version
18
14
WHISPER_REPO? =https://github.com/ggerganov/whisper.cpp
19
15
WHISPER_CPP_VERSION? =6266a9f9e56a5b925e9892acf650f3eb1245814d
@@ -209,7 +205,6 @@ ALL_GRPC_BACKENDS+=backend-assets/grpc/llama-cpp-fallback
209
205
ALL_GRPC_BACKENDS+ =backend-assets/grpc/llama-ggml
210
206
ALL_GRPC_BACKENDS+ =backend-assets/grpc/llama-cpp-grpc
211
207
ALL_GRPC_BACKENDS+ =backend-assets/util/llama-cpp-rpc-server
212
- ALL_GRPC_BACKENDS+ =backend-assets/grpc/rwkv
213
208
ALL_GRPC_BACKENDS+ =backend-assets/grpc/whisper
214
209
ALL_GRPC_BACKENDS+ =backend-assets/grpc/local-store
215
210
ALL_GRPC_BACKENDS+ =backend-assets/grpc/silero-vad
@@ -272,20 +267,6 @@ sources/go-piper:
272
267
sources/go-piper/libpiper_binding.a : sources/go-piper
273
268
$(MAKE ) -C sources/go-piper libpiper_binding.a example/main piper.o
274
269
275
-
276
- # # RWKV
277
- sources/go-rwkv.cpp :
278
- mkdir -p sources/go-rwkv.cpp
279
- cd sources/go-rwkv.cpp && \
280
- git init && \
281
- git remote add origin $(RWKV_REPO ) && \
282
- git fetch origin && \
283
- git checkout $(RWKV_VERSION ) && \
284
- git submodule update --init --recursive --depth 1 --single-branch
285
-
286
- sources/go-rwkv.cpp/librwkv.a : sources/go-rwkv.cpp
287
- cd sources/go-rwkv.cpp && cd rwkv.cpp && cmake . -DRWKV_BUILD_SHARED_LIBRARY=OFF && cmake --build . && cp librwkv.a ..
288
-
289
270
# # stable diffusion
290
271
sources/go-stable-diffusion :
291
272
mkdir -p sources/go-stable-diffusion
@@ -339,10 +320,9 @@ sources/whisper.cpp:
339
320
sources/whisper.cpp/libwhisper.a : sources/whisper.cpp
340
321
cd sources/whisper.cpp && $(MAKE ) libwhisper.a libggml.a
341
322
342
- get-sources : sources/go-llama.cpp sources/go-piper sources/go-rwkv.cpp sources/ whisper.cpp sources/go-bert.cpp sources/go-stable-diffusion sources/go-tiny-dream backend/cpp/llama/llama.cpp
323
+ get-sources : sources/go-llama.cpp sources/go-piper sources/whisper.cpp sources/go-bert.cpp sources/go-stable-diffusion sources/go-tiny-dream backend/cpp/llama/llama.cpp
343
324
344
325
replace :
345
- $(GOCMD ) mod edit -replace github.com/donomii/go-rwkv.cpp=$(CURDIR ) /sources/go-rwkv.cpp
346
326
$(GOCMD ) mod edit -replace github.com/ggerganov/whisper.cpp=$(CURDIR ) /sources/whisper.cpp
347
327
$(GOCMD ) mod edit -replace github.com/ggerganov/whisper.cpp/bindings/go=$(CURDIR ) /sources/whisper.cpp/bindings/go
348
328
$(GOCMD ) mod edit -replace github.com/go-skynet/go-bert.cpp=$(CURDIR ) /sources/go-bert.cpp
@@ -352,7 +332,6 @@ replace:
352
332
$(GOCMD ) mod edit -replace github.com/go-skynet/go-llama.cpp=$(CURDIR ) /sources/go-llama.cpp
353
333
354
334
dropreplace :
355
- $(GOCMD ) mod edit -dropreplace github.com/donomii/go-rwkv.cpp
356
335
$(GOCMD ) mod edit -dropreplace github.com/ggerganov/whisper.cpp
357
336
$(GOCMD ) mod edit -dropreplace github.com/ggerganov/whisper.cpp/bindings/go
358
337
$(GOCMD ) mod edit -dropreplace github.com/go-skynet/go-bert.cpp
@@ -368,7 +347,6 @@ prepare-sources: get-sources replace
368
347
rebuild : # # Rebuilds the project
369
348
$(GOCMD ) clean -cache
370
349
$(MAKE ) -C sources/go-llama.cpp clean
371
- $(MAKE ) -C sources/go-rwkv.cpp clean
372
350
$(MAKE ) -C sources/whisper.cpp clean
373
351
$(MAKE ) -C sources/go-stable-diffusion clean
374
352
$(MAKE ) -C sources/go-bert.cpp clean
@@ -477,8 +455,6 @@ test-models/testmodel.ggml:
477
455
wget -q https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin -O test-models/whisper-en
478
456
wget -q https://huggingface.co/mudler/all-MiniLM-L6-v2/resolve/main/ggml-model-q4_0.bin -O test-models/bert
479
457
wget -q https://cdn.openai.com/whisper/draft-20220913a/micro-machines.wav -O test-dir/audio.wav
480
- wget -q https://huggingface.co/mudler/rwkv-4-raven-1.5B-ggml/resolve/main/RWKV-4-Raven-1B5-v11-Eng99%2525-Other1%2525-20230425-ctx4096_Q4_0.bin -O test-models/rwkv
481
- wget -q https://raw.githubusercontent.com/saharNooby/rwkv.cpp/5eb8f09c146ea8124633ab041d9ea0b1f1db4459/rwkv/20B_tokenizer.json -O test-models/rwkv.tokenizer.json
482
458
cp tests/models_fixtures/* test-models
483
459
484
460
prepare-test : grpcs
@@ -855,13 +831,6 @@ ifneq ($(UPX),)
855
831
$(UPX) backend-assets/grpc/piper
856
832
endif
857
833
858
- backend-assets/grpc/rwkv : sources/go-rwkv.cpp sources/go-rwkv.cpp/librwkv.a backend-assets/grpc
859
- CGO_LDFLAGS=" $( CGO_LDFLAGS) " C_INCLUDE_PATH=$(CURDIR ) /sources/go-rwkv.cpp LIBRARY_PATH=$(CURDIR ) /sources/go-rwkv.cpp \
860
- $(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/rwkv ./backend/go/llm/rwkv
861
- ifneq ($(UPX ) ,)
862
- $(UPX) backend-assets/grpc/rwkv
863
- endif
864
-
865
834
backend-assets/grpc/stablediffusion : sources/go-stable-diffusion sources/go-stable-diffusion/libstablediffusion.a backend-assets/grpc
866
835
CGO_LDFLAGS=" $( CGO_LDFLAGS) " CPATH=" $( CPATH) :$( CURDIR) /sources/go-stable-diffusion/:/usr/include/opencv4" LIBRARY_PATH=$(CURDIR ) /sources/go-stable-diffusion/ \
867
836
$(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/stablediffusion ./backend/go/image/stablediffusion
0 commit comments