summaryrefslogtreecommitdiff
path: root/examples/llava/llava.h
diff options
context:
space:
mode:
authorCJ Pais <cj@cjpais.com>2024-02-20 11:07:22 -0800
committerGitHub <noreply@github.com>2024-02-20 21:07:22 +0200
commit6560bed3f066c876682464762cad90f1e28e3f1b (patch)
treeae52300cdb042e98928bf7ca70fd3ddfbcafc95e /examples/llava/llava.h
parent06bf2cf8c406e6b70dbf9b431a02fa0ad845b9df (diff)
server : support llava 1.6 (#5553)
* server: init working 1.6 * move clip_image to header * remove commented code * remove c++ style from header * remove todo * expose llava_image_embed_make_with_clip_img * fix zig build
Diffstat (limited to 'examples/llava/llava.h')
-rw-r--r--examples/llava/llava.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/llava/llava.h b/examples/llava/llava.h
index 9e9466a5..2d40f3f1 100644
--- a/examples/llava/llava.h
+++ b/examples/llava/llava.h
@@ -31,6 +31,8 @@ struct llava_image_embed {
/** sanity check for clip <-> llava embed size match */
LLAVA_API bool llava_validate_embed_size(const llama_context * ctx_llama, const clip_ctx * ctx_clip);
+LLAVA_API bool llava_image_embed_make_with_clip_img(clip_ctx * ctx_clip, int n_threads, const clip_image_u8 * img, float ** image_embd_out, int * n_img_pos_out);
+
/** build an image embed from image file bytes */
LLAVA_API struct llava_image_embed * llava_image_embed_make_with_bytes(struct clip_ctx * ctx_clip, int n_threads, const unsigned char * image_bytes, int image_bytes_length);
/** build an image embed from a path to an image filename */