tiktoken

by openai · Developer Tools

tiktoken is a fast BPE tokeniser for use with OpenAI's models.

New0 ratings19,192 starsActive
Developer ToolsDeveloper ToolPythonRust
↓ Download 0.14.0GitHub⚑ Report
tiktoken — image 1

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

PythonRust

Project health

Actively maintained
Last update3 weeks ago
Contributors23
Latest release0.14.0
Open issues & PRs129
LicenseMIT
On GitHubsince 2022

GitHub

19,192
stars
1,606
forks
23
contributors
129
open issues & PRs
Python
language
3 weeks ago
last commit
View on GitHub ↗All releases ↗

Reviews

out of 5 · 0 ratings
★★★★★
0%
★★★★
0%
★★★
0%
★★
0%
0%
Sign in to write a review
No reviews yet
Be the first to review tiktoken.

Built by

openai
Imported from GitHub · not yet claimed on GitPalace
View developer pageSign in with GitHub to claim

Maintain openai/tiktoken? Claiming verifies admin access through your GitHub account and gives you control of this listing.

You might also like