소스 검색

llama2c : open file as binary (#6332)

Georgi Gerganov 1 년 전
부모
커밋
2ab4f00d25
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp

+ 1 - 1
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;