Skip to content

Commit 2e57e5e

Browse files
committed
rename eval function
1 parent e9ae0cb commit 2e57e5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gpttype_adapter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,7 @@ static void load_grammar(const std::string & gammarstr)
18511851
}
18521852
}
18531853

1854-
static bool kcpp_eval_image(llama_context * ctx_llama, const media_chunk & mediachunk, int n_batch, int * n_past, bool is2d) {
1854+
static bool kcpp_eval_media(llama_context * ctx_llama, const media_chunk & mediachunk, int n_batch, int * n_past, bool is2d) {
18551855
float * img_embd = mediachunk.clp_img_embd;
18561856
int num_img_tokens = mediachunk.clp_image_tokens;
18571857
int img_nx = mediachunk.nx;
@@ -4805,7 +4805,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
48054805
printf("\rProcessing Media Embedding %d (%d tokens)",(i+1), chunk.clp_image_tokens);
48064806
}
48074807
bool is2d = (media_objects[i].is_audio?false:true);
4808-
bool err = kcpp_eval_image(llama_ctx_v4,chunk,kcpp_data->n_batch,&n_past,is2d);
4808+
bool err = kcpp_eval_media(llama_ctx_v4,chunk,kcpp_data->n_batch,&n_past,is2d);
48094809
llavatokensevaled += chunk.clp_image_tokens;
48104810
if(!err)
48114811
{

0 commit comments

Comments
 (0)