/minbpe

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

Primary LanguagePythonMIT LicenseMIT

Stargazers