Skip to content

Commit

Permalink
Merge pull request #453 from digger-yu/patch1
Browse files Browse the repository at this point in the history
fix some typo
  • Loading branch information
karpathy authored Feb 13, 2024
2 parents 541ca8d + 2fbf705 commit 6f65538
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion run.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ int main(int argc, char *argv[]) {
// build the Transformer via the model .bin file
Transformer transformer;
build_transformer(&transformer, checkpoint_path);
if (steps == 0 || steps > transformer.config.seq_len) steps = transformer.config.seq_len; // ovrerride to ~max length
if (steps == 0 || steps > transformer.config.seq_len) steps = transformer.config.seq_len; // override to ~max length

// build the Tokenizer via the tokenizer .bin file
Tokenizer tokenizer;
Expand Down
2 changes: 1 addition & 1 deletion runq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ int main(int argc, char *argv[]) {
// build the Transformer via the model .bin file
Transformer transformer;
build_transformer(&transformer, checkpoint_path);
if (steps == 0 || steps > transformer.config.seq_len) steps = transformer.config.seq_len; // ovrerride to ~max length
if (steps == 0 || steps > transformer.config.seq_len) steps = transformer.config.seq_len; // override to ~max length

// build the Tokenizer via the tokenizer .bin file
Tokenizer tokenizer;
Expand Down
2 changes: 1 addition & 1 deletion win.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void* mmap(void *addr, size_t len, int prot, int flags, int fildes, ssize_t off)
if (len == 0
/* Unsupported flag combinations */
|| (flags & MAP_FIXED) != 0
/* Usupported protection combinations */
/* Unsupported protection combinations */
|| prot == PROT_EXEC)
{
errno = EINVAL;
Expand Down

0 comments on commit 6f65538

Please sign in to comment.