The mechanism
The first training, on the internet, is called pretraining. It gives the model language and general knowledge. Everything you do to the model after that is post-training. That is the part this library is for. There are two families of post-training, and you will use both.
SFT teaches what a good reply looks like. RL teaches the model to tell
its own good replies from its bad ones, which is how it learns things
nobody wrote an example for. Both need the same two ingredients: rows to
learn from, and a score that says which rows are good. Making those two
things well, and proving they worked, is the whole job.
A prompt edit and a training run are not rivals. Edit the prompt when
the fix is a fact the model did not have. Train when the fix is a habit:
the model has the facts and still does the wrong thing.
Run it
Where it comes from
- Ouyang, L. et al. Training Language Models to Follow Instructions with Human Feedback. NeurIPS, 2022. arXiv:2203.02155. The SFT-then-RL recipe most chat models follow.
- Lambert, N. Reinforcement Learning from Human Feedback. arXiv:2504.12501, 2025. Chapters Instruction Fine-Tuning and Reinforcement Learning.
- Lambert, N. et al. Tülu 3: Pushing Frontiers in Open Language Model Post-Training. arXiv:2411.15124, 2024. A full open post-training run, SFT then preference tuning then RL.