File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ BINARY_NAME=local-ai
6
6
DETECT_LIBS? =true
7
7
8
8
# llama.cpp versions
9
- CPPLLAMA_VERSION? =d98f2a35fcf4a8d3e660ad48cd19e2a1f3d5b2ef
9
+ CPPLLAMA_VERSION? =e83ba3e460651b20a594e9f2f0f0bffb998d3ce1
10
10
11
11
# whisper.cpp version
12
12
WHISPER_REPO? =https://github.com/ggml-org/whisper.cpp
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ add_executable(${TARGET} grpc-server.cpp utils.hpp json.hpp httplib.h)
79
79
target_include_directories (${TARGET} PRIVATE ../llava )
80
80
target_include_directories (${TARGET} PRIVATE ${CMAKE_SOURCE_DIR} )
81
81
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
83
83
absl::flags_parse
84
84
gRPC::${_REFLECTION}
85
85
gRPC::${_GRPC_GRPCPP}
Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ class BackendServiceImpl final : public backend::Backend::Service {
433
433
throw std::runtime_error (" This server does not support multimodal" );
434
434
}
435
435
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 ()));
437
437
if (!bmp.ptr ) {
438
438
throw std::runtime_error (" Failed to load image/audio" );
439
439
}
@@ -625,7 +625,7 @@ class BackendServiceImpl final : public backend::Backend::Service {
625
625
throw std::runtime_error (" This server does not support multimodal" );
626
626
}
627
627
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 ()));
629
629
if (!bmp.ptr ) {
630
630
throw std::runtime_error (" Failed to load image/audio" );
631
631
}
You can’t perform that action at this time.
0 commit comments