From 4d637983ad752d64b87f8321552eed88cc310a4e Mon Sep 17 00:00:00 2001 From: Henri Vasserman Date: Mon, 24 Jul 2023 11:08:29 +0300 Subject: [PATCH] Fix tokenizer reading on Windows --- run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.c b/run.c index fded591..3381ac3 100644 --- a/run.c +++ b/run.c @@ -417,7 +417,7 @@ int main(int argc, char *argv[]) { // read in the tokenizer.bin file char** vocab = (char**)malloc(config.vocab_size * sizeof(char*)); { - FILE *file = fopen("tokenizer.bin", "r"); + FILE *file = fopen("tokenizer.bin", "rb"); if (!file) { printf("Unable to open the tokenizer file tokenizer.bin! Run " "python tokenizer.py to convert tokenizer.model -> tokenizer.bin\n");