Skip to content

Commit

Permalink
cache gpt2 encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Oct 23, 2024
1 parent 7d27656 commit 61728c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/scripts/cache_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
def download_tiktoken_data():
# This will trigger the download and caching of the necessary files
_ = tiktoken.encoding_for_model("gpt-3.5-turbo")
_ = tiktoken.encoding_for_model("gpt2")


if __name__ == "__main__":
Expand Down

0 comments on commit 61728c6

Please sign in to comment.