Skip to content

Commit

Permalink
Fix tokenizer reading on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SlyEcho authored Jul 24, 2023
1 parent d548245 commit 4d63798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4d63798

Please sign in to comment.