Use 10 for max number of patches

Signed-off-by: Alex-Brooks <Alex.Brooks@ibm.com>
This commit is contained in:
Alex-Brooks 2025-02-05 03:22:40 -07:00
parent d85580c41c
commit 3a191f8edb

View file

@ -405,10 +405,8 @@ bool llava_validate_embed_size(const llama_context * ctx_llama, const clip_ctx *
}
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) {
int num_max_patches = 6;
if (clip_is_minicpmv(ctx_clip)) {
num_max_patches = 10;
}
// Minicpmv / granite vision use 10 patches
int num_max_patches = 10;
if (clip_is_glm(ctx_clip)) {
num_max_patches = 1;
}