Resources
How to prepare
The harder topics like RLHF and reasoning models sit on top of a lot of fundamentals. Post-training only makes sense once you know what pretraining does, pretraining makes more sense once you know why Transformers replaced RNNs, and so on back to n-grams. So start at the beginning of the reading order and work forward.
Andrej Karpathy has talked about the 10,000-hour rule, the idea that you can get good at almost anything by putting in enough focused hours. We think it applies here too. Most of the understanding comes from repetition, going back over the same ideas and getting questions wrong until they stick.
That's why we built the question bank. You do a few questions a day, and the ones you miss come back.
We have curated a list of completely free resources to help with your prep!
Courses
CS336: Language Modeling from ScratchStanfordThe assignments have you build and train a language model end to end, the closest course to the actual job.
CS224N: NLP with Deep LearningStanfordGrounding from word vectors through pretraining, with problem sets to practise on.
CS229: Machine LearningStanfordThe classic ML maths, like bias and variance, regularisation and SVMs, that interviewers still ask about.
CS231n: Deep Learning for Computer VisionStanfordStill the clearest notes on backprop, optimisers and initialisation.
Current LLM methods, from prompting to RL, with recorded lectures.
CS285: Deep Reinforcement LearningUC BerkeleyThe RL behind RLHF and reasoning models: policy gradients, advantages and PPO.
CS25: Transformers UnitedStanfordTalks from people training frontier models, a good read on what labs care about now.
MIT 6.S191: Intro to Deep LearningMITA short, polished first pass if deep learning is new to you.
LLM CourseHugging FaceHands-on with the transformers, datasets and finetuning libraries you'll use at work.
MIT 6.5940: Efficient MLSong Han, MITLectures on quantization, pruning, the KV cache and speculative decoding.
Deep RL CourseHugging FaceHands-on RL from Q-learning to PPO, if you learn best by coding.
Videos
Neural Networks: Zero to HeroAndrej Karpathy
You write backprop, a tokenizer and a GPT yourself, which makes most fundamentals questions easy.
Neural networks3Blue1BrownThe quickest way to a picture of backprop and attention you can redraw at a whiteboard.
GPU MODE lecturesGPU MODEPractitioners teaching CUDA, Triton and kernel writing.
Books
Understanding Deep LearningSimon J.D. Prince
Modern, clear and full of figures. Read this one first.
Dive into Deep LearningZhang, Lipton, Li, SmolaEvery idea comes with code you can run and change.
Speech and Language ProcessingJurafsky & MartinThe standard NLP textbook, with current chapters on LLMs.
Deep Learning: Foundations and ConceptsBishop & BishopRigorous and up to date, and free to read online.
Probabilistic Machine LearningKevin Murphy
The reference for when a question turns probabilistic.
Mathematics for Machine LearningDeisenroth, Faisal, Ong
Just the linear algebra, calculus and probability ML needs.
The Little Book of Deep LearningFrançois FleuretThe whole field in about 170 small pages, good for a last review.
Deep LearningGoodfellow, Bengio, Courville
Older, but still the reference for the fundamentals.
Inference EngineeringPhilip Kiely (Baseten)Batching, runtimes, latency and cost, the things serving questions ask about. Free PDF for your email.
Reinforcement Learning from Human FeedbackNathan LambertThe most complete free treatment of reward models, PPO, DPO and the rest of post-training.
Blogs and guides
The Illustrated TransformerJay Alammar
Shows every tensor shape in attention, which is what whiteboard questions probe.
How to Scale Your ModelGoogle DeepMindThe roofline and memory maths behind most training and serving design questions.
The Ultra-Scale PlaybookHugging FaceData, tensor, pipeline and context parallelism, each explained with measurements.
vLLM and PagedAttentionvLLM teamWhy KV cache memory management sets serving throughput.
Spinning Up in Deep RLOpenAIShort RL background with clean reference code. Old, but the core holds.
Repos
LLMs from scratch (code)Sebastian RaschkaRunnable notebooks for each piece of an LLM, from tokenizer to finetuning.
nanochatAndrej KarpathyA full ChatGPT-style pipeline small enough to read end to end.
Reading order
Post-training, RLHF and reasoning models build on everything that came before them, and each step in that history fixes a problem with the one before. N-gram models count word sequences but can't share anything between similar words, so neural language models learn word vectors. A feedforward model only sees a fixed window, so recurrent networks carry a state through the whole sequence, and LSTMs keep that state from fading. Squeezing a sentence into one vector loses detail, so attention lets the decoder look back at every word, and the Transformer keeps the attention and drops the recurrence.
Pretraining those Transformers at scale gives GPT, BERT and T5, and only then do post-training and RL make sense, because they adjust what pretraining already put in the model. Read in order, and skip a stage only if you could explain it to someone else.
Counting words
Naive Bayes and Text ClassificationJurafsky & Martin, appendix B, 2026
Documents as bags of words, the simplest representation and the baseline everything else beats.
N-gram Language ModelsJurafsky & Martin, chapter 3, 2026
The Markov assumption, smoothing and perplexity, which is still how language models are scored.
Hidden Markov ModelsJurafsky & Martin, appendix A, 2026
Hidden states behind the words, and the Viterbi and forward algorithms for them.
EmbeddingsJurafsky & Martin, chapter 5, 2026
Term-document and co-occurrence matrices, tf-idf, then word2vec.
Neural language models
Neural NetworksJurafsky & Martin, chapter 6, 2026
Feedforward networks, backprop and a feedforward language model over a fixed window.
A Neural Probabilistic Language ModelBengio et al., 2003
Learned word vectors let similar words share statistics, which n-grams can't.
Efficient Estimation of Word Representations in Vector SpaceMikolov et al., 2013
word2vec: skip-gram and CBOW, cheap enough to train on billions of words.
GloVe: Global Vectors for Word RepresentationPennington et al., 2014
Word vectors fitted to global co-occurrence counts, linking the matrix view to word2vec.
Recurrent networks
A Primer on Neural Network Models for NLPGoldberg, 2015
Feedforward and recurrent models in one notation, with RNNs as acceptors, encoders and transducers.
RNNs and LSTMsJurafsky & Martin, chapter 14, 2026
Backprop through time, stacked and bidirectional RNNs, LSTMs and the encoder-decoder.
Understanding LSTM NetworksChristopher Olah, 2015
Each LSTM gate drawn out, and why gating keeps gradients from vanishing.
Speech Recognition with Deep Recurrent Neural NetworksGraves et al., 2013
Stacked bidirectional LSTMs, and what depth buys a recurrent model.
Sequence to sequence and attention
Learning Phrase Representations using RNN Encoder-DecoderCho et al., 2014
The encoder-decoder for translation, and the GRU.
Sequence to Sequence Learning with Neural NetworksSutskever et al., 2014
Deep LSTMs that map a sentence to one vector and back.
Neural Machine Translation by Jointly Learning to Align and TranslateBahdanau et al., 2014
Attention: the decoder looks back at every source word instead of one fixed vector.
Pretrained Transformers
Deep Contextualized Word RepresentationsPeters et al., 2018
ELMo: a word's vector depends on its sentence, taken from a bidirectional LSTM language model.
Attention Is All You NeedVaswani et al., 2017
Recurrence dropped for self-attention, so a whole sequence trains in parallel.
Improving Language Understanding by Generative Pre-TrainingRadford et al., 2018
GPT: a decoder-only Transformer pretrained left to right, then finetuned per task.
BERTDevlin et al., 2018
An encoder pretrained with masked language modelling, reading both directions at once.
Exploring the Limits of Transfer Learning (T5)Raffel et al., 2019
Every task as text to text with an encoder-decoder, and a careful comparison of objectives.
Language Models are Unsupervised Multitask LearnersRadford et al., 2019
GPT-2: a bigger decoder doing tasks zero-shot, with no finetuning.
Scaling
Language Models are Few-Shot LearnersBrown et al., 2020
GPT-3, and in-context learning appearing with scale.
Scaling Laws for Neural Language ModelsKaplan et al., 2020
Loss falls as a power law in parameters, data and compute.
Training Compute-Optimal Large Language ModelsHoffmann et al., 2022
Chinchilla: scale data with parameters, about 20 tokens each.
Modern LLM architecture
RoFormer: Rotary Position EmbeddingSu et al., 2021
RoPE, the default way to encode position.
FlashAttentionDao et al., 2022
Exact attention made fast by tiling around GPU memory.
GQA: Grouped-Query AttentionAinslie et al., 2023
Shared key and value heads for a smaller KV cache.
Tensor Programs V: µPYang et al., 2022
Tune hyperparameters on a small model and transfer them.
Switch TransformersFedus et al., 2021
Mixture of experts with one expert per token.
LLaMATouvron et al., 2023
A compact recipe for a strong open model.
The Llama 3 Herd of ModelsGrattafiori et al., 2024
A full frontier pipeline written down, data to post-training.
DeepSeek-V3 Technical ReportDeepSeek-AI, 2024
Latent attention, fine-grained experts and FP8 training.
Data and midtraining
The FineWeb DatasetsPenedo et al., 2024
Filtering and deduplicating web text, with every ablation.
Efficient Training of Language Models to Fill in the MiddleBavarian et al., 2022
Infilling for code at almost no cost to left-to-right quality.
Post-training
High-Dimensional Continuous Control Using GAESchulman et al., 2015
Generalized advantage estimation and the λ trade-off.
Proximal Policy Optimization AlgorithmsSchulman et al., 2017
The clipped objective behind classic RLHF.
Training Language Models to Follow Instructions with Human FeedbackOuyang et al., 2022
InstructGPT: SFT, a reward model, then PPO.
Constitutional AIBai et al., 2022
AI feedback in place of human harmlessness labels.
Direct Preference OptimizationRafailov et al., 2023
Preference tuning with no reward model and no RL loop.
LoRAHu et al., 2021
Finetuning through low-rank weight updates.
Reasoning and RL
Chain-of-Thought PromptingWei et al., 2022
Writing out steps before the answer.
Let's Verify Step by StepLightman et al., 2023
Process rewards against outcome rewards on maths.
DeepSeekMathShao et al., 2024
Introduces GRPO, PPO with a group baseline instead of a critic.
DeepSeek-R1DeepSeek-AI, 2025
Long reasoning from RL on verifiable rewards.
DAPOYu et al., 2025
What breaks in GRPO at scale, and the fixes.
Inference
PagedAttentionKwon et al., 2023
The KV cache managed like virtual memory, from vLLM.
Fast Inference via Speculative DecodingLeviathan et al., 2022
A small model drafts, the big one verifies in one pass.
GPTQFrantar et al., 2022
4-bit weights with second-order error correction.
AWQLin et al., 2023
Protect the weights that see large activations.