karpathy/minbpe
Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
License & maintenance
MIT is a permissive license: free to use commercially with attribution.
Last code push 2 years ago.