Foundations
Transformers
Attention, positions, the transformer block, the KV cache and the cost of long context.
24 of 15 planned
L1 4L2 10L3 7L4 3
RolesLLM Product EngineeringAI Evaluation and ReliabilityAI Data SystemsCustomer AI DeploymentDeveloper Experience and EducationInference Engineering
- Count the attention work for 100 generated tokens
- Explain query, key and value in one minute
- Shuffle the words and attention does not notice
- Why the attention scores are divided before the softmax
- Absolute angles, relative distances
- Attention runs, and the context has the wrong shape
- Encoder, decoder or both for three products
- One reshape is right and one scrambles the heads
- Pick the attention variant for a 70B decoder
- The loss collapses and the samples are nonsense
- What eight heads cost that one head does not
- What the skip path does and where dropout may go
- Where the triangle of minus infinity comes from
- Why the norm moved in front of the sublayer
- A heatmap is not an explanation
- Count the parameters of a decoder stack by hand
- Is a tiled attention kernel an approximation
- Read the running softmax and find the fragile line
- Review a 2017-style block against today's defaults
- Take a model from 8K to 128K
- Take-home, a character-level decoder on a laptop
- A benchmark jumps between two model sizes
- Design the attention stack for 128K context on one card
- Split a fixed compute budget between size and tokens
No item matches this level.
Taught in
The answers on this card come from these lessons.