Skip to content

Commit

Permalink
Add embedding example to Makefile (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjadr authored Mar 28, 2023
1 parent 7e53955 commit 4b8efff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ $(info I CC: $(CCV))
$(info I CXX: $(CXXV))
$(info )

default: main quantize perplexity
default: main quantize perplexity embedding

#
# Build library
Expand All @@ -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)
Expand All @@ -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
#
Expand Down

1 comment on commit 4b8efff

@mqy
Copy link
Contributor

@mqy mqy commented on 4b8efff Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The embedding binary should be added to .gitignore.

Please sign in to comment.