Training methods
Choose the method that matches the feedback you can provide:
| Method | Use when you have | Data |
|---|---|---|
Demonstrations of correct answers. |
Chat examples or prepared token rows. |
|
A better and a worse answer to each prompt. |
Preference pairs. |
|
A way to score generated answers. |
Text chat examples. |
Choose supervised training
Start with SFT for classification, extraction and instruction following.
Choose preference training
Use DPO to refine answer preferences, including after SFT.
Choose reinforcement training
Use GRPO or GSPO for verifiable answers such as code, SQL or a final numeric value.