Skip to content

WIP: Infer with LLaVA-RLHF #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
cmake_minimum_required(VERSION 3.12)
project(llava.cpp)
project(lmm.cpp)

# Add "llama.cpp" submodule
add_subdirectory(llama.cpp)
add_subdirectory(llama.cpp llama.cpp/common)

# Add "clip.cpp" library
add_library(clip clip.cpp clip.h)
target_link_libraries(clip PRIVATE ggml)

# Add target executable/library for llava.cpp
add_executable(llava main.cpp)
# Add target executable/library for main
add_executable(main main.cpp)

# Link against clip and llama libs
target_link_libraries(llava clip llama)
target_link_libraries(main clip llama common)

# Include directories for llava
target_include_directories(llava PRIVATE
# Include directories for lmm
target_include_directories(main PRIVATE
.
${CMAKE_CURRENT_SOURCE_DIR}/llama.cpp
${CMAKE_CURRENT_SOURCE_DIR}/llama.cpp/common
)
Loading