Skip to content

Commit

Permalink
llama2c : open file as binary (ggerganov#6332)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 27, 2024
1 parent 1740d6d commit 2ab4f00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ int main(int argc, char ** argv) {
TransformerWeights weights = {};
{
LOG("%s: Loading llama2c model from %s\n", __func__, params.fn_llama2c_model);
FILE *file = fopen(params.fn_llama2c_model, "r");
FILE * file = fopen(params.fn_llama2c_model, "rb");
if (!file) {
LOG("%s: Unable to open the checkpoint file %s!\n", __func__, params.fn_llama2c_model);
return 1;
Expand Down

0 comments on commit 2ab4f00

Please sign in to comment.