Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
karpathy/minbpe is #3,562 on the bestofgithub Elo ladder, in Gold II, with a rating of 1,601 (+25 this week). It has 11,052 stars, 32 gained in the last week.