aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlaren <2141330+slaren@users.noreply.github.com>2023-03-29 08:53:14 +0200
committerJustine Tunney <jtunney@gmail.com>2023-03-30 12:28:25 -0700
commitac184d514723902f9b05b688703b1be6e8dc65de (patch)
treeda3c2788c27697a3212f42927e2f4744c511fc5e
parent276e5b781155e3bbe6834472c58f03dfe62efabe (diff)
Always initialize mm_addr and mm_length in llama_model
-rw-r--r--llama.cpp4
1 files 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<uint8_t> 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;