This machine read a text and counted which word usually comes after each word. That is all. Write a beginning and watch it "write," choosing one of the most probable words at each step.
The text the machine writes
Possible next words
Click a word to choose it yourself, or let the machine draw one. Words with a longer bar are more likely to come out.
What does this have to do with ChatGPT?
It is the same idea: predicting the next word. The difference is scale. This machine looks 1 to 3 words back and has read — words. A large language model looks hundreds of thousands of words back and has read trillions. That is why it writes so well, and that is also why it makes things up with the same confidence: it does not look up facts, it chooses the most probable continuation.
Temperature 0: always the most probable word. Repetitive, predictable.
High temperature: it risks rare words. More "creative," less sense.
Looking 3 words back: more coherent sentences, but it starts copying the original text. This is the memorization problem.
Use your own text (paste a poem, a chapter, your course syllabus…)
—words read
—different words
—sequences counted
Optional subtitles: CC button on the video. Narrated in the voice of Marcelo Rovai, cloned with OmniVoice.