Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Post-training

Definition

Training after pretraining that shapes a model's behaviour, including instruction tuning and preference or reinforcement learning.

In more detail

Post-training turns a base model into an assistant that follows instructions, uses tools and refuses harmful requests. Reasoning abilities are also largely developed here using reinforcement learning.

A base model straight out of pretraining continues text: give it a question and it may write more questions. Post-training usually starts with supervised fine-tuning on example conversations, then applies preference methods such as RLHF or DPO, and reinforcement learning with checkable rewards, such as maths answers or passing tests, for reasoning.

When you fine-tune an open model yourself, you are doing a small piece of post-training. Libraries such as TRL, Axolotl and Unsloth provide the same methods at a scale that fits one GPU.

  • DPO

    Direct Preference Optimization: training a model directly on pairs of preferred and rejected outputs, with no separate reward model needed.

  • GRPO

    Group Relative Policy Optimization: an RL method that samples a group of answers to one prompt and learns from their relative rewards.

  • Pretraining

    The first, most expensive stage of training, in which a model learns general patterns by predicting the next token across a huge corpus.

  • RLHF

    Reinforcement learning from human feedback: training a model with a reward signal learned from people's preferences between two outputs.

  • Supervised fine-tuning (SFT)

    Fine-tuning on labelled input and output pairs so the model learns to produce the target output for each input.

  • Constitutional AI

    A training method in which a model learns to be harmless by critiquing and revising its own answers against a written list of principles.

Read more about Post-training

  • Fine-tuning

    Further training a model on task-specific examples, and knowing when RAG is enough.

    SkillAdvanced

  • TRL

    Hugging Face's post-training library: supervised fine-tuning, DPO, GRPO and reward models.

    Tool

  • Axolotl

    Config-driven toolkit for fine-tuning open models, from LoRA to full multi-GPU runs.

    Tool