Skip to content
AgenticAIWiki
  1. Glossary
  2. 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

  1. 2.1From text to tokensChapter 2, What an LLM is · main lesson

Also in these lessons

Autoregressive generationContext windowLarge language model (LLM)Next-token predictionParametersTokenToken counting