@@ -10,10 +10,6 @@ GOLLAMA_REPO?=https://github.com/go-skynet/go-llama.cpp
1010GOLLAMA_VERSION? =2b57a8ae43e4699d3dc5d1496a1ccd42922993be
1111CPPLLAMA_VERSION? =cce5a9007572c6e9fa522296b77571d2e5071357
1212
13- #  go-rwkv version
14- RWKV_REPO? =https://github.com/donomii/go-rwkv.cpp
15- RWKV_VERSION? =661e7ae26d442f5cfebd2a0881b44e8c55949ec6
16- 
1713#  whisper.cpp version
1814WHISPER_REPO? =https://github.com/ggerganov/whisper.cpp
1915WHISPER_CPP_VERSION? =6266a9f9e56a5b925e9892acf650f3eb1245814d
@@ -209,7 +205,6 @@ ALL_GRPC_BACKENDS+=backend-assets/grpc/llama-cpp-fallback
209205ALL_GRPC_BACKENDS+ =backend-assets/grpc/llama-ggml
210206ALL_GRPC_BACKENDS+ =backend-assets/grpc/llama-cpp-grpc
211207ALL_GRPC_BACKENDS+ =backend-assets/util/llama-cpp-rpc-server
212- ALL_GRPC_BACKENDS+ =backend-assets/grpc/rwkv
213208ALL_GRPC_BACKENDS+ =backend-assets/grpc/whisper
214209ALL_GRPC_BACKENDS+ =backend-assets/grpc/local-store
215210ALL_GRPC_BACKENDS+ =backend-assets/grpc/silero-vad
@@ -272,20 +267,6 @@ sources/go-piper:
272267sources/go-piper/libpiper_binding.a : sources/go-piper
273268	$(MAKE )  -C sources/go-piper libpiper_binding.a example/main piper.o
274269
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- 
289270# # stable diffusion
290271sources/go-stable-diffusion :
291272	mkdir -p sources/go-stable-diffusion
@@ -339,10 +320,9 @@ sources/whisper.cpp:
339320sources/whisper.cpp/libwhisper.a : sources/whisper.cpp
340321	cd  sources/whisper.cpp &&  $(MAKE )  libwhisper.a libggml.a
341322
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
343324
344325replace :
345- 	$(GOCMD )  mod edit -replace github.com/donomii/go-rwkv.cpp=$(CURDIR ) /sources/go-rwkv.cpp
346326	$(GOCMD )  mod edit -replace github.com/ggerganov/whisper.cpp=$(CURDIR ) /sources/whisper.cpp
347327	$(GOCMD )  mod edit -replace github.com/ggerganov/whisper.cpp/bindings/go=$(CURDIR ) /sources/whisper.cpp/bindings/go
348328	$(GOCMD )  mod edit -replace github.com/go-skynet/go-bert.cpp=$(CURDIR ) /sources/go-bert.cpp
@@ -352,7 +332,6 @@ replace:
352332	$(GOCMD )  mod edit -replace github.com/go-skynet/go-llama.cpp=$(CURDIR ) /sources/go-llama.cpp
353333
354334dropreplace :
355- 	$(GOCMD )  mod edit -dropreplace github.com/donomii/go-rwkv.cpp
356335	$(GOCMD )  mod edit -dropreplace github.com/ggerganov/whisper.cpp
357336	$(GOCMD )  mod edit -dropreplace github.com/ggerganov/whisper.cpp/bindings/go
358337	$(GOCMD )  mod edit -dropreplace github.com/go-skynet/go-bert.cpp
@@ -368,7 +347,6 @@ prepare-sources: get-sources replace
368347rebuild : # # Rebuilds the project
369348	$(GOCMD )  clean -cache
370349	$(MAKE )  -C sources/go-llama.cpp clean
371- 	$(MAKE )  -C sources/go-rwkv.cpp clean
372350	$(MAKE )  -C sources/whisper.cpp clean
373351	$(MAKE )  -C sources/go-stable-diffusion clean
374352	$(MAKE )  -C sources/go-bert.cpp clean
@@ -477,8 +455,6 @@ test-models/testmodel.ggml:
477455	wget -q https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin -O test-models/whisper-en
478456	wget -q https://huggingface.co/mudler/all-MiniLM-L6-v2/resolve/main/ggml-model-q4_0.bin -O test-models/bert
479457	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
482458	cp tests/models_fixtures/*  test-models
483459
484460prepare-test : grpcs
@@ -855,13 +831,6 @@ ifneq ($(UPX),)
855831	$(UPX) backend-assets/grpc/piper
856832endif 
857833
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- 
865834backend-assets/grpc/stablediffusion : sources/go-stable-diffusion sources/go-stable-diffusion/libstablediffusion.a backend-assets/grpc
866835	CGO_LDFLAGS=" $( CGO_LDFLAGS) "   CPATH=" $( CPATH)  :$( CURDIR)  /sources/go-stable-diffusion/:/usr/include/opencv4"   LIBRARY_PATH=$(CURDIR ) /sources/go-stable-diffusion/ \ 
867836	$(GOCMD )  build -ldflags " $( LD_FLAGS) "   -tags " $( GO_TAGS) "   -o backend-assets/grpc/stablediffusion ./backend/go/image/stablediffusion
0 commit comments