Update examples/llava/clip.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
John 2024-01-23 15:26:26 +01:00 committed by GitHub
parent ffcd8e7fbd
commit 51462f1f23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
}