brainstate

karpathy/minbpe

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

Python★ 11.0kMITGitHub ↗

History and source changes · Reports and owner responses · Compare