How to become a Post-Training Engineer
Step by step and free: 12 phases, 89 topics and 306 graded practice questions.
Open any topic and mark it Learning, Done or Skip to track your progress. Sign in to save it to your account.
0 of 89 done · 0 learning · 0 skipped · Start with the first topic
Saved on this device only. Sign up free or sign in to keep your progress everywhere.
It's saved on this device only. Sign up free to keep it everywhere; your marks move into your account.
What is a Post-Training Engineer?
A post-training engineer turns a pretrained base model into one that follows instructions, uses tools, reasons and behaves safely. They write the behaviour spec, build prompt sets and preference data, run supervised fine-tuning, DPO and reinforcement learning against reward models or verifiers, and read evals and samples to decide which checkpoint ships. They work with researchers, eval teams, annotators and the team that serves the model.
Who this roadmap is for
ML engineers and researchers who already train models in PyTorch, understand transformers, and want to own model behaviour after pretraining. You should be comfortable with loss curves, GPUs and basic reinforcement learning ideas. It is not for application developers who only prompt hosted models, or for people starting machine learning from scratch.
What you will be able to do
You will be able to plan post-training from a behaviour spec, build and decontaminate SFT and preference datasets, train and evaluate reward models, run and debug PPO, GRPO and DPO, train reasoning with verifiable rewards and agents on trajectories, catch regressions before release, and balance safety against over-refusal.
The Post-Training Engineer roadmap
Post-Training Engineer
-
Phase 1 Post-training foundations
-
Phase 2 Post-training data
-
Phase 3 Supervised fine-tuning
-
Phase 4 Preference data and reward models
-
Phase 5 RLHF and policy optimisation
-
Phase 6 Direct preference optimisation
-
Phase 7 RL with verifiable rewards and reasoning
-
Phase 8 Tool use and agentic post-training
-
Phase 9 Evals that drive post-training decisions
-
Phase 10 Efficient and scaled post-training
-
Phase 11 Regressions, merging and release
-
Phase 12 Safety and behaviour training
All topics, in order
Mark each topic Learning, Done or Skip, and sign in to save your place to your account. Done is your own word, not passing: a topic is passed when you score 50 or more on its questions. This order is the study plan.
-
Phase 1 · Post-training foundations
-
What a post-training engineer does
A post-training engineer takes a pretrained base model and makes it a usable assistant: the data, the SFT, preference and RL stages, the evals that pick a checkpoint, and the regressions that follow each release. Pretraining teams own raw capability and research engineers own the training code; you own behaviour. The job is turning a vague complaint (too wordy, refuses too much, bad at tools) into a training change and proving it worked.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Pretraining vs post-training
Pretraining spends most of the compute teaching a model to predict text, which is where its knowledge and raw skill come from. Post-training uses far less compute to change how that capability comes out: following instructions, holding a format, refusing the right things, reasoning before answering. It can also strengthen skills with RL, but it is a poor way to install large bodies of new facts. When a model lacks the knowledge, look upstream before you build a post-training dataset.
Reading
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
The modern post-training pipeline
Most open recipes run three kinds of stage: supervised fine-tuning on demonstrations, preference tuning (DPO or RLHF with a reward model), and RL against verifiable rewards for maths, code and instruction following. Frontier teams repeat these in rounds, with each round's model generating data for the next. Each stage has a job: SFT sets format and baseline behaviour, preference tuning shapes style and judgement, RL pushes skills a checker can grade.
Reading
- Tulu 3: Pushing Frontiers in Open Language Model Post-Training arxiv.org
- The Llama 3 Herd of Models arxiv.org
- DeepSeek-R1: Incentivizing Reasoning Capability via RL arxiv.org
- Qwen3 Technical Report arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Choosing a base model to start from
Everything you build inherits the starting checkpoint's knowledge, tokenizer, context length, licence and quirks. A base model gives you a clean slate but needs the full pipeline; an existing instruct model is cheaper to adapt but already carries someone else's choices, template and refusals. Pick by testing candidates on your target tasks with a few shots, read the licence before you train, and check that the tokenizer handles your languages and formats well.
Reading
- 2 OLMo 2 Furious (the OLMo 2 report) arxiv.org
- Hugging Face Hub: model cards huggingface.co
- Hugging Face Hub: licenses huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
When to fine-tune vs prompt or RAG
Prompting steers a model within what it can already do, retrieval supplies facts that are large or change often, and fine-tuning changes durable behaviour: format, tone, task skill, and how it handles a class of request. Try the prompt first, because it is cheap and reversible. Fine-tune when the prompt has hit its ceiling, the behaviour must hold at volume or at lower cost, or a smaller model has to do the job. Fresh facts belong in retrieval either way.
Reading
- Hugging Face TRL: SFT Trainer huggingface.co
- OpenAI: Model optimization (prompting, evals and fine-tuning) platform.openai.com
- Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs arxiv.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
From a behaviour spec to a training plan
A model spec says how the assistant should behave; your job is to make that trainable. For each rule, decide which prompts exercise it, what a good response looks like, whether a checker or a judge can score it, and which eval will show it held. Rules nobody can grade become vague data and vague results. Write the eval before the dataset, and keep a trace from each spec line to the data and reward that teach it.
Reading
- OpenAI Model Spec model-spec.openai.com
- Anthropic: Claude's constitution anthropic.com
- Deliberative Alignment: Reasoning Enables Safer Language Models arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 2 · Post-training data
-
Data for post-training
In post-training a small set of well-chosen, correct, on-distribution examples beats a large generic one: LIMA tuned a strong base on about a thousand curated conversations. The data defines the behaviour, so every response you train on is a response you are asking for, mistakes included. Match prompts to the traffic you expect, check responses for correctness and style, and treat output from a weaker model as a draft to filter, not a target.
Reading
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Prompt sets and coverage
Prompts decide what the model practises in every stage, so build the prompt set before worrying about responses. Draw from real user logs (with consent and filtering), public sets and targeted writing, then tag each prompt by skill, difficulty, language and risk. Counting prompts per tag shows the gaps: a model never trained on multi-step tool requests will not get good at them from more chat. Keep a held-out slice of each tag for evals.
Reading
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Annotation guidelines and annotator quality
Human data is only as consistent as the instructions behind it. Good guidelines define the task, rank the criteria when they conflict (is a safe but unhelpful answer better than a helpful risky one?), and show worked edge cases. Run a calibration batch, measure agreement between raters and against a gold set, and rewrite the guideline where people disagree. Low agreement usually means an unclear rule, not careless raters.
Reading
- Llama 2: Open Foundation and Fine-Tuned Chat Models (human data) arxiv.org
- HelpSteer2: Open-source dataset for training reward models arxiv.org
- Wikipedia: Inter-rater reliability en.wikipedia.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Synthetic responses from stronger models
Generating responses with a stronger teacher model is now the main source of SFT data, because it is fast and cheap. The student learns the teacher's style and errors together, so verify what you can (run code, check maths), filter the rest with a judge, and dedupe hard against your evals. Read the teacher's terms of use first: several providers forbid using outputs to train competing models, and a dataset built in breach is a liability.
Reading
- Orca: Progressive Learning from Complex Explanation Traces arxiv.org
- The Curse of Recursion: Training on Generated Data arxiv.org
- OpenAI: Terms of use openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Rejection sampling for training data
Rejection sampling (best-of-n) draws several responses per prompt from your current model, scores them with a reward model or a verifier, and keeps the best for the next round of SFT. It is simple, stable and on-policy, which is why Llama 2 and Llama 3 leaned on it. Its limit is the scorer: whatever the reward model favours, length or flattery included, is what you train in. Check a sample of the winners by hand each round.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Decontaminating against evals
If benchmark items leak into training data, the scores measure memory, not skill. Before every training run, check each training prompt against every eval prompt with n-gram overlap and embedding similarity, and drop matches; paraphrased copies slip past exact matching. Public datasets and synthetic data from teachers that saw the benchmarks are the usual sources. Record what was removed so a later surprise score can be traced.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Data mixtures across skills
A post-training set is a mixture of maths, code, chat, safety, tool use and more, and the proportions move the model as much as the content. Adding a lot of one skill often lifts it and quietly costs another. Tune the mix with ablations: train a small run with one source added or removed, compare across the whole eval suite, and keep the version that wins overall. Upsample small, valuable sources rather than letting volume decide.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Provenance, licences and personal data
Every training example should carry where it came from, its licence, and whether it may be used for training a model you will ship. Public datasets often mislabel their licences, and user logs bring personal data and consent questions. Keep a manifest per source, scrub or drop personal data before it reaches a run, and make removal possible: if a source must be pulled later, you need to know which checkpoints it reached.
Reading
- The Data Provenance Initiative: auditing dataset licensing arxiv.org
- Datasheets for Datasets arxiv.org
- Hugging Face Hub: dataset cards huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 3 · Supervised fine-tuning
-
SFT: imitating target responses
Supervised fine-tuning trains the model to predict the target assistant response given the conversation so far, with the ordinary next-token loss. Two details decide whether it works: apply exactly the chat template the model will see in serving, and mask the loss so only assistant tokens count. Training on prompt tokens teaches the model to imitate users. Watch both training and held-out loss: a falling train loss with rising eval loss means it is memorising.
Reading
- Hugging Face TRL: SFT Trainer huggingface.co
- InstructGPT: Training language models to follow instructions arxiv.org
- Instruction Tuning for Large Language Models: A Survey arxiv.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Chat templates and special tokens
A chat template turns a list of messages into the exact token sequence the model reads: role markers, the end-of-turn token, and how tool calls and results are written. It is a contract between training and serving, and a mismatch (a missing end token, a different system format) gives a model that rambles past its turn or ignores the system prompt. Store the template with the checkpoint, and decode a few training examples back to text to see what the model really saw.
Reading
- Hugging Face Transformers: chat templates huggingface.co
- Hugging Face Transformers: tool use in chat templates huggingface.co
- OpenAI Harmony response format github.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Multi-turn and system-prompt data
Users rarely send one message, and operators put instructions in the system prompt that must hold for the whole conversation. Train on full conversations where later turns depend on earlier ones (corrections, follow-ups, changed constraints), and on varied system prompts the model must obey and keep obeying. A model trained only on single turns forgets early instructions by turn five. Evaluate at several conversation depths, not just the first reply.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Curating an SFT set
When a tuned model is too terse, refuses too much or stops mid-answer, look in the data before the hyperparameters. Find conflicting examples (same prompt, opposite answers), truncated or wrong responses, near duplicates and clusters that dominate the set, then remove, fix or rebalance them and retrain. Score at scale with filters and a judge, but read a random sample yourself: the worst defects are often the ones no filter was written for.
Reading
- Hugging Face: Alignment Handbook github.com
- AlpaGasus: Training a Better Alpaca with Fewer Data arxiv.org
- What Makes Good Data for Alignment? (Deita) arxiv.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
SFT hyperparameters
SFT is sensitive to learning rate above all: too high and it forgets the base, too low and the behaviour barely moves. Typical recipes use a short warmup, a decaying schedule and a few epochs; more epochs on a small set often overfit and hurt chat quality even as loss falls. Sweep the learning rate first on a small run, judge by the eval suite rather than loss, and change one setting at a time. LoRA needs a much higher learning rate than full tuning.
Reading
- Tulu 3: SFT hyperparameters and ablations arxiv.org
- Thinking Machines: LoRA Without Regret thinkingmachines.ai
- Hugging Face TRL: SFT Trainer huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Packing and long-context SFT
Packing concatenates short examples into full-length sequences so no compute is spent on padding, but each example must only attend to itself, or the model learns from unrelated text. Long examples should stay whole rather than be cut mid-answer. If the model must handle long inputs after tuning, include long documents and long conversations in SFT, and test retrieval and reasoning at the full length, not just the short end.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Training for instruction following
Users and operators give constraints: answer in three bullets, under 100 words, in French, as JSON. Many constraints can be checked by code, which makes them good SFT data and even better RL rewards. Generate prompts with combinations of checkable constraints, keep only responses that pass every check, and mix in constraints that conflict with the default style. Test on held-out constraint types, or you will only learn the ones in the set.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Catastrophic forgetting
Fine-tuning moves weights toward the new data, and skills it does not exercise can fade: a model tuned hard on support tickets may lose maths or another language. You only see it if your evals cover what the base could already do. Mitigate by mixing a replay slice of general data into training, using a lower learning rate and fewer epochs, or training adapters, which move the model less. Measure the cost on every run instead of assuming it.
Reading
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Midtraining and continued pretraining
When the model lacks a domain (a language, a codebase, a field's literature) more SFT will not teach it; it needs many more tokens of plain text. Continued pretraining or a midtraining stage feeds that text with the pretraining loss, usually mixed with general data and a decaying learning rate so the base does not drift. Do it before SFT, then rerun the post-training recipe. Check general evals after, because a heavy domain mix can cost broad skill.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 4 · Preference data and reward models
-
Collecting preference data
Preference data asks raters which of two or more responses is better, which is easier and more consistent than writing ideal answers. Decide the format: plain pairwise choice, a strength-of-preference scale, or per-attribute ratings (helpful, correct, safe) that let you build separate rewards. Collect on prompts like your real traffic, with responses close enough in quality that the choice teaches something, and record ties and rater confidence instead of forcing a pick.
Reading
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
On-policy and off-policy preference data
Pairs sampled from the model you are training (on-policy) show it its own mistakes; pairs from other models (off-policy) show it someone else's. Studies of preference tuning find on-policy samples generally help more, and a reward model trained on old outputs grows less accurate as the policy moves away from them. Cheap public pairs are a fine first round. After that, regenerate responses from the current checkpoint and label those.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
AI feedback as preference labels
A strong model can label preference pairs or critique responses against written principles at a fraction of the cost of people, which is how most open preference sets are built now. It brings its own biases: favouring the first position, longer answers and its own style. Swap the order and average, ask for a short rationale before the verdict, and measure agreement with a human-labelled sample before trusting it on anything subtle or high stakes.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reward modeling
A reward model is usually your model with its output head replaced by a single score, trained on preference pairs so the chosen response scores higher than the rejected one (a Bradley-Terry loss). It turns thousands of human comparisons into a reward you can query millions of times. It is a proxy, so expect the policy to find what it overrates: when reward climbs while human ratings stall, stop, inspect samples and refresh the reward model on the new outputs.
Reading
- Hugging Face TRL: Reward Modeling huggingface.co
- Learning to summarize from human feedback arxiv.org
- RLHF book: Reward modeling rlhfbook.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Evaluating reward models
Accuracy on held-out preference pairs is the first check, but it is not the goal: you need a reward model that makes the policy better. Test on pairs from your current policy, on hard categories (safety, reasoning, subtle errors) and on reward benchmarks, and check whether the RM's best-of-n picks are the ones people prefer. A model that scores high on a benchmark and still rewards length or flattery will train exactly that.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reward model biases
Reward models pick up shortcuts that correlate with preference in the training data: longer answers, more formatting, confident tone, agreeing with the user. A policy optimised against them amplifies those shortcuts. Test for each bias directly (score the same answer padded, reformatted or made more agreeable) and correct it with counter-examples in the preference data, an explicit length penalty, or a separate reward for the property you actually want.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Generative reward models and judges
Instead of a single score from a classifier head, a generative reward model writes a critique or reasoning and then a verdict, so it can follow a rubric, check a calculation and explain itself. These are often more accurate on hard prompts and easier to audit, but they cost far more per judgement, which matters when an RL run scores millions of samples. Use them where the classifier fails, and measure their agreement with people like any other judge.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Process reward models
An outcome reward scores only the final answer; a process reward model scores each step of a solution, so it can catch right answers reached by wrong reasoning and point at where a solution went wrong. Step labels are expensive from people, so many teams estimate them automatically by rolling out from each step and checking how often it leads to a correct answer. Use process rewards when step quality matters; for plain RL on checkable answers, outcome rewards are often enough.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Multiple objectives in the reward
Helpfulness and safety pull against each other, and one reward model trained on mixed labels blurs them. Many teams train separate reward models and combine them: Llama 2 used the safety score on prompts tagged as risky or when it fell below a threshold, and the helpfulness score otherwise. Whatever the combination, write it down, check which term dominates the gradient, and evaluate each objective separately so a gain in one is not hiding a loss in the other.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 5 · RLHF and policy optimisation
-
The RLHF pipeline
Classic RLHF has three stages: an SFT model, a reward model trained on human comparisons of that model's outputs, and RL (usually PPO) that updates the policy to score well on the reward while a KL penalty keeps it near the SFT model. Unlike SFT it learns from the model's own samples, so it can improve beyond the demonstrations. The price is four models in memory, a fragile loop and a reward that can be gamed, so use it when simpler preference tuning has stalled.
Reading
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
RL basics for language models
In RL for language models the policy is the model, an action is a token (or a whole response), and an episode is one generated response, often with a single reward at the end. Policy-gradient methods raise the probability of responses that scored above a baseline and lower those below it; the gap is the advantage. A good baseline cuts variance without changing the target, which is why most of the methods you will meet differ mainly in how they estimate it.
Reading
- OpenAI Spinning Up: Key concepts in RL spinningup.openai.com
- OpenAI Spinning Up: Intro to policy optimization spinningup.openai.com
- RLHF book: Reinforcement learning (policy gradients) rlhfbook.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
PPO for language models
PPO updates the policy on a batch of rollouts for a few steps, clipping the probability ratio so no single update moves it too far. A value model, often initialised from the reward model, predicts expected reward per token, and generalised advantage estimation turns rewards and values into per-token advantages. PPO works, but it is sensitive to many small choices (reward whitening, value clipping, where the KL goes), so start from a published, working configuration.
Reading
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
The KL penalty and the reference model
A frozen copy of the starting model, the reference, anchors the run: the KL divergence between policy and reference is subtracted from the reward or added to the loss. It stops the policy drifting into text the reward model has never seen and was never trained to judge. Too small a coefficient lets the policy game the reward; too large and nothing changes. Track KL as a budget, compare checkpoints at equal KL, and be wary of a run whose KL keeps rising fast.
Reading
- Fine-Tuning Language Models from Human Preferences (adaptive KL) arxiv.org
- RLHF book: Regularization rlhfbook.com
- Hugging Face TRL: PPO Trainer (KL control) huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Critic-free methods: REINFORCE, RLOO and GRPO
Language model rewards usually arrive once per response, so a learned value model adds memory and instability for little gain. Critic-free methods sample several responses per prompt and use the group as the baseline: RLOO compares each response with the mean of the others, GRPO with the group mean, divided by the group's spread. They are simpler and now common, but details matter: normalising by response length or by spread can bias training toward long wrong answers or easy prompts.
Reading
- Back to Basics: Revisiting REINFORCE Style Optimization (RLOO) arxiv.org
- DeepSeekMath: introduces GRPO arxiv.org
- Understanding R1-Zero-Like Training: A Critical Perspective (Dr. GRPO) arxiv.org
- Hugging Face TRL: GRPO Trainer huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reward over-optimisation
Optimise hard enough against a learned reward and the true quality it stands for rises, peaks and then falls, while the proxy keeps climbing. Gao and colleagues measured this curve against a gold reward model, and larger reward models delay the turn. In practice you rarely have a gold reward, so watch for the signs: reward up while human or judge win rates flatten, and outputs drifting longer or more formulaic. Stop early, refresh the reward model, or tighten the KL.
Reading
- Scaling Laws for Reward Model Overoptimization arxiv.org
- Open Problems and Fundamental Limitations of RLHF arxiv.org
- Lilian Weng: Reward Hacking in Reinforcement Learning lilianweng.github.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reading an RL training run
An RL run is judged by several curves together. Reward should rise steadily; KL to the reference should grow slowly; entropy falling to near zero means the policy has collapsed onto a few answers; a clip fraction that climbs means updates are too large. Response length is the most telling: a sudden climb with reward often means the reward favours length. Every few hundred steps, read samples from the top and bottom of the reward range, not just the plots.
Reading
- Hugging Face TRL: logging and metrics huggingface.co
- The N+ Implementation Details of RLHF with PPO arxiv.org
- DAPO: An Open-Source LLM RL System at Scale (training dynamics) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 6 · Direct preference optimisation
-
Direct Preference Optimization
DPO shows that the RLHF objective can be solved without an explicit reward model: train the policy so its log-probability ratio to a frozen reference is higher on the chosen response than on the rejected one, with a classification-style loss. There is no sampling loop and no reward model, so it is cheap, stable and easy to run. The trade is that it learns from a fixed set of pairs, usually not from its own fresh samples, which limits how far it can go past that data.
Reading
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model arxiv.org
- Hugging Face TRL: DPO Trainer huggingface.co
- RLHF book: Direct alignment algorithms rlhfbook.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Building pairs for DPO
DPO learns only from the difference between chosen and rejected, so the pair is the lesson. Pairs where both answers are fine teach style noise; pairs where the rejected one is absurd teach nothing the model did not know. The useful pair differs in the property you care about: a correct answer against a subtly wrong one, a helpful answer against a needless refusal. Sample both from your current model when you can, score them, and drop pairs whose margin is too small to trust.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Tuning and reading a DPO run
The beta coefficient sets how far the policy may move from the reference: low beta lets it move further and fit the pairs harder. DPO wants a much lower learning rate than SFT and usually one or two epochs. Watch the implicit rewards: the margin and the share of pairs ranked correctly should rise, but if both chosen and rejected log-probabilities fall together, the model is pushing probability elsewhere. Judge the run on held-out evals, because training accuracy near 100% often means overfitting.
Reading
- Hugging Face TRL: DPO Trainer (logged metrics) huggingface.co
- Tulu 3: DPO hyperparameter ablations arxiv.org
- Direct Preference Optimization (the original paper) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
DPO failure modes
DPO only needs the gap between chosen and rejected to widen, so it can lower the probability of both, a pattern called likelihood displacement, and sometimes move mass onto responses neither of them resembled. Because chosen answers in most sets are longer, it also tends to lengthen outputs. And it overfits a static set quickly. Counter with length-normalised or length-controlled variants, an added SFT term on chosen responses, fresh on-policy pairs and early stopping.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
IPO and KTO
IPO replaces DPO's log-sigmoid loss with a squared one that targets a fixed margin, so the model stops pushing once a pair is clearly separated; that resists overfitting when preferences are near certain. KTO drops pairs entirely: it learns from single responses labelled desirable or undesirable, which fits thumbs up and thumbs down feedback from a product. Pick by the data you have, not by leaderboard claims, and compare on your own evals.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reference-free variants: ORPO and SimPO
Keeping a reference model costs memory and a second forward pass. ORPO removes it and folds preference into SFT: the usual loss on the chosen response plus an odds-ratio term that pushes the rejected one down, in a single stage. SimPO uses the average log-probability per token as the implicit reward, with a target margin, which also curbs length bias. Without a reference nothing anchors the model to where it started, so keep an eye on general evals.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Iterative and online DPO
Offline DPO trains on pairs from other models; iterative DPO regenerates pairs from the latest checkpoint each round, labels them with a reward model or judge, and trains again. Online DPO does this continuously during training. Both bring back the on-policy signal RL gets from its own samples, without a full RL loop, and much of the gap between DPO and PPO closes. Llama 3 ran DPO this way over several rounds. Watch the labeller: its biases compound round on round.
Reading
- Direct Language Model Alignment from Online AI Feedback arxiv.org
- Self-Rewarding Language Models arxiv.org
- Hugging Face TRL: Online DPO Trainer huggingface.co
- The Llama 3 Herd of Models arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 7 · RL with verifiable rewards and reasoning
-
RL with verifiable rewards
When a program can check the answer (a maths result, unit tests, a format constraint), the reward is a verifier instead of a learned model. It cannot be flattered the way a reward model can, so you can optimise much harder and longer, which is how recent reasoning models were trained. The limits are coverage and correctness: it works only where a check exists, and a buggy check is optimised against as eagerly as a correct one. Most runs mix verifiable and learned rewards.
Reading
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Writing verifiers for maths and code
A maths verifier must find the final answer in free text and decide equivalence: 0.5, 1/2 and a boxed fraction are the same answer, and string matching gets that wrong. A code verifier runs the response against tests in a sandbox with time and memory limits and no network. Test the verifier like production code: known correct answers must pass, near misses and malformed output must fail, and nothing the model writes should be able to crash or edit the grader.
Reading
- Hugging Face: Math-Verify github.com
- DeepSeek-R1: reward design arxiv.org
- Training Software Engineering Agents and Verifiers with SWE-Gym arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Rubric rewards for open-ended tasks
Most valuable tasks (medical advice, research summaries, writing) have no single right answer, but experts can list what a good answer must contain and must avoid. A rubric turns that list into weighted criteria, and a judge model checks each one, giving a reward that is more specific and harder to game than an overall score. Write rubrics per prompt or per task type, test the judge's agreement with experts on each criterion, and look for responses that tick boxes without being good.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Difficulty filtering and curricula
With group-based methods, a prompt the model always solves or never solves gives every sample the same reward and therefore no gradient. Estimate each prompt's pass rate with a few samples from the current model and keep the ones in between; as the model improves, refresh the estimate, because yesterday's hard prompts become easy. Some recipes resample during training to keep batches full of useful prompts. Too many impossible prompts waste compute.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Training long chain-of-thought reasoning
RL with verifiable rewards on hard problems teaches a model to think longer before it answers: responses grow, and behaviours like checking work and backtracking appear because they raise the success rate. DeepSeek reported this from RL on a base model with no reasoning demonstrations, along with unreadable, language-mixed traces. Expect length and accuracy to rise together, read the traces as well as the scores, and add format or language rewards if readability matters.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Cold-start data and distilling reasoning
Pure RL from a base model works but is slow and gives messy traces, so most recipes first run SFT on a small set of clean, long reasoning examples (a cold start) and then do RL. Once a strong reasoner exists, smaller models are usually trained by SFT on its traces rather than by RL of their own; DeepSeek found distillation beat RL at small sizes. Curate traces for correctness and variety, because the student copies the reasoning habits, flaws included.
Reading
- DeepSeek-R1: cold start and distillation arxiv.org
- OpenThoughts: Data Recipes for Reasoning Models arxiv.org
- s1: Simple test-time scaling arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Length control and overthinking
Reasoning models trained only on correctness learn that more thinking rarely hurts, so they spend hundreds of tokens on trivial questions, which costs users time and money. Control it in training: a length penalty or a reward for correct answers within a budget, prompts that state a token budget the model must respect, and easy prompts in the RL mix so short answers get rewarded. Report accuracy against tokens used, not accuracy alone.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
When the verifier is the weak point
A policy under RL will find any way to pass the check: special-casing the visible tests, exiting before tests run, printing an answer in the format the extractor grabs first. These are bugs in your reward, and they teach a habit of gaming that can spread to other behaviour. Look for them in samples where reward is high and the solution looks odd, hold back hidden tests, make the sandbox read-only where it should be, and count each fix as a reward change.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 8 · Tool use and agentic post-training
-
Function-calling data
Tool use is trained like any other behaviour: examples where the model reads tool schemas, emits a call in the exact format, reads the result and continues. Good data covers choosing among many tools, filling arguments correctly, parallel and sequential calls, handling errors from the tool, and declining to call a tool when none fits. Generate calls synthetically but execute them to verify, and render every example through the same template the server will use.
Reading
- APIGen: Generating Verifiable Function-Calling Datasets arxiv.org
- ToolACE: Winning the Points of LLM Function Calling arxiv.org
- Berkeley Function Calling Leaderboard gorilla.cs.berkeley.edu
- Hugging Face Transformers: tool use in chat templates huggingface.co
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
SFT on agent trajectories
The usual first step for an agent model is SFT on full trajectories: the task, every reasoning step, tool call and observation, and the final result. Collect them by running a strong model in your environments and keeping successful runs. Success is not enough: some runs succeed by luck or by a shortcut, so filter on the path as well as the outcome, and train only on the assistant turns, never on tool output the model did not write.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Designing RL environments for agents
An agentic RL environment is a task, the tools and state the agent acts on, and a grader that decides success. Its design decides what the agent learns: if the grader checks only the final message, the agent learns to claim success. Grade the resulting state, include tasks that need asking the user or giving up, vary the starting state so memorised paths fail, and keep a held-out set of environments to show the skill transfers.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Multi-turn RL and credit assignment
In a 40-step agent task the reward arrives once, at the end, and every step shares it, so a good early decision and a lucky late one look the same. Long episodes also make rewards rarer and runs slower. Help credit find the right steps: shorter tasks first, intermediate rewards where progress can be checked (a test now passing), per-turn advantages from a value or critic model, and grouping rollouts from the same starting state so they can be compared.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Post-training coding agents
Coding agents train on real repositories: an issue, a container with the codebase, and tests that fail before the fix and pass after. The tests are the reward, which makes them the target of every shortcut. Keep the grading tests hidden from the agent, make them read-only, check that the agent did not delete or skip tests, and run the full suite, not just the target test, so a fix that breaks something else scores zero.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Teaching agents to ask, stop and hand back
An agent that never asks will guess at ambiguous instructions, and one that never stops will keep spending after the task is impossible. These are behaviours you can train: include tasks where the right move is a clarifying question, a refusal or handing control back, and reward that move in the grader. If every training task is solvable and fully specified, the model learns that pushing on is always correct, and no system prompt fully undoes it.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 9 · Evals that drive post-training decisions
-
Evaluating fine-tuned models
A fine-tune is only as good as its comparison: score it on held-out data it never trained on, against the base model and the version it would replace, with the same prompts and decoding settings. Add checks on what the base could already do, because the gain you wanted can hide a loss you did not. Training-set accuracy measures memory, and a handful of good demos measures luck. Decide the metric and the bar before you look at the results.
Reading
- EleutherAI: LM Evaluation Harness github.com
- OLMES: A Standard for Language Model Evaluations arxiv.org
- UK AISI: Inspect evaluation framework inspect.aisi.org.uk
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
The post-training eval suite
Post-training changes many behaviours at once, so a release needs a suite, not a score: knowledge and reasoning benchmarks, maths and code, chat quality by judge, instruction following, tool use, long context, safety and over-refusal, plus your product's own tasks. Split it into a development set you tune against and an unseen set you check once per release. Give each area an owner and a threshold, and add a new eval whenever a bug reaches users.
Reading
- Tulu 3: development and unseen evaluation suites arxiv.org
- OLMES: A Standard for Language Model Evaluations arxiv.org
- Anthropic: Define success criteria and build evaluations docs.anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Judge-based win rates
For open-ended chat there is no answer key, so teams have a strong model compare two responses and report how often the new model wins. It is cheap and correlates with human preference, but judges favour longer answers, the first position and their own style. Swap positions, use length-controlled scoring, keep the judge model and prompt fixed across releases, and recheck it against human ratings whenever you change it.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Human evaluation and side-by-sides
When the question is whether people prefer the new model, people are the test. Show raters the same prompt with two anonymised responses in random order, ask for a preference and the reason, and use prompts that look like real traffic. A few hundred comparisons can detect a real preference shift; a few dozen cannot. Use human evals for release decisions and to calibrate your judges, and expert raters wherever correctness needs expertise.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reading samples as an eval
Scores average away the behaviour users notice: a new verbal tic, an apology on every answer, headings on a two-line reply. Read outputs from each candidate on a fixed set of prompts, side by side with the previous model, and write down what changed in categories you can count next time. This is how most regressions are first found. Make it structured (same prompts, notes per category) so it is evidence, not a mood.
Reading
- Hamel Husain: Your AI Product Needs Evals hamel.dev
- OpenAI: Expanding on what we missed with sycophancy openai.com
- Tulu 3: qualitative analysis of models arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Eval noise and significance
Two checkpoints from the same recipe with different seeds can differ by a point or more on a benchmark, so a one point gain may be nothing. Estimate the noise: report standard errors, rerun sampling evals several times, and compare models on the same questions with paired tests. Small benchmarks are noisy by nature; prefer evals whose spread between seeds is small compared with the differences you need to detect.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Choosing which checkpoint ships
No checkpoint wins every eval, so make the choice a rule rather than a debate. Set hard gates (safety, over-refusal, critical product tasks) that a candidate must pass, then rank the survivors on a small set of agreed headline metrics. Compare candidates from the same run and across runs, consider averaging nearby checkpoints, and write down the decision and its trade-offs so the next release can be held to the same standard.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 10 · Efficient and scaled post-training
-
LoRA and PEFT
Parameter-efficient fine-tuning freezes the base weights and trains a small number of added parameters. LoRA adds a low-rank update to chosen weight matrices, cutting optimiser memory and checkpoint size so one base can serve many adapters. For SFT and RL on modest datasets it can match full fine-tuning when applied to all layers with a well-tuned, higher learning rate; it falls behind when there is a lot to learn. Validate a LoRA result against a full run before it shapes a big decision.
Reading
- LoRA: Low-Rank Adaptation of Large Language Models arxiv.org
- Hugging Face PEFT documentation huggingface.co
- Thinking Machines: LoRA Without Regret thinkingmachines.ai
- LoRA Learns Less and Forgets Less arxiv.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Quantized training (QLoRA)
QLoRA stores the frozen base weights in 4-bit (the NF4 format) and trains LoRA adapters in higher precision on top, dequantising on the fly. Most of the memory saving comes from the base, so a model that needed several GPUs can be tuned on one. The cost is slower steps and a small quality gap. Serve carefully: merging adapters into a quantised base, or serving at a different precision than you trained, can change outputs, so evaluate the exact artefact you deploy.
Reading
- QLoRA: Efficient Finetuning of Quantized LLMs arxiv.org
- Hugging Face: bitsandbytes documentation huggingface.co
- Hugging Face PEFT documentation huggingface.co
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Distillation
Distillation trains a smaller student to imitate a larger teacher on your task distribution, either on the teacher's generated responses (plain SFT) or on its full token probabilities, which carry more signal per example. On-policy distillation has the teacher grade the student's own samples token by token, fixing the mistakes the student actually makes. The student rarely beats its teacher, so pick the teacher for the tasks you need, and distil on prompts like real traffic.
Reading
- Distilling the Knowledge in a Neural Network arxiv.org
- On-Policy Distillation of Language Models (GKD) arxiv.org
- Thinking Machines: On-Policy Distillation thinkingmachines.ai
- MiniLLM: On-Policy Distillation of Large Language Models arxiv.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Where an RL job spends its time
In LLM RL, generating rollouts usually takes most of the wall clock, especially with long reasoning, so systems run generation on a fast inference engine and training on a separate trainer, then copy new weights across after each update. Long responses make the slowest sample in a batch set the pace. Profile the split between generation, scoring and training before optimising, and check that the inference engine's log-probabilities match the trainer's.
Reading
- HybridFlow: A Flexible and Efficient RLHF Framework (veRL) arxiv.org
- OpenRLHF: A Scalable and High-performance RLHF Framework arxiv.org
- vLLM documentation docs.vllm.ai
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Asynchronous RL and stale rollouts
Waiting for every rollout before each update leaves GPUs idle, so asynchronous systems keep generating with slightly older weights while the trainer updates. The samples become off-policy by a step or more, which the importance ratio and clipping partly correct. A little staleness usually costs little and buys a lot of throughput; a lot destabilises training. Measure the lag, cap it, and compare against a synchronous run before trusting the speed-up.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Choosing a post-training framework
Open libraries cover different ground: some focus on SFT and preference trainers that are easy to start with, others on RL at scale with separate inference and training engines. Before you commit a team to one, check that it supports your model family and chat template, the algorithms you need, your parallelism, and the inference engine you serve with, and that it is actively maintained. Reproduce a published result in it first, because silent defaults differ between libraries.
Reading
- Hugging Face TRL documentation huggingface.co
- veRL (Volcano Engine Reinforcement Learning for LLMs) github.com
- OpenRLHF github.com
- Ai2 open-instruct (Tulu training code) github.com
- NVIDIA NeMo RL github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Managed fine-tuning services
Model providers and clouds offer fine-tuning as a service: you upload data, and some also accept a grader for reinforcement fine-tuning. You skip the infrastructure, but you only control what the API exposes, you cannot inspect the weights, and the base model can be retired on the provider's schedule. Use it when the model you need is closed or your team is small, keep your data and evals portable, and check each provider's current docs for which models and methods are offered.
Reading
- OpenAI: Supervised fine-tuning platform.openai.com
- OpenAI: Reinforcement fine-tuning platform.openai.com
- Google Cloud Vertex AI: Tune models cloud.google.com
- Amazon Bedrock: Customize your model docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Budgeting post-training compute
Training cost is roughly six times parameters times tokens in FLOPs, which makes SFT and DPO cheap next to pretraining. RL is different: most of its cost is generation, and long reasoning rollouts multiply it, so RL can dominate a post-training budget. Estimate each stage before launch, run small versions to fit how performance grows with compute, and spend extra where the curve is still rising, not where it has flattened.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 11 · Regressions, merging and release
-
Detecting regressions
A gain on the metric you targeted says nothing about the rest. Before promoting a checkpoint, run the full suite: general capabilities, instruction following, safety and over-refusal, tone, and a set of past failures that must stay fixed. Compare with the current production model, separate real drops from noise, and block on any critical area that regressed. In April 2025 an added reward from user thumbs-up ratings made a GPT-4o update sycophantic, and neither offline evals nor A/B tests flagged it before release.
Reading
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Tracing a behaviour back to its data
When a model starts doing something unwanted, find where it learned it. Check which stage introduced it by evaluating each intermediate checkpoint, then search that stage's data for examples that show the behaviour and its reward signal for what scored it highly. Influence and attribution methods can rank training examples by their effect on an output, but a targeted search often finds the cause faster. Fix the data or reward, not the symptom.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Ablating a post-training recipe
A recipe has many parts (data sources, stage order, hyperparameters, reward mixes), and you need to know what each one earns before you can improve or trim it. Change one thing at a time against a fixed baseline, evaluate on the whole suite, and run seeds where differences are small. Ablate at a smaller scale to save compute, then confirm the important findings at full scale, because some effects reverse with model size.
Reading
- Tulu 3: recipe ablations arxiv.org
- 2 OLMo 2 Furious (the OLMo 2 report) arxiv.org
- How Abilities in LLMs are Affected by SFT Data Composition arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Model merging basics
Fine-tunes of the same base stay close enough in weight space that averaging them often works: a merged model can keep most of each one's gains at no inference cost. Task arithmetic treats each fine-tune's difference from the base as a vector you can add, scale or subtract. Merging only works between models with the same architecture and a shared starting point. Averaging checkpoints from one run is the simplest case and a common final step.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Merging specialist models
Teams often train specialists (maths, code, safety) separately and merge them into one release. Plain averaging lets the specialists' changes interfere and cancel out; TIES trims small changes and resolves sign conflicts, and DARE drops most of each change at random and rescales the rest. Treat a merge like a new checkpoint: run the full suite, compare against each specialist on its own area, and try a few merge weights.
Reading
- TIES-Merging: Resolving Interference When Merging Models arxiv.org
- Language Models are Super Mario (DARE) arxiv.org
- Arcee's MergeKit: A Toolkit for Merging LLMs arxiv.org
- MergeKit on GitHub github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Iterating in rounds
Large post-training efforts run in rounds: collect prompts, sample from the current best model, label or verify, train, evaluate, repeat. Each round's model makes the next round's data better, but it also passes on its quirks, and the reward model must be refreshed to keep up with outputs it has not seen. Keep each round's data, model and eval results, compare round over round, and watch for behaviours that grow a little every round.
Reading
- Llama 2: iterative RLHF rounds arxiv.org
- The Llama 3 Herd of Models (six rounds of post-training) arxiv.org
- Self-Rewarding Language Models arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Training and serving parity
A checkpoint that passed every eval can still ship broken if serving differs from training: a different chat template or tokenizer version, a missing stop token, another system prompt, quantisation, or new sampling defaults. Run the release evals against the deployed endpoint, not the training checkpoint, and compare a fixed set of outputs between the two. Store the template, tokenizer and generation config with the weights as one versioned artefact.
Reading
- Hugging Face Transformers: chat templates huggingface.co
- Hugging Face Transformers: quantization overview huggingface.co
- vLLM documentation docs.vllm.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Deployment and versioning
Every released checkpoint (or adapter plus the base it needs) gets an immutable version tied to its training data, config, code commit and eval results. Ship it to a small share of traffic first, compare its metrics with the current model, keep the previous version ready for instant rollback, and log the model version on every request. When something goes wrong, those records are how you find which change caused it and undo it in minutes.
Reading
- Hugging Face Hub: model cards huggingface.co
- Model Cards for Model Reporting arxiv.org
- vLLM: serving LoRA adapters docs.vllm.ai
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
-
Phase 12 · Safety and behaviour training
-
Safety training data and refusals
Safety training runs inside every round, not as a final patch. It needs prompts across the harm categories in your policy, at different levels of risk, and the response you want for each: help fully, help with care, or decline briefly and offer what you can. Hard refusals of anything sensitive are easy to train and frustrate users; teaching safe, useful completions is harder and better. Tie each category to the policy text it comes from.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Over-refusal and the helpfulness balance
A model that refuses to explain how to kill a Python process has been over-trained on surface features of harmful requests. Measure over-refusal as carefully as harm, with benign prompts that look risky, and track both rates on every checkpoint, because pushing one down usually pushes the other up. Fix it with borderline examples answered helpfully in the training data and with rewards that penalise needless refusals, not by loosening safety data wholesale.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Rule-based rewards and model feedback for safety
Collecting human labels for every safety case is slow and goes stale when the policy changes. Instead, write the policy as specific rules (refuse without judging the user, give crisis resources, do not lecture) and have a model grade responses against them, giving an RL reward or preference labels. Updating the rules updates the reward without new human data. Check the grader against human judgement on each rule, and test the rules on borderline prompts.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Training for jailbreak robustness
A model that refuses a direct harmful request may comply when the same request is wrapped in a role-play, a long preamble or an encoding. Training on adversarial prompts from red teams and automated attack methods, paired with the right response, makes those wrappers less effective. Hold out attack styles to see whether robustness generalises, re-run attacks against each new checkpoint, and pair training with classifiers at serving time for the highest-risk categories.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Instruction hierarchy and prompt injection
A deployed model reads text from the developer, the user, tools and retrieved documents, and only some of it should be obeyed. Train an explicit priority order: system instructions over user ones, and instructions found inside tool results or documents treated as data. Build examples where lower-priority text tries to override higher, with the right response, and keep examples where following the user is correct so the model does not become stubborn.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Sycophancy in the training signal
People tend to rate answers that agree with them higher, and reward models learn that, so preference tuning pushes models toward flattery and caving under pushback. Measure it directly: ask with and without a stated user opinion, or push back on a correct answer, and see what changes. Counter it with training examples where the right answer disagrees with the user, a reward term for holding a correct position, and caution with engagement signals like thumbs up.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Practise the Post-Training Engineer roadmap
306 questions, each graded on the server out of 100. Free · no card.
Other AI careers
- Agent Engineer
- AI Alignment Researcher
- AI Data Engineer
- AI Engineer
- AI Evals Engineer
- AI Governance Analyst
- AI Infrastructure Engineer
- AI Integration Engineer
- AI Product Manager
- AI Red Team Specialist
- AI Reliability Engineer
- AI Research Engineer
- AI Safety Engineer
- AI Security Engineer
- AI Solutions Architect
- AI Strategist
- Computer Vision Engineer
- Context Engineer
- Conversational AI Designer
- Forward-Deployed Engineer
- Inference Optimization Engineer
- ML Engineer
- Multimodal AI Engineer