Tokens are not stored as text inside the model. Each token is looked up in a fixed vocabulary and replaced by a numeric token ID, so the input sequence becomes a sequence of integers. The vocabulary is finite, which means every possible token already has an assigned number.
How ChatGPT Writes One Token at a Time
From Your Words to Tokens
Every Token Becomes a Number
2 / 4
Those token pieces still look like text to us, and text is not something the model can compute with directly. So each token is looked up in a fixed list called the vocabulary.
0:00 / 0:00