Back to Language Models and Adaptation
Step 3 of 6· Investigate: Causal context
Language Models and Adaptation · Lesson 3 of 3 in this module
Investigate: Causal context
Select the last token and inspect both heads. Switch between one and two decoder blocks, then trace the changed vectors.
Loading this browser experiment…
More things to try · optional
- Turn position signals off. Compare “the cat sat” with “cat the sat”: the final position now sees the same preceding token collection in this one-block example.
- Compare greedy decoding with sampling, adjusting temperature and the visible sample draw. Generate one token, then compare cached and uncached prefix processing.
Notes, help and related ideas
My notes and reflection
Compare with your prediction
Compare your result with your prediction. Explain a mismatch, then change one condition and try a new case.
Loading your journal…
Your prediction, observation and next question
Prerequisites and related ideas
Key terms: Transformer Token and tokenizer Residual connection Normalization Logit KV cache