aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRJ Adriaansen <adriaansen@eshcc.eur.nl>2023-03-28 08:11:09 +0200
committerGitHub <noreply@github.com>2023-03-28 09:11:09 +0300
commit4b8efff0e3945090379aa2f897ff125c8f9cdbae (patch)
tree38957e9294e62250621b85f60b79048887af0cae
parent7e5395575a3360598f2565c73c8a2ec0c0abbdb8 (diff)
Add embedding example to Makefile (#540)
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 98a2d85..973b295 100644
--- a/Makefile
+++ b/Makefile
@@ -212,7 +212,7 @@ $(info I CC: $(CCV))
$(info I CXX: $(CXXV))
$(info )
-default: main quantize perplexity
+default: main quantize perplexity embedding
#
# Build library
@@ -228,7 +228,7 @@ common.o: examples/common.cpp examples/common.h
$(CXX) $(CXXFLAGS) -c examples/common.cpp -o common.o
clean:
- rm -vf *.o main quantize perplexity
+ rm -vf *.o main quantize perplexity embedding
main: examples/main/main.cpp ggml.o llama.o common.o
$(CXX) $(CXXFLAGS) examples/main/main.cpp ggml.o llama.o common.o -o main $(LDFLAGS)
@@ -242,6 +242,9 @@ quantize: examples/quantize/quantize.cpp ggml.o llama.o
perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o
$(CXX) $(CXXFLAGS) examples/perplexity/perplexity.cpp ggml.o llama.o common.o -o perplexity $(LDFLAGS)
+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)
+
#
# Tests
#