Tokens, embeddings, attention and sampling, built up in code until hallucination and context limits stop being mysterious.
4 units, about 4 hours. Free.
Explain tokenisation and predict why character level tasks and context limits behave oddly.
2Explain what an embedding vector is and compute similarity between meanings in code.
3Compute an attention weighting in code and explain why context changes a token meaning.
4Control generation with temperature and top-k, and explain hallucination mechanically.