Skip to content

Commit 0bec949

Browse files
committed
Refactor out llama.cpp and llama.hpp
1 parent a169bb8 commit 0bec949

File tree

5 files changed

+757
-718
lines changed

5 files changed

+757
-718
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*.dSym
12
*.o
23
*.a
34
.cache/

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,14 @@ ggml.o: ggml.c ggml.h
184184
utils.o: utils.cpp utils.h
185185
$(CXX) $(CXXFLAGS) -c utils.cpp -o utils.o
186186

187+
llama.o: llama.cpp llama.h
188+
$(CXX) $(CXXFLAGS) -c llama.cpp -o llama.o
189+
187190
clean:
188191
rm -f *.o main quantize
189192

190-
main: main.cpp ggml.o utils.o
191-
$(CXX) $(CXXFLAGS) main.cpp ggml.o utils.o -o main $(LDFLAGS)
193+
main: main.cpp ggml.o utils.o llama.o
194+
$(CXX) $(CXXFLAGS) main.cpp ggml.o llama.o utils.o -o main $(LDFLAGS)
192195
./main -h
193196

194197
quantize: quantize.cpp ggml.o utils.o

0 commit comments

Comments
 (0)