Introduction to How Generative AI Models Work
Tokens, embeddings and the transformer architecture, and how training, inference and sampling explain the strengths and limitations of generative models.
- 2 lessons
- Module quiz
Generative AI models create text, images, audio and other content in response to prompts. Language models do this by splitting text into tokens, representing them as embeddings, numerical vectors that capture meaning, and processing them with the transformer architecture, which uses self-attention to relate every token to the others. The model then generates its output one token at a time.
Understanding these building blocks explains how models behave: why they have a limited context window, why they keep no memory between requests, why they can state things that are not true, and why settings such as temperature change their output.
What the exam expects
Questions test the meaning of tokens, embeddings and transformers, the difference between training and inference, the effect of temperature and top_p, and why grounding with retrieved information is the main way to supply knowledge that a model lacks.
How this module is organized
Understanding Tokens, Embeddings and the Transformer Architecture explains how models represent and process language, and Explaining How Training and Inference Shape Model Behavior explains how models learn and why they behave as they do.