Always initialize mm_addr and mm_length in llama_model

This commit is contained in:
Slaren 2023-03-29 08:53:14 +02:00
parent baa529e9c0
commit 3f5f4286dd

View file

@ -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;