minbpe
by karpathy
Pythonpushed over 2 years ago
Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.
AI summary
BPE algorithm
An implementation of the Byte Pair Encoding algorithm used in language model tokenization.
- stars
- 9.3K
- forks
- 871
- watching
- 85
- awesome list
- 1
Featured in 1 awesome list
Each link jumps to the spot where the list mentions minbpe.