Home / Fundamentals
Pillar 1
Fundamentals
How large language models work, are trained and are served, at the depth research scientist and AI engineer interviews expect: the math, the systems, and the trade-offs.
F1Transformer Architecture
Tokenization, attention, positional encodings, normalization, mixture-of-experts, and the arithmetic of parameters, FLOPs and memory.
F2Pre-training & Optimization
The language-modelling objective, pre-training data, AdamW and learning-rate schedules, scaling laws, numerical precision and training stability.
F3Distributed Training
Training memory and compute arithmetic, data parallelism and collectives, ZeRO and FSDP, tensor, pipeline, sequence and expert parallelism, and keeping thousands of GPUs productive.
F4Inference & Serving
Roofline analysis of prefill and decode, the KV cache, continuous batching and paged attention, quantization, speculative decoding, and decoding strategies.
F5Post-training & Alignment
Supervised fine-tuning, reward models, RLHF and DPO, reinforcement learning with verifiable rewards, LoRA and QLoRA, and when to fine-tune at all.
F6Evaluation
Benchmarks and contamination, pass@k, LLM-as-judge and arena ratings, the statistics of model comparisons, hallucination measurement, and building evaluation suites.