From ac184d514723902f9b05b688703b1be6e8dc65de Mon Sep 17 00:00:00 2001 From: Slaren <2141330+slaren@users.noreply.github.com> Date: Wed, 29 Mar 2023 08:53:14 +0200 Subject: [PATCH] Always initialize mm_addr and mm_length in llama_model --- llama.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llama.cpp b/llama.cpp index 0c220e4..aaf5f0a 100644 --- a/llama.cpp +++ b/llama.cpp @@ -150,8 +150,8 @@ struct llama_model { std::vector buf; // model memory mapped file - void * mm_addr; - size_t mm_length; + void * mm_addr = NULL; + size_t mm_length = 0; // tensors int n_loaded;