llama2c : open file as binary (#6332)

This commit is contained in:
Georgi Gerganov 2024-03-27 09:16:02 +02:00
parent 1740d6dd4e
commit 2ab4f00d25
No known key found for this signature in database
GPG Key ID: BF970631944C16B7

View 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;