Learning track
Pretraining at Scale
Design the objectives, data, optimization, parallelism, and cost model behind a serious language-model pretraining run.
advanced · 13 available lessons
Pretraining at Scale
Design the objectives, data, optimization, parallelism, and cost model behind a serious language-model pretraining run.
- Objectives: causal LM, MLM, span corruption, FIM
- Data: sourcing, filtering, dedup, decontamination
- Training your own tokenizer
- Scaling laws I: Kaplan
- Scaling laws II: Chinchilla & compute-optimality
- Scaling laws III: inference-aware & over-training
- Data parallelism, ZeRO & FSDP
- Tensor, pipeline & sequence parallelism
- Mixed precision: fp16, bf16, fp8
- Gradient checkpointing & memory maths
- Learning-rate schedules & warmup
- When training goes wrong: spikes, divergence, NaNs
- What a real pretraining run costs