File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -105,16 +105,16 @@ RUN make prepare
105
105
COPY . .
106
106
COPY .git .
107
107
108
- # piper does not tolerate a newer version of abseil, build only the piper backend
109
- RUN GRPC_BACKENDS=backend-assets/grpc/piper ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build
108
+ # stablediffusion does not tolerate a newer version of abseil, build it first
109
+ RUN GRPC_BACKENDS=backend-assets/grpc/stablediffusion make build
110
110
111
111
RUN git clone --recurse-submodules -b v1.58.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc && \
112
112
cd grpc && mkdir -p cmake/build && cd cmake/build && cmake -DgRPC_INSTALL=ON \
113
113
-DgRPC_BUILD_TESTS=OFF \
114
114
../.. && make -j12 install && rm -rf grpc
115
115
116
116
# Rebuild with defaults backends
117
- RUN make build
117
+ RUN ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build
118
118
119
119
# ##################################
120
120
# ##################################
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ go-llama/libbinding.a: go-llama
225
225
go-llama-stable/libbinding.a : go-llama-stable
226
226
$(MAKE ) -C go-llama-stable BUILD_TYPE=$(STABLE_BUILD_TYPE ) libbinding.a
227
227
228
- go-piper/libpiper_binding.a :
228
+ go-piper/libpiper_binding.a : go-piper
229
229
$(MAKE ) -C go-piper libpiper_binding.a example/main
230
230
231
231
get-sources : go-llama go-llama-stable go-ggllm go-ggml-transformers gpt4all go-piper go-rwkv whisper.cpp go-bert bloomz go-stable-diffusion
@@ -464,9 +464,12 @@ backend-assets/grpc/bert-embeddings: backend-assets/grpc go-bert/libgobert.a
464
464
backend-assets/grpc/langchain-huggingface : backend-assets/grpc
465
465
$(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/langchain-huggingface ./cmd/grpc/langchain-huggingface/
466
466
467
- backend-assets/grpc/stablediffusion : backend-assets/grpc go-stable-diffusion/libstablediffusion.a
468
- CGO_LDFLAGS=" $( CGO_LDFLAGS) " C_INCLUDE_PATH=$(shell pwd) /go-stable-diffusion/ LIBRARY_PATH=$(shell pwd) /go-stable-diffusion/ \
469
- $(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/stablediffusion ./cmd/grpc/stablediffusion/
467
+ backend-assets/grpc/stablediffusion : backend-assets/grpc
468
+ if [ ! -f backend-assets/grpc/stablediffusion ]; then \
469
+ $(MAKE ) go-stable-diffusion/libstablediffusion.a
470
+ CGO_LDFLAGS=" $( CGO_LDFLAGS) " C_INCLUDE_PATH=$(shell pwd) /go-stable-diffusion/ LIBRARY_PATH=$(shell pwd) /go-stable-diffusion/ \
471
+ $(GOCMD ) build -ldflags " $( LD_FLAGS) " -tags " $( GO_TAGS) " -o backend-assets/grpc/stablediffusion ./cmd/grpc/stablediffusion/
472
+ fi
470
473
471
474
backend-assets/grpc/piper : backend-assets/grpc backend-assets/espeak-ng-data go-piper/libpiper_binding.a
472
475
CGO_LDFLAGS=" $( CGO_LDFLAGS) " LIBRARY_PATH=$(shell pwd) /go-piper \
You can’t perform that action at this time.
0 commit comments