Back to Using and testing language models
Step 3 of 6· Investigate: Model limits
Shared AI lesson · Using and testing language models
Investigate: Model limits
Generate four tokens after “the library closes”. Inspect the counts, next-token probabilities and chosen token.
Loading this browser experiment…
More things to try · optional
- Replace the earlier words while keeping “closes” last. Explain why this bigram model does not change its next-token distribution.
- Select the incompatible tokenizer and attempt inference. Then restore the matching tokenizer.
- Enter a long repeated prompt and reduce the output reserve. Inspect the exact input-plus-output budget; no text is silently truncated.
- Compare all three GPT-2 traces. Inspect token pieces, the stopping reason and a next-token distribution.
- Repair the proposed 18:00 JSON answer to 17:00, then change the question to holiday hours. Decide what must change and why.
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: Token and tokenizer