By Team Edtoolkits · AI learning
See the triangle mask that hides later words from each token. Switch it off to let the model peek at the answer, and see why that looks perfect in practice and fails in real use.
Use the guide alongside the working tool.
Open Causal Masking: No Peeking Ahead →Explore the lesson
Watch the triangle fill row by row.
Pick a token and see exactly what it can see.
Turn the mask off and see the model cheat.
Teaching model and privacy
The attention scores come from a hand-made toy and the predictor is a small word-pair counter built from six sentences, so this is a simplified teaching version. Nothing leaves your browser.
Ready to apply this workflow?
Try Causal Masking: No Peeking Ahead →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.