Skip to content

Commit

Permalink
make : add libllama.so target for llama-cpp-python (#797)
Browse files Browse the repository at this point in the history
I was able to get llama-cpp-python working but only when I build libllama.so with make.
  • Loading branch information
bhubbb authored Apr 7, 2023
1 parent c1950c3 commit 698f7b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o
embedding: examples/embedding/embedding.cpp ggml.o llama.o common.o
$(CXX) $(CXXFLAGS) examples/embedding/embedding.cpp ggml.o llama.o common.o -o embedding $(LDFLAGS)

libllama.so: llama.o ggml.o
$(CXX) $(CXXFLAGS) -shared -fPIC -o libllama.so llama.o ggml.o $(LDFLAGS)
#
# Tests
#
Expand Down

0 comments on commit 698f7b5

Please sign in to comment.