Skip to content

Commit

Permalink
Merge pull request karpathy#18 from ahmedivy/master
Browse files Browse the repository at this point in the history
Add requirements.txt
  • Loading branch information
karpathy authored Feb 19, 2024
2 parents f7122fe + fa474de commit 872c086
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion minbpe/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def save(self, file_prefix):
model_file = file_prefix + ".model"
with open(model_file, 'w') as f:
# write the version, pattern and merges, that's all that's needed
f.write(f"minbpe v1\n")
f.write("minbpe v1\n")
f.write(f"{self.pattern}\n")
# write the special tokens, first the number of them, then each one
f.write(f"{len(self.special_tokens)}\n")
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
regex
tiktoken

0 comments on commit 872c086

Please sign in to comment.