fix KEY_HAS_MINICPMV_PROJ

This commit is contained in:
caitianchi 2024-07-23 14:55:55 +08:00
parent dad4abe1bc
commit 3642be9937

View file

@ -1138,7 +1138,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1, s
new_clip->has_llava_projector = gguf_get_val_bool(ctx, idx); new_clip->has_llava_projector = gguf_get_val_bool(ctx, idx);
} }
idx = gguf_find_key(ctx, KEY_HAS_MiniCPMV_PROJ); idx = gguf_find_key(ctx, KEY_HAS_MINICPMV_PROJ);
if (idx != -1) { if (idx != -1) {
new_clip->has_minicpmv_projector = gguf_get_val_bool(ctx, idx); new_clip->has_minicpmv_projector = gguf_get_val_bool(ctx, idx);
} }