We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 624cdfc + 4d63798 commit 228c4eaCopy full SHA for 228c4ea
run.c
@@ -425,7 +425,7 @@ int main(int argc, char *argv[]) {
425
// read in the tokenizer.bin file
426
char** vocab = (char**)malloc(config.vocab_size * sizeof(char*));
427
{
428
- FILE *file = fopen("tokenizer.bin", "r");
+ FILE *file = fopen("tokenizer.bin", "rb");
429
if (!file) {
430
printf("Unable to open the tokenizer file tokenizer.bin! Run "
431
"python tokenizer.py to convert tokenizer.model -> tokenizer.bin\n");
0 commit comments