Skip to content

Commit

Permalink
Fix crash in llava-cli with ctrl-c
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed May 21, 2024
1 parent 64fbffc commit 8d1afe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llama.cpp/llava/llava-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ static struct llava_context * llava_init_context(gpt_params * params, llama_mode
}

auto ctx_llava = (struct llava_context *)malloc(sizeof(llava_context));
g_ctx = ctx_llava; // [jart] nosync

ctx_llava->ctx_llama = ctx_llama;
ctx_llava->ctx_clip = ctx_clip;
Expand Down

0 comments on commit 8d1afe4

Please sign in to comment.