From 51462f1f2343f1640082528a2f5e66357b39ccc4 Mon Sep 17 00:00:00 2001 From: John <78893154+cmp-nct@users.noreply.github.com> Date: Tue, 23 Jan 2024 15:26:26 +0100 Subject: [PATCH] Update examples/llava/clip.cpp Co-authored-by: Georgi Gerganov --- examples/llava/clip.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 3f8baade0..47079e06a 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -848,10 +848,9 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) { else { if (gguf_find_tensor(ctx, format(TN_LLAVA_PROJ, 3, "weight").c_str()) != -1) { new_clip->proj_type = PROJECTOR_TYPE_MLP_NORM; + } else { + new_clip->proj_type = PROJECTOR_TYPE_MLP; } - else - new_clip->proj_type = PROJECTOR_TYPE_MLP; - } }