AI Wiki中文/EN

BPE merging

Change parameters and inspect the actual computation behind bpe merging.

Derivation steps / input data
  1. l + o → lo (5)
  2. lo + w → low (5)
  3. low + </w> → low</w> (3)
  4. low + e → lowe (2)
  5. low</w>
  6. low</w>
  7. low</w>
  8. lowe | r | </w>
  9. lowe | s | t | </w>
10Final token count
4Merges performed
This teaching version starts with characters and end-of-word markers, merging the most frequent adjacent pair. Real byte-level BPE also involves byte encoding, pre-tokenization, and special tokens.
Use this experiment to test your understanding

Predict the effect of changing a parameter before inspecting the output. Identify the responsible term in the formula and explain how the teaching model differs from a real application.

Explore the related topic:Byte-pair encoding →
No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.