Here's the big secret of AI that makes things: it never looks up THE answer. It rolls the dice and picks one possibility out of millions. Hit the button and watch a brand-new creature get invented that has never existed before.
This little machine generates a creature from scratch — body, eyes, horns, colors, all invented on the spot. Press ROLL a few times. Notice you never get the same one twice. That "pick one of a zillion" move is generative AI.
Each creature is decided by a random number. With this many dials, there are billions of possible creatures — you'll basically never see a repeat by luck. 🌌
Type a word (like dragon or slimeball) and hit Generate 6. A search engine would give ONE result. A generator gives a fresh batch every time — all valid, all different. That's the whole difference.
Two machines get the same question. Press Ask both a few times, watch what each does, then tap the machine that's generating (inventing a new answer each time). Get it right 3 times to win the badge!
"Generative AI" isn't one thing — it's a family, each good at making a different kind of stuff. You'll meet these across this module:
Generate words one token at a time — stories, code, chat. You met these in Module 3. We use a real one today!
Start from pure noise and clean it up into a picture. The engines behind AI art. You'll build one's mechanics in Part 2.
Two networks in a duel, or a "compress-then-imagine" trick. The classic image generators before diffusion.
The creatures above are our toy generator. This is a real language model (SmolLM2) running 100% on your own machine — no server. Give it the same story starter and hit Generate a few times: it invents a different ending every time. That's real sampling, live.
First load downloads the model from Hugging Face, then it's cached for offline use. On a 4GB laptop give it a minute. ☕
You learned the one idea under ALL generative AI: it doesn't retrieve an answer, it samples a new one from a sea of possibilities. That's why it can invent — and why it never gives the exact same thing twice.