Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d89f30c

Browse files
committed
feat: add batching inferences + multi threading in drogon cpp
1 parent 2212f89 commit d89f30c

File tree

4 files changed

+1601
-867
lines changed

4 files changed

+1601
-867
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ else()
1616
set(CMAKE_CXX_STANDARD 14)
1717
endif()
1818

19+
# llama cpp server need llava example to work, this is for llama cpp server
20+
set(LLAMA_BUILD_EXAMPLES ON)
21+
1922
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2023
set(CMAKE_CXX_EXTENSIONS OFF)
2124
set(OPENSSL_USE_STATIC_LIBS TRUE)
@@ -48,7 +51,7 @@ add_executable(${PROJECT_NAME} main.cc)
4851
#
4952
# and comment out the following lines
5053
find_package(Drogon CONFIG REQUIRED)
51-
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon common llama
54+
target_link_libraries(${PROJECT_NAME} PRIVATE Drogon::Drogon common llama clip
5255
${CMAKE_THREAD_LIBS_INIT})
5356

5457
# ##############################################################################

0 commit comments

Comments
 (0)