Skip to content

Commit

Permalink
added server build; updated llava
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed Nov 5, 2023
1 parent 629f917 commit 20a6fa3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/llava/llava.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ int main(int argc, char ** argv) {
printf("prompt: '%s'\n", params.prompt.c_str());
printf("\n");

printf("OUTPUT START\n");

for (int i = 0; i < max_tgt_len; i++) {
const char * tmp = sample(ctx_llama, params, &n_past);
if (strcmp(tmp, "</s>") == 0) break;
Expand All @@ -145,7 +147,7 @@ int main(int argc, char ** argv) {
fflush(stdout);
}

printf("\n");
printf("OUTPUT END\n");

{
const float t_img_enc_ms = (t_img_enc_end_us - t_img_enc_start_us) / 1000.0;
Expand Down

0 comments on commit 20a6fa3

Please sign in to comment.