How Text Generation Works: Predict, Choose, Repeat | Lesson 6
Use a transparent word-counting model to see how a continuation is built one choice at a time. Train it on eight synthetic sentences, inspect actual probabilities, follow weighted samples, and test a context with no observed continuation. The lesson clearly separates this small bigram model from a neural language model. How AI Works, Explained Visually • Programming Line Lesson 6 of 12 • English • Beginner level Chapters 00:00 Predicting and choosing 00:19 The transparent teaching model 00:42 Learn by counting 01:04 Counts become probabilities 01:24 Predict before sampling 01:40 Train and inspect candidates 02:11 First weighted sample 02:31 Append and predict again 03:01 A lower-probability choice 03:29 Seeds and reproducibility 03:51 Compare with the original input 04:13 An unseen context 04:39 The neural-model distinction 05:05 Practice calculation 05:29 Answers and factual limits 05:50 Recap and attention next Learn more about n-gram language models: https://web.stanford.edu/~jurafsky/slp3/3.pdf Production notes: AI-generated narration and concept illustrations accompany a genuine recording of an original native teaching program. The displayed predictions and samples are computed from the shown synthetic data. Chronological edits omit pauses and are labeled. This is a word-level counting model, not a pretrained neural LLM or a view inside ChatGPT. Likely wording is not evidence of factual truth. #LanguageModels #TextGeneration #ArtificialIntelligence #ProgrammingLine…more
Use a transparent word-counting model to see how a continuation is built one choice at a time. Train it on eight synthetic sentences, inspect actual probabilities, follow weighted samples, and test a context with no observed continuation. The lesson clearly separates this small bigram model from a neural language model. How AI Works, Explained Visually • Programming Line Lesson 6 of 12 • English • Beginner level Chapters 00:00 Predicting and choosing 00:19 The transparent teaching model 00:42 Learn by counting 01:04 Counts become probabilities 01:24 Predict before sampling 01:40 Train and inspect candidates 02:11 First weighted sample 02:31 Append and predict again 03:01 A lower-probability choice 03:29 Seeds and reproducibility 03:51 Compare with the original input 04:13 An unseen context 04:39 The neural-model distinction 05:05 Practice calculation 05:29 Answers and factual limits 05:50 Recap and attention next Learn more about n-gram language models: https://web.stanford.edu/~jurafsky/slp3/3.pdf Production notes: AI-generated narration and concept illustrations accompany a genuine recording of an original native teaching program. The displayed predictions and samples are computed from the shown synthetic data. Chronological edits omit pauses and are labeled. This is a word-level counting model, not a pretrained neural LLM or a view inside ChatGPT. Likely wording is not evidence of factual truth. #LanguageModels #TextGeneration #ArtificialIntelligence #ProgrammingLine