Skip to content

Commit 4b8efff

Browse files
authored
Add embedding example to Makefile (#540)
1 parent 7e53955 commit 4b8efff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ $(info I CC: $(CCV))
212212
$(info I CXX: $(CXXV))
213213
$(info )
214214

215-
default: main quantize perplexity
215+
default: main quantize perplexity embedding
216216

217217
#
218218
# Build library
@@ -228,7 +228,7 @@ common.o: examples/common.cpp examples/common.h
228228
$(CXX) $(CXXFLAGS) -c examples/common.cpp -o common.o
229229

230230
clean:
231-
rm -vf *.o main quantize perplexity
231+
rm -vf *.o main quantize perplexity embedding
232232

233233
main: examples/main/main.cpp ggml.o llama.o common.o
234234
$(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
242242
perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o
243243
$(CXX) $(CXXFLAGS) examples/perplexity/perplexity.cpp ggml.o llama.o common.o -o perplexity $(LDFLAGS)
244244

245+
embedding: examples/embedding/embedding.cpp ggml.o llama.o common.o
246+
$(CXX) $(CXXFLAGS) examples/embedding/embedding.cpp ggml.o llama.o common.o -o embedding $(LDFLAGS)
247+
245248
#
246249
# Tests
247250
#

0 commit comments

Comments
 (0)