bpe-and-ulm-subword-tokenization-algorithms
IN premise — entries/2026/06/21/wiki-Transformer_deep_learning_architecture-chunk-2.md
Created 2026-06-21T09:50:11+00:00
Byte Pair Encoding (BPE) and Unigram Language Model (ULM) are the two major subword tokenization algorithms, implemented in HuggingFace tokenizers (Rust) and sentencepiece (C++).
Summary
In practice, the way modern language models split text into subword units is dominated by just two algorithms, and the ecosystem for using them is concentrated in two libraries (HuggingFace tokenizers and sentencepiece). This makes the tokenization layer of NLP fairly standardized and easy to adopt, but it also means most models inherit whatever design choices and limitations those two implementations bake in.