summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-03-27 09:16:02 +0200
committerGeorgi Gerganov <ggerganov@gmail.com>2024-03-27 09:16:02 +0200
commit2ab4f00d25c0682a74472412d66454df211e4b0e (patch)
tree4574839b7493d9484d3d05c994be308cedc3d1bd
parent1740d6dd4e00dedda87d6820b0e0d8e70dade340 (diff)
llama2c : open file as binary (#6332)
-rw-r--r--examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp2
1 files changed, 1 insertions, 1 deletions
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 6b5c6653..746c3fbe 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;