File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ option(LLAMA_BUILD "Build llama.cpp shared library and install alongside python
6
6
7
7
if (LLAMA_BUILD )
8
8
set (BUILD_SHARED_LIBS "On" )
9
+
10
+ # Building llama
9
11
if (APPLE AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "arm64" )
10
12
# Need to disable these llama.cpp flags on Apple x86_64,
11
13
# otherwise users may encounter invalid instruction errors
@@ -41,8 +43,14 @@ if (LLAMA_BUILD)
41
43
FILES $< TARGET_RUNTIME_DLLS:llama>
42
44
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} /llama_cpp
43
45
)
46
+
47
+ # Building llava
44
48
add_subdirectory (vendor/llama.cpp/examples/llava )
45
49
set_target_properties (llava_shared PROPERTIES OUTPUT_NAME "llava" )
50
+ # Set CUDA_ARCHITECTURES to OFF on windows
51
+ if (WIN32 )
52
+ set_target_properties (llava_shared PROPERTIES CUDA_ARCHITECTURES OFF )
53
+ endif ()
46
54
install (
47
55
TARGETS llava_shared
48
56
LIBRARY DESTINATION ${SKBUILD_PLATLIB_DIR} /llama_cpp
You can’t perform that action at this time.
0 commit comments