Skip to content
Learn Motion
ExploreHow it worksMembership
Log in
Learn Motion

How ChatGPT Writes One Token at a Time

1From Your Words to Tokens2Predicting the Next Token3Choosing a Token and Looping4Why the Answer Reads as Coherent Text
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

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.

Previous2 / 4Next

Learn Motion

Generate a course. Learn it properly.

Operated by Wuhan Daoyin Technology Co., Ltd.

Contact: [email protected]
Privacy PolicyTerms of Service

© 2026 Learn Motion