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- ProblemFit linear regression in one line with the normal equationEasy
- ProblemFit a polynomial curve by expanding x into powersEasy
- ProblemCompute the elastic net penalty and its gradientEasy
- ProblemClassify points by majority vote of their nearest neighboursEasy
- ProblemRun one epoch of the perceptron learning ruleEasy
- ProblemClassify by the nearest class centroidEasy
- ProblemCompute precision, recall and F1 from predictionsEasy
- ProblemMeasure how overconfident a classifier is with expected calibration errorEasy
- ProblemBuild a confusion matrixEasy
- ProblemRun one iteration of k-meansEasy
- ProblemPick spread-out starting centroids with farthest-first seedingEasy
Week 2
Deep learning from the inside
0 of 12 done · 11 problems- ProblemImplement inverted dropoutMedium
- ProblemForward pass of a pre-norm residual MLP blockMedium
- ProblemBackpropagate through an embedding lookupMedium
- ProblemImplement one step of the Adam optimizerMedium
- ProblemRun the sign-based Lion optimizer with decoupled weight decayMedium
- ProblemBatchNorm with running statistics for inferenceMedium
- ProblemImplement GroupNorm with contiguous channel groupsMedium
- ProblemBuild a tiny reverse-mode autograd engineMedium
- ProblemReduce a broadcast gradient back to the input's shapeMedium
- ProblemDown-weight easy examples with focal lossMedium
- ProblemToken-level distillation KL that ignores paddingMedium
- MockTimed mock: ML Engineer
Week 3
Transformers and LLMs
0 of 11 done · 11 problems- ProblemDo one merge step of a BPE tokenizerMedium
- ProblemCompute Levenshtein edit distanceMedium
- ProblemTokenize words with WordPiece greedy longest matchMedium
- ProblemWrite scaled dot-product attention with a causal maskMedium
- ProblemSplit and merge attention headsMedium
- ProblemBuild the ALiBi attention bias for every headMedium
- ProblemKeep the nucleus: top-p filteringMedium
- ProblemApply repetition, frequency and presence penalties to logitsMedium
- ProblemLoRA forward pass and weight mergeMedium
- ProblemAttention with trainable prefix keys and values (prefix tuning)Medium
- ProblemCompute the DPO loss from log-probabilitiesMedium
Week 4
Serving and scale
0 of 12 done · 11 problems- ProblemGenerate one token at a time with a KV cacheMedium
- ProblemAllocate KV cache memory in pages, like vLLMMedium
- ProblemVerify a draft model's guesses in speculative decodingMedium
- ProblemQuantize weights to int8 and measure the errorMedium
- ProblemGroup-wise int4 quantization like GPTQ and AWQ checkpointsMedium
- ProblemCatch train-serving skew in feature pipelinesMedium
- ProblemDrive a staged canary rollout from per-window error ratesMedium
- ProblemSimulate ring all-reduce step by stepMedium
- ProblemEstimate per-GPU memory under ZeRO stages 0 to 3Medium
- ProblemWrite the loop that runs a tool-calling agentMedium
- ProblemRetry a flaky tool with exponential backoffMedium
- 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.
