]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama2c : open file as binary (#6332)
authorGeorgi Gerganov <redacted>
Wed, 27 Mar 2024 07:16:02 +0000 (09:16 +0200)
committerGeorgi Gerganov <redacted>
Wed, 27 Mar 2024 07:16:02 +0000 (09:16 +0200)
examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp

index 6b5c6653011b1a1d09c4bbc0af709383bbad66a3..746c3fbef84128ab8f5e509390cfbbad8731ada2 100644 (file)
@@ -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;