File tree Expand file tree Collapse file tree 3 files changed +463
-72
lines changed Expand file tree Collapse file tree 3 files changed +463
-72
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ STABLEDIFFUSION_VERSION?=902db5f066fd137697e3b69d0fa10d4782bd2c2f
3636export BUILD_TYPE? =
3737export STABLE_BUILD_TYPE? =$(BUILD_TYPE )
3838export CMAKE_ARGS? =
39+
3940CGO_LDFLAGS? =
4041CUDA_LIBPATH? =/usr/local/cuda/lib64/
4142GO_TAGS? =
@@ -229,7 +230,7 @@ sources/go-piper/libpiper_binding.a: sources/go-piper
229230 $(MAKE ) -C sources/go-piper libpiper_binding.a example/main
230231
231232backend/cpp/llama/llama.cpp :
232- $(MAKE ) -C backend/cpp/llama llama.cpp
233+ LLAMA_VERSION= $( CPPLLAMA_VERSION ) $(MAKE ) -C backend/cpp/llama llama.cpp
233234
234235get-sources : backend/cpp/llama/llama.cpp sources/go-llama sources/go-llama-ggml sources/go-ggml-transformers sources/gpt4all sources/go-piper sources/go-rwkv sources/whisper.cpp sources/go-bert sources/go-stable-diffusion
235236 touch $@
Original file line number Diff line number Diff line change 11
2- LLAMA_VERSION? =d9b33fe95bd257b36c84ee5769cc048230067d6f
2+ LLAMA_VERSION? =
33
44CMAKE_ARGS? =
55BUILD_TYPE? =
2121
2222llama.cpp :
2323 git clone --recurse-submodules https://github.com/ggerganov/llama.cpp llama.cpp
24+ if [ -z " $( LLAMA_VERSION) " ]; then \
25+ exit 1; \
26+ fi
2427 cd llama.cpp && git checkout -b build $(LLAMA_VERSION ) && git submodule update --init --recursive --depth 1
2528
2629llama.cpp/examples/grpc-server :
You can’t perform that action at this time.
0 commit comments