Skip to content

Commit

Permalink
Always initialize mm_addr and mm_length in llama_model
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren committed Mar 29, 2023
1 parent baa529e commit 3f5f428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f5f428

Please sign in to comment.