From 2ab4f00d25c0682a74472412d66454df211e4b0e Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 27 Mar 2024 09:16:02 +0200 Subject: [PATCH] llama2c : open file as binary (#6332) --- examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp b/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp index 6b5c66530..746c3fbef 100644 --- a/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp +++ b/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp @@ -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;