Machine Room

Tokenization

How ChatGPT actually reads your sentence. The one-page notes from the reel.

Download the PDF

One-page notes on tokenization: "I love tokenization." becomes five tokens (I, love, token, ization, full stop) with IDs 40, 3047, 6602, 2860 and 13; a 1,000,000-token context window is about 750,000 English words.

On a phone, press and hold the image to save it. The reel: Tokenization: How ChatGPT Reads a Sentence.