From 9569171712fdf84273801afff0f1e293713636fe Mon Sep 17 00:00:00 2001 From: anzz1 Date: Sun, 2 Apr 2023 15:39:46 +0300 Subject: [PATCH] Revert "Always initialize mm_addr and mm_length in llama_model" This reverts commit ac184d514723902f9b05b688703b1be6e8dc65de. --- llama.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llama.cpp b/llama.cpp index 4a1063831..4bb62a0a1 100644 --- a/llama.cpp +++ b/llama.cpp @@ -150,8 +150,8 @@ struct llama_model { std::vector buf; // model memory mapped file - void * mm_addr = NULL; - size_t mm_length = 0; + void * mm_addr; + size_t mm_length; // tensors int n_loaded;