A model never sees your letters or your words. It sees tokens — entries in a fixed dictionary. This is how that dictionary gets built by merging the most common pairs, and how your text turns into a row of integer IDs.
Before a model can read text, you have to chop it into units. There are three obvious choices — and only one of them scales.
The dictionary isn't written by hand — it's grown by an algorithm called BPE (Byte-Pair Encoding). It has one rule, repeated: find the most common adjacent pair and glue it into a new entry.
newest shrink from six characters to one token as the merges pile up.Once the dictionary exists, reading text is just a lookup: split it into the longest entries that fit, then swap each one for its row number. That number — an integer ID — is all the model ever receives.
o200k), not a toy — the same dictionary a frontier model uses.Now your text is a row of integer IDs — but an integer means nothing to a network. Next, the embedding matrix: how each token ID becomes a vector of numbers that carries the token's meaning.