tiktoken
OpenAI's fast BPE tokenizer in Rust
Episodes
-
#6503: How BPE Builds a Vocabulary, Merge by MergeInference-optimal vocabulary size shifts sixteen-fold depending on serving batch size, from 32,000 at batch one to 524,000 at batch sixty-four. -
#2060: The Tokenizer's Hidden Tax on Non-English TextWhy does a simple greeting in Mandarin cost more to process than in English? It's the tokenizer's hidden inefficiency. -
#1084: Why AI Models Can’t Read and Your Bill Is RisingWhy does the same prompt cost more on different models? Discover the "invisible wall" of tokenization and how it shapes AI perception.