mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 11:40:17 +00:00
Updated examples/llava/clip.cpp
added space Co-authored-by: slaren <slarengh@gmail.com>
This commit is contained in:
parent
9bea433f73
commit
36d9bbce6b
@ -1270,7 +1270,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
|
|||||||
// load vision model
|
// load vision model
|
||||||
auto & vision_model = new_clip->vision_model;
|
auto & vision_model = new_clip->vision_model;
|
||||||
auto & hparams = vision_model.hparams;
|
auto & hparams = vision_model.hparams;
|
||||||
try{
|
try {
|
||||||
hparams.hidden_size = get_u32(ctx, format(KEY_N_EMBD, "vision"));
|
hparams.hidden_size = get_u32(ctx, format(KEY_N_EMBD, "vision"));
|
||||||
hparams.n_head = get_u32(ctx, format(KEY_N_HEAD, "vision"));
|
hparams.n_head = get_u32(ctx, format(KEY_N_HEAD, "vision"));
|
||||||
hparams.n_intermediate = get_u32(ctx, format(KEY_N_FF, "vision"));
|
hparams.n_intermediate = get_u32(ctx, format(KEY_N_FF, "vision"));
|
||||||
|
Loading…
Reference in New Issue
Block a user