From cd3cd899ad072761b815f9f22c05cb4c1bae8399 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 3 Jun 2025 12:19:16 +0200 Subject: [PATCH] chore(deps): bump llama.cpp to '363757628848a27a435bbf22ff9476e9aeda5f40' (#5571) Signed-off-by: Ettore Di Giacinto --- Makefile | 2 +- backend/cpp/llama/CMakeLists.txt | 19 +------------------ 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index d9c79202..350dc645 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ BINARY_NAME=local-ai DETECT_LIBS?=true # llama.cpp versions -CPPLLAMA_VERSION?=e562eece7cb476276bfc4cbb18deb7c0369b2233 +CPPLLAMA_VERSION?=363757628848a27a435bbf22ff9476e9aeda5f40 # whisper.cpp version WHISPER_REPO?=https://github.com/ggml-org/whisper.cpp diff --git a/backend/cpp/llama/CMakeLists.txt b/backend/cpp/llama/CMakeLists.txt index b68332f7..c839800b 100644 --- a/backend/cpp/llama/CMakeLists.txt +++ b/backend/cpp/llama/CMakeLists.txt @@ -1,20 +1,3 @@ - -## XXX: In some versions of CMake clip wasn't being built before llama. -## This is an hack for now, but it should be fixed in the future. -# set(TARGET myclip) -# add_library(${TARGET} clip.cpp clip.h clip-impl.h llava.cpp llava.h) -# install(TARGETS ${TARGET} LIBRARY) -# target_include_directories(myclip PUBLIC .) -# target_include_directories(myclip PUBLIC ../..) -# target_include_directories(myclip PUBLIC ../../common) -# target_link_libraries(${TARGET} PRIVATE common ggml llama ${CMAKE_THREAD_LIBS_INIT}) -# target_compile_features(${TARGET} PRIVATE cxx_std_11) -# if (NOT MSVC) -# target_compile_options(${TARGET} PRIVATE -Wno-cast-qual) # stb_image.h -# endif() -# END CLIP hack - - set(TARGET grpc-server) set(CMAKE_CXX_STANDARD 17) cmake_minimum_required(VERSION 3.15) @@ -79,7 +62,7 @@ add_executable(${TARGET} grpc-server.cpp utils.hpp json.hpp httplib.h) target_include_directories(${TARGET} PRIVATE ../llava) target_include_directories(${TARGET} PRIVATE ${CMAKE_SOURCE_DIR}) -target_link_libraries(${TARGET} PRIVATE common llama mtmd mtmd_helper ${CMAKE_THREAD_LIBS_INIT} absl::flags hw_grpc_proto +target_link_libraries(${TARGET} PRIVATE common llama mtmd ${CMAKE_THREAD_LIBS_INIT} absl::flags hw_grpc_proto absl::flags_parse gRPC::${_REFLECTION} gRPC::${_GRPC_GRPCPP}