Building a GPTLesson 1 of 11Free preview

Text becomes tokens

Start from bytes and merge the most frequent pair, again and again. Twenty merges shrink a 274-byte corpus to 157 tokens.