]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
gguf : simplify example dependencies
authorGeorgi Gerganov <redacted>
Thu, 21 Dec 2023 21:07:58 +0000 (23:07 +0200)
committerGeorgi Gerganov <redacted>
Thu, 21 Dec 2023 21:08:14 +0000 (23:08 +0200)
Makefile
examples/gguf/CMakeLists.txt
examples/gguf/gguf.cpp

index 512407a1de87b9da3afb6d9cb5f381fe1dfbe0f8..68df7702aa9bc131210a0ff8911cafeabe670540 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -606,7 +606,7 @@ save-load-state: examples/save-load-state/save-load-state.cpp ggml.o llama.o $(C
 server: examples/server/server.cpp examples/server/httplib.h examples/server/json.hpp examples/server/index.html.hpp examples/server/index.js.hpp examples/server/completion.js.hpp examples/llava/clip.cpp examples/llava/clip.h common/stb_image.h ggml.o llama.o $(COMMON_DEPS) grammar-parser.o $(OBJS)
        $(CXX) $(CXXFLAGS) -Iexamples/server $(filter-out %.h,$(filter-out %.hpp,$^)) -o $@ $(LDFLAGS) $(LWINSOCK2) -Wno-cast-qual
 
-gguf: examples/gguf/gguf.cpp ggml.o llama.o $(OBJS)
+gguf: examples/gguf/gguf.cpp ggml.o $(OBJS)
        $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 
 train-text-from-scratch: examples/train-text-from-scratch/train-text-from-scratch.cpp ggml.o llama.o $(COMMON_DEPS) train.o $(OBJS)
index 7d1806af3ebfcf3f98054020c73ec70b65cf1633..6481f087bc997f01a4287cc4ec959c4bee46b2b0 100644 (file)
@@ -1,5 +1,5 @@
 set(TARGET gguf)
 add_executable(${TARGET} gguf.cpp)
 install(TARGETS ${TARGET} RUNTIME)
-target_link_libraries(${TARGET} PRIVATE llama ${CMAKE_THREAD_LIBS_INIT})
+target_link_libraries(${TARGET} PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT})
 target_compile_features(${TARGET} PRIVATE cxx_std_11)
index 9e24bf24c75e19884f4f22b59862f08ba2c3d756..e67be4fb2995ec27744d301fe31e36d87d0b3738 100644 (file)
@@ -1,5 +1,4 @@
 #include "ggml.h"
-#include "llama.h"
 
 #include <cstdio>
 #include <cinttypes>