How ChatGPT works
Tokens, next-word prediction, context windows, randomness, and why chatbots sometimes make things up.
What you'll learn
- Explain next-token prediction
- Count tokens with a real tokenizer
- Understand context windows and temperature
- Recognise and guard against hallucinations