Why it matters
tiktoken powers GPT models. Fast Rust core; open source; use for token counting.
Advertisement
The architecture
Rust core.
BPE algorithm.
Encoding by model family.
Advertisement
How it works end to end
openai/tiktoken.
MIT licensed.
cl100k, o200k encodings.