Updated examples/llava/clip.cpp

added space

Co-authored-by: slaren <slarengh@gmail.com>
This commit is contained in:
Tejaakshaykumar 2024-09-24 07:27:35 +05:30 committed by GitHub
parent 9bea433f73
commit 36d9bbce6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1270,7 +1270,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
// load vision model
auto & vision_model = new_clip->vision_model;
auto & hparams = vision_model.hparams;
try{
try {
hparams.hidden_size = get_u32(ctx, format(KEY_N_EMBD, "vision"));
hparams.n_head = get_u32(ctx, format(KEY_N_HEAD, "vision"));
hparams.n_intermediate = get_u32(ctx, format(KEY_N_FF, "vision"));