]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
clip : refactor clip_init, add tests (#12757)
authorXuan-Son Nguyen <redacted>
Sat, 5 Apr 2025 15:17:40 +0000 (17:17 +0200)
committerGitHub <redacted>
Sat, 5 Apr 2025 15:17:40 +0000 (17:17 +0200)
commit0364178ca2452bd241a4cdd4350d0d7a6ff8c4b4
tree7935b0493d23de2447df0bc82089f273481fed25
parentc6ff5d2a8da2587cc78c9ede9171dfc3f076c757
clip : refactor clip_init, add tests (#12757)

* refactor clip_init

* fix loading file

* fix style

* test ok

* better test with report

* add missing headers

* clarify

* add KEY_MM_PATCH_MERGE_TYPE

* remove bool has_* pattern

* Apply suggestions from code review

Co-authored-by: Georgi Gerganov <redacted>
* Update examples/llava/clip.cpp

Co-authored-by: Georgi Gerganov <redacted>
* use ggml_soft_max_ext

* refactor logging system

* add minicpm-v-o 2.6 for testing

* use nullptr everywhere

* fix Yi-VL model

---------

Co-authored-by: Georgi Gerganov <redacted>
examples/llava/clip-impl.h [new file with mode: 0644]
examples/llava/clip.cpp
examples/llava/clip.h
examples/llava/gemma3-cli.cpp
examples/llava/llava-cli.cpp
examples/llava/minicpmv-cli.cpp
examples/llava/qwen2vl-cli.cpp
examples/llava/test-1.jpeg [new file with mode: 0644]
examples/llava/tests.sh [new file with mode: 0755]