Skip to content

Commit 2ab4f00

Browse files
committed
llama2c : open file as binary (#6332)
1 parent 1740d6d commit 2ab4f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ int main(int argc, char ** argv) {
880880
TransformerWeights weights = {};
881881
{
882882
LOG("%s: Loading llama2c model from %s\n", __func__, params.fn_llama2c_model);
883-
FILE *file = fopen(params.fn_llama2c_model, "r");
883+
FILE * file = fopen(params.fn_llama2c_model, "rb");
884884
if (!file) {
885885
LOG("%s: Unable to open the checkpoint file %s!\n", __func__, params.fn_llama2c_model);
886886
return 1;

0 commit comments

Comments
 (0)