Why it matters
BPE is standard LLM tokenizer. tiktoken + SentencePiece implementations.
Advertisement
The architecture
Count byte pairs.
Merge most frequent.
Iterate to vocab size.
Advertisement
How it works end to end
Sennrich 2016.
tiktoken OpenAI.
SentencePiece Google.