Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

pretraining

Training a language model on next-token prediction over a huge, broad corpus, before any task-specific or instruction-following training happens.

Pretraining is the stage of training a language model on the next-token-prediction objective over a large, broad corpus of text, self-supervised (the training signal comes from the text itself, not human-added labels). It is the stage that produces a base model, and every later stage this course covers -- fine-tuning, post-training, RAG, tool use -- starts from a pretrained model rather than training one from a blank slate.

Examples

  • Pretraining GPT-3 meant running next-token prediction over several hundred billion tokens of web text, books, and code, all before any instruction-following behavior was taught.

Read the full section →
Graph settings

Calculator