Skip to content

Commit

Permalink
FIX Overflow in memsize (PABannier#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
PABannier committed Aug 12, 2023
1 parent 7fcd8be commit ce33c94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bark.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct gpt_model {
struct ggml_context * ctx;
std::map<std::string, struct ggml_tensor *> tensors;

int32_t memsize = 0;
int64_t memsize = 0;
};


Expand All @@ -126,7 +126,7 @@ struct bark_model {
// vocab
bark_vocab vocab;

int32_t memsize = 0;
int64_t memsize = 0;
};

bool gpt_model_load(const std::string& fname, gpt_model& model);
Expand Down
2 changes: 1 addition & 1 deletion encodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ struct encodec_model {

std::map<std::string, struct ggml_tensor *> tensors;

int32_t memsize = 0;
int64_t memsize = 0;
};


Expand Down

0 comments on commit ce33c94

Please sign in to comment.