feat: use gpu backend for clip if available (#1175)

This commit is contained in:
Douglas Hanley 2024-02-11 12:53:59 -06:00 committed by GitHub
parent 63b0c37836
commit 19b55ad3e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,14 @@ if (LLAMA_BUILD)
)
if (LLAVA_BUILD)
if (LLAMA_CUBLAS)
add_compile_definitions(GGML_USE_CUBLAS)
endif()
if (LLAMA_METAL)
add_compile_definitions(GGML_USE_METAL)
endif()
# Building llava
add_subdirectory(vendor/llama.cpp/examples/llava)
set_target_properties(llava_shared PROPERTIES OUTPUT_NAME "llava")