Index Ai Academy
Glossary · Phase 5 · Transformers

BPE

Also written: byte-pair encoding

Byte-pair encoding: a way to build a token vocabulary by repeatedly merging the most common pairs of characters.

Try it now

Common words end up as one token and rare ones as several, which explains a lot of odd LLM behavior.

Learn it properly

Tokenization and BPE · How tokenizers are built from data. About 35 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write