4 weeksIntermediate1 h a dayWeek 1 free

ML and LLM engineer in 4 weeks

Classic ML, then deep learning, then transformers and LLMs, then the production side: serving, quantization and distributed training. About an hour a day, with mocks in weeks 2 and 4.

Start hereFit linear regression in one line with the normal equation0 of 46 steps done on this device · Week 1 · Problem
Start
Week 1You are here

Classic ML that still gets asked

0 of 11 done · 11 problems
  1. ProblemFit linear regression in one line with the normal equationEasy
  2. ProblemFit a polynomial curve by expanding x into powersEasy
  3. ProblemCompute the elastic net penalty and its gradientEasy
  4. ProblemClassify points by majority vote of their nearest neighboursEasy
  5. ProblemRun one epoch of the perceptron learning ruleEasy
  6. ProblemClassify by the nearest class centroidEasy
  7. ProblemCompute precision, recall and F1 from predictionsEasy
  8. ProblemMeasure how overconfident a classifier is with expected calibration errorEasy
  9. ProblemBuild a confusion matrixEasy
  10. ProblemRun one iteration of k-meansEasy
  11. ProblemPick spread-out starting centroids with farthest-first seedingEasy
Week 2

Deep learning from the inside

0 of 12 done · 11 problems
  1. ProblemImplement inverted dropoutMedium
  2. ProblemForward pass of a pre-norm residual MLP blockMedium
  3. ProblemBackpropagate through an embedding lookupMedium
  4. ProblemImplement one step of the Adam optimizerMedium
  5. ProblemRun the sign-based Lion optimizer with decoupled weight decayMedium
  6. ProblemBatchNorm with running statistics for inferenceMedium
  7. ProblemImplement GroupNorm with contiguous channel groupsMedium
  8. ProblemBuild a tiny reverse-mode autograd engineMedium
  9. ProblemReduce a broadcast gradient back to the input's shapeMedium
  10. ProblemDown-weight easy examples with focal lossMedium
  11. ProblemToken-level distillation KL that ignores paddingMedium
  12. MockTimed mock: ML Engineer
Week 3

Transformers and LLMs

0 of 11 done · 11 problems
  1. ProblemDo one merge step of a BPE tokenizerMedium
  2. ProblemCompute Levenshtein edit distanceMedium
  3. ProblemTokenize words with WordPiece greedy longest matchMedium
  4. ProblemWrite scaled dot-product attention with a causal maskMedium
  5. ProblemSplit and merge attention headsMedium
  6. ProblemBuild the ALiBi attention bias for every headMedium
  7. ProblemKeep the nucleus: top-p filteringMedium
  8. ProblemApply repetition, frequency and presence penalties to logitsMedium
  9. ProblemLoRA forward pass and weight mergeMedium
  10. ProblemAttention with trainable prefix keys and values (prefix tuning)Medium
  11. ProblemCompute the DPO loss from log-probabilitiesMedium
Week 4

Serving and scale

0 of 12 done · 11 problems
  1. ProblemGenerate one token at a time with a KV cacheMedium
  2. ProblemAllocate KV cache memory in pages, like vLLMMedium
  3. ProblemVerify a draft model's guesses in speculative decodingMedium
  4. ProblemQuantize weights to int8 and measure the errorMedium
  5. ProblemGroup-wise int4 quantization like GPTQ and AWQ checkpointsMedium
  6. ProblemCatch train-serving skew in feature pipelinesMedium
  7. ProblemDrive a staged canary rollout from per-window error ratesMedium
  8. ProblemSimulate ring all-reduce step by stepMedium
  9. ProblemEstimate per-GPU memory under ZeRO stages 0 to 3Medium
  10. ProblemWrite the loop that runs a tool-calling agentMedium
  11. ProblemRetry a flaky tool with exponential backoffMedium
  12. MockTimed mock: AI 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, ML Engineer in 6 weeks, LLM internals in 3 weeks, Interview sprint in 2 weeks, ML foundations in 8 weeks.