Skip to content

Commit 228c4ea

Browse files
authored
Merge pull request ggml-org#28 from SlyEcho/master
Fix tokenizer reading on Windows
2 parents 624cdfc + 4d63798 commit 228c4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ int main(int argc, char *argv[]) {
425425
// read in the tokenizer.bin file
426426
char** vocab = (char**)malloc(config.vocab_size * sizeof(char*));
427427
{
428-
FILE *file = fopen("tokenizer.bin", "r");
428+
FILE *file = fopen("tokenizer.bin", "rb");
429429
if (!file) {
430430
printf("Unable to open the tokenizer file tokenizer.bin! Run "
431431
"python tokenizer.py to convert tokenizer.model -> tokenizer.bin\n");

0 commit comments

Comments
 (0)