From 8d1afe44c96e33af510de2747e43bd001d9fcbec Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Mon, 20 May 2024 18:28:27 -0700 Subject: [PATCH] Fix crash in llava-cli with ctrl-c --- llama.cpp/llava/llava-cli.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llama.cpp/llava/llava-cli.cpp b/llama.cpp/llava/llava-cli.cpp index 1df2af9a7d..6b5c8657d7 100644 --- a/llama.cpp/llava/llava-cli.cpp +++ b/llama.cpp/llava/llava-cli.cpp @@ -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;