Change the input.
Understand the idea.
Explore working examples for vectors, probability, evaluation, attention, and optimization. Each lesson connects the calculation to an engineering decision.
Five ideas you can see working
Play, pause, step backward, change an input and inspect the result. Each lab states its assumptions and connects the concept to practice.
Follow a parameter down a loss curve and see why step size matters.
Inspect query-key scores, masking and normalized attention weights.
Decode tokens while keeping keys and values aligned in a bounded window.
Embed a query, rank documents and select context using a small vector model.
Compare fixed batches with a scheduler that refills slots as requests finish.
Interactive lessons
13 lessons with a hands-on example. More topics are being developed.
Vectors represent quantities with magnitude and direction; dot products and norms help compare them.
Probability expresses uncertainty about outcomes and provides a foundation for model training and evaluation.
Explore how learning rate changes gradient descent on a simple loss curve.
Evaluation metrics describe different aspects of model behavior and must match the decision being made.
Regression predicts a numerical value from input features.
Classification predicts a discrete label, such as whether a message needs human review.
Model evaluation checks whether a model meets a defined goal on data that represents its intended use.
Attention combines values using weights derived from a query and keys.
Transformers use attention and feed-forward blocks to build representations of sequences.
Tokenization converts text into units a language model can map to token IDs.
Embeddings map objects such as text or images into vectors that can be compared or used by downstream models.
Tool calling lets a model propose structured requests that an application can validate and execute.
Prompt injection occurs when untrusted content tries to influence an AI application beyond its intended role.