2 weeksIntermediate1 h a dayWeek 1 free
Interview sprint in 2 weeks
Two weeks before an ML or AI engineer interview. Week 1 covers the maths and model questions that come up most, week 2 the LLM and systems rounds. About an hour a day, with a timed mock at the end of each week.
Start hereCompute every pairwise distance without a Python loop0 of 26 steps done on this device · Week 1 · Problem
Start Week 1You are here
The questions that come up most
0 of 13 done · 12 problems- ProblemCompute every pairwise distance without a Python loopEasy
- ProblemOne-hot encode class labels with fancy indexingEasy
- ProblemTrack mean and variance of a stream in one passEasy
- ProblemCompute the KL divergence between two diagonal GaussiansEasy
- ProblemCompute precision, recall and F1 from predictionsEasy
- ProblemMeasure how overconfident a classifier is with expected calibration errorEasy
- ProblemBinary cross-entropy straight from logitsEasy
- ProblemImplement GELU, the activation inside GPT and BERTEasy
- ProblemAdd momentum to gradient descentEasy
- ProblemClip a list of gradients by their combined global normEasy
- ProblemGenerate sinusoidal position encodingsEasy
- ProblemMeasure how focused each attention row is with entropyEasy
- MockTimed mock: ML Engineer
Week 2
LLM and systems rounds
0 of 13 done · 12 problems- ProblemWrite scaled dot-product attention with a causal maskMedium
- ProblemSplit and merge attention headsMedium
- ProblemKeep the nucleus: top-p filteringMedium
- ProblemApply repetition, frequency and presence penalties to logitsMedium
- ProblemSplit a document into overlapping chunksMedium
- ProblemCombine keyword and vector scores with min-max normalizationMedium
- 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
- ProblemWrite the loop that runs a tool-calling agentMedium
- ProblemRetry a flaky tool with exponential backoffMedium
- ProblemQuantize weights to int8 and measure the errorMedium
- 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, ML and LLM engineer in 4 weeks, ML foundations in 8 weeks.
