Skip to content

Commit

Permalink
clip : enable gpu backend (ggerganov#4205)
Browse files Browse the repository at this point in the history
* clip: enable CUDA backend

* add missing kernels

* add enough padding for alignment

* remove ggml_repeat of clip.cpp

* add metal backend

* llava : fixes

- avoid ggml_repeat
- use GGML_USE_ instead of CLIP_USE_ macros
- remove unused vars

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
  • Loading branch information
FSSRepo and ggerganov authored Dec 29, 2023
1 parent 91bb39c commit ce18d72
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 103 deletions.
3 changes: 2 additions & 1 deletion examples/llava/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ endif()

if (NOT MSVC)
target_compile_options(llava PRIVATE -Wno-cast-qual) # stb_image.h
endif()
endif()

if(TARGET BUILD_INFO)
add_dependencies(llava BUILD_INFO)
endif()
Expand Down
Loading

0 comments on commit ce18d72

Please sign in to comment.