Training methods

Choose the method that matches the feedback you can provide:

Method Use when you have Data

Supervised fine-tuning (SFT)

Demonstrations of correct answers.

Chat examples or prepared token rows.

Preference optimization (DPO)

A better and a worse answer to each prompt.

Preference pairs.

Reinforcement learning (GRPO and GSPO)

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.