Skip to content

Commit

Permalink
Merge pull request karpathy#1 from cyrilzakka/master
Browse files Browse the repository at this point in the history
Fixes imports in train.py
  • Loading branch information
karpathy authored Feb 17, 2024
2 parents cc7fb34 + 1abcd54 commit 02e9e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"""

# feel free to use either
from bpe_regex import Tokenizer as RegexTokenizer
from bpe_basic import Tokenizer as BasicTokenizer
from bpe_regex import RegexTokenizer
from bpe_basic import BasicTokenizer

# open some text and train a vocab of 512 tokens
text = open("taylorswift.txt", "r", encoding="utf-8").read()
Expand Down

0 comments on commit 02e9e20

Please sign in to comment.