]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Always initialize mm_addr and mm_length in llama_model
authorSlaren <redacted>
Wed, 29 Mar 2023 06:53:14 +0000 (08:53 +0200)
committerJustine Tunney <redacted>
Thu, 30 Mar 2023 19:28:25 +0000 (12:28 -0700)
llama.cpp

index 0c220e4aefbd0b2b38577ce3895f667004c2e59c..aaf5f0ad57c93bb5be0dc68afc672c27df155379 100644 (file)
--- 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;