minbpe

★ 10,679 Open GitHub ↗

Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.

// repository documentation