From 8ec0d382d4dcdc85f7c68554d9796be0a144d4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DAN=E2=84=A2?= Date: Fri, 16 Jun 2023 19:16:30 -0400 Subject: [PATCH] Fix uninitialized var causing crash on Windows using MSVC. --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 81f047ed2..eb44dbf3c 100644 --- a/llama.cpp +++ b/llama.cpp @@ -195,7 +195,7 @@ struct llama_model { // key + value cache for the self attention // TODO: move to llama_state - struct llama_kv_cache kv_self; + struct llama_kv_cache kv_self = {}; // the model memory buffer llama_ctx_buffer buf;