- Glossary
- Byte-pair encoding (BPE)
Glossary term
Byte-pair encoding (BPE)
A tokenization method that starts from characters or bytes and repeatedly merges the most frequent pairs into new tokens.
Also called BPE.
Open lesson 2.1
From text to tokens · Chapter 2
In plain words
BPE gives common words a single token and splits rare words into pieces, so any text can be encoded with a fixed vocabulary.
Taught in
Also in these lessons
Autoregressive generationContext windowLarge language model (LLM)Next-token predictionParametersTokenToken counting