Pro

ML Engineer in 6 weeks

The model side: tokens, attention, the parts of a modern transformer, and how inference is made fast and small. Ends with a timed ML Engineer mock.

0 of 25 steps done on this device

Next: What is a token, and why it decides your bill

Week 1 Tokens and probabilities 0/5

  1. LessonWhat is a token, and why it decides your bill
  2. ProblemDo one merge step of a BPE tokenizerMedium
  3. LessonWhy temperature 0 still is not deterministic
  4. ProblemTurn logits into probabilities without overflowingEasy
  5. ProblemKeep only the k most likely tokens before samplingEasy

Week 2 Attention 0/4

  1. LessonHow does attention work, without the maths overload
  2. LessonHow do LLMs work, start to finish in 10 minutes
  3. ProblemWrite scaled dot-product attention with a causal maskMedium
  4. ProblemRotate a vector by its position (RoPE)Hard

Week 3 Inside the block 0/4

  1. ProblemNormalize activations with RMSNormEasy
  2. ProblemShare keys and values across heads with grouped-query attentionMedium
  3. ProblemLimit attention to a sliding window of recent tokensEasy
  4. ProblemRoute each token to its top 2 experts in a mixture of expertsMedium

Week 4 KV cache 0/5

  1. LessonWhat is a KV cache, and why it decides what you can serve
  2. ProblemGenerate one token at a time with a KV cacheMedium
  3. ProblemWork out how many tokens fit in GPU memory for the KV cacheEasy
  4. LessonThe KV Cache Problem Is an OS Problem. Paging Is the Fix
  5. ProblemAllocate KV cache memory in pages, like vLLMMedium

Week 5 Faster and smaller 0/4

  1. LessonSpeculative decoding, in plain English, and how it works in production
  2. ProblemVerify a draft model's guesses in speculative decodingMedium
  3. LessonHow much VRAM do I need for an LLM
  4. ProblemQuantize weights to int8 and measure the errorMedium

Week 6 Interview week 0/3

  1. LessonWhat is a context window, in plain English
  2. ProblemTrim a chat history to fit the context windowEasy
  3. MockTimed mock: ML Engineer

Progress is saved in this browser. Solved problems, lessons you marked done and mocks you took tick themselves; tick anything else by hand.

Other plans: AI Engineer in 4 weeks, LLM internals in 3 weeks.