tiktoken
tiktoken is a fast BPE tokeniser for use with OpenAI's models.
About this project
⏳ tiktoken tiktoken is a fast BPE tokeniser for use with OpenAI's models. The open source version of tiktoken can be installed from PyPI: The tokeniser API is documented in tiktoken/core.py. Example code using tiktoken can be found in the OpenAI Cookbook. Performance tiktoken is between 3-6x faster than a comparable open source tokeniser: Performance measured on 1GB of text using the GPT-2 tokeniser, using GPT2TokenizerFast from tokenizers==0.13.2, transformers==4.24.0 and tiktoken==0.2.0. Getting help Please post questions in the issue tracker. If you work at OpenAI, make sure to check the internal documentation or feel free to contact @shantanu. What is BPE…
Technologies
Project health
GitHub
Reviews
Built by
Maintain openai/tiktoken? Claiming verifies admin access through your GitHub account and gives you control of this listing.