Skip to content

Commit dd7fa6b

Browse files
authored
chore(deps): bump llama.cpp to 'e83ba3e460651b20a594e9f2f0f0bffb998d3ce1 (#5527)
chore(deps): bump llama.cpp to 'e83ba3e460651b20a594e9f2f0f0bffb998d3ce1' Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 039c318 commit dd7fa6b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ BINARY_NAME=local-ai
66
DETECT_LIBS?=true
77

88
# llama.cpp versions
9-
CPPLLAMA_VERSION?=d98f2a35fcf4a8d3e660ad48cd19e2a1f3d5b2ef
9+
CPPLLAMA_VERSION?=e83ba3e460651b20a594e9f2f0f0bffb998d3ce1
1010

1111
# whisper.cpp version
1212
WHISPER_REPO?=https://github.com/ggml-org/whisper.cpp

backend/cpp/llama/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ add_executable(${TARGET} grpc-server.cpp utils.hpp json.hpp httplib.h)
7979
target_include_directories(${TARGET} PRIVATE ../llava)
8080
target_include_directories(${TARGET} PRIVATE ${CMAKE_SOURCE_DIR})
8181

82-
target_link_libraries(${TARGET} PRIVATE common llama mtmd ${CMAKE_THREAD_LIBS_INIT} absl::flags hw_grpc_proto
82+
target_link_libraries(${TARGET} PRIVATE common llama mtmd mtmd_helper ${CMAKE_THREAD_LIBS_INIT} absl::flags hw_grpc_proto
8383
absl::flags_parse
8484
gRPC::${_REFLECTION}
8585
gRPC::${_GRPC_GRPCPP}

backend/cpp/llama/grpc-server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class BackendServiceImpl final : public backend::Backend::Service {
433433
throw std::runtime_error("This server does not support multimodal");
434434
}
435435
for (auto & file : files) {
436-
mtmd::bitmap bmp(mtmd_helper_bitmap_init_from_buf(file.data(), file.size()));
436+
mtmd::bitmap bmp(mtmd_helper_bitmap_init_from_buf(ctx_server.mctx, file.data(), file.size()));
437437
if (!bmp.ptr) {
438438
throw std::runtime_error("Failed to load image/audio");
439439
}
@@ -625,7 +625,7 @@ class BackendServiceImpl final : public backend::Backend::Service {
625625
throw std::runtime_error("This server does not support multimodal");
626626
}
627627
for (auto & file : files) {
628-
mtmd::bitmap bmp(mtmd_helper_bitmap_init_from_buf(file.data(), file.size()));
628+
mtmd::bitmap bmp(mtmd_helper_bitmap_init_from_buf(ctx_server.mctx, file.data(), file.size()));
629629
if (!bmp.ptr) {
630630
throw std::runtime_error("Failed to load image/audio");
631631
}

0 commit comments

Comments
 (0)