Open textbook · English / 简体中文

Post-Training of
Large Language Models

Alignment, Reasoning, and Agency

A graduate textbook covering the foundations and modern practice of large-language-model post-training, from supervised fine-tuning and preference alignment to reasoning, tool use, agentic reinforcement learning, systems, evaluation, and safety.

Star this textbook on GitHub

Six parts · Twenty-six chapters

From alignment foundations to agentic systems

  1. I

    Foundations

    Post-training paradigms, mathematical preliminaries, SFT, and data.

  2. II

    Alignment from feedback

    Reward models, policy gradients, RLHF, DPO, and online alignment.

  3. III

    Reasoning

    Test-time compute, RLVR, group-relative methods, and credit assignment.

  4. IV

    Agency

    Tool-integrated RL, long-horizon training, environments, and self-play.

  5. V

    Systems

    Training at scale, rollout mismatch, efficiency, and cost control.

  6. VI

    Measurement and frontiers

    Evaluation, safety alignment, robustness, and open problems.