Only some base models support Reinforcement Fine-Tuning.
WHEN TO USE RFT
Use RFT when all of the following are true:- The task is objectively gradable. Given the same prompt, response, criteria, and optional reference answer, careful reviewers should reach the same verdict.
- The base model sometimes succeeds. GRPO needs score differences among responses to the same prompt. Aim for prompts the base model passes roughly 20% to 80% of the time.
- The base model already produces the required output type. For example, it can already emit well-formed tool calls, even if it often chooses the wrong tool or arguments.
- Several responses can be correct, or you do not have good responses to imitate. Examples include equivalent SQL queries, valid tool calls, math solutions, and compliance with explicit format or policy rules.
- You have good target responses or need the model to match a particular response style. Use supervised fine-tuning (SFT).
- You have preferred and rejected response pairs. Use direct preference optimization.
- You want a smaller model to learn a hard reasoning task from a stronger model. Use on-policy distillation.
- The base model never succeeds at the task. Use SFT or on-policy distillation to teach the missing behavior instead (multiphase training is coming soon!).
PREREQUISITES
Before you configure a run, you need:- A paid plan.
- A base model that supports RFT.
- Separate training and validation conversation datasets (assistant response is not required).
- A standard LLM judge evaluator that meets the reward judge requirements.
- (Optional) Held-out test dataset for evaluation of tuned model and/or for calibrating the reward judge.
PREPARE THE DATA
Each row contains the conversation before the response you want the model to generate. An assistant response is not required.metadata.ground_truth or as the final assistant message. metadata.ground_truth takes precedence when both are present.
DESIGN THE REWARD JUDGE
The judge defines the training objective. The reward evaluator must:- Be a standard LLM judge. Rubric judges, classification evaluators, and extraction evaluators cannot be used as rewards.
- Include scoring instructions and valid labels with scores.
- Use a hosted judge model with a configured provider API key.
CONTROL WHAT THE JUDGE SEES
The judge always receives the prompt turns and one sampled response. Configure the following inputs only when the task needs them:- If correctness depends on a reference answer, add
ground_truthto the judge’s data fields and refer to it in the judge prompt. - Enable
Conversation system messagewhen instructions or source material are in the system message. It is excluded by default. - Add other metadata fields only after confirming that every relevant dataset row provides them.
CHOOSE USEFUL SCORES
Use labels that distinguish typical responses to the same prompt:- Use two labels, such as
CorrectandIncorrect, when the base model produces a mix of clear passes and failures. - Use three to five graded labels when responses are close in quality. For example:
Excellent1.0,Good0.66,Partial0.33, andPoor0.0. - Write a clear rule for each label so the judge knows when to use it. This is especially important if semi-subjective scales like
GoodandPartialare used as they are hard to apply consistently without one. Describe what the response does, for example “uses the correct method but makes an arithmetic error,” instead of “partially correct.” - Give a response the lowest score when it breaks a hard requirement. Empty responses already receive the lowest score.
CLOSE REWARD LOOPHOLES
The model learns whatever behavior the judge rewards, including unintended shortcuts. Check for:- Unnecessary length or answers that are too short to support their conclusion.
- Hedging or refusing instead of completing the task.
- Repeating the prompt or source material.
- Correct formatting around incorrect content.
- Claims that the response is correct or complete.
- Incomplete responses truncated at the maximum completion length.
TEST BEFORE TRAINING
Test and refine the judge before starting an RFT run.- Run the base model on a small, representative set of prompts, and label a sample of its responses yourself.
- Score those responses with each candidate judge model, using the same judge prompt. Pick the model that agrees most with your labels, and weigh cost and latency too, since the judge scores every sampled response during training.
- Review the results, revise the judge prompt, and re-run until these checks pass:
- Score spread: Scores do not cluster at the minimum or maximum. Otherwise, adjust the prompts or scoring levels.
- Human agreement: The judge’s verdicts match your labels. Review examples from each label to see where they differ.
- Robustness: Edge cases and deliberately flawed responses score low. Include answers that are wrong but long, confident, or well formatted, along with the loopholes listed above. If they score well, the model will learn to exploit that weakness.
- Parse rate: The judge always returns one of its configured labels. Repeated parse failures can stop an RFT job.
CALIBRATE THE REWARD JUDGE
When practical, calibrate the reward judge against a stronger judge from another provider. Before RFT, have both judges score the same base-model responses using the same criteria. The difference between their mean scores establishes a baseline for how much stricter one judge is than the other. Inspect individual disagreements and revise the reward criteria when the external judge exposes a blind spot. After RFT, repeat the comparison on the same held-out prompts. If the gap between the judges grows because the reward judge’s score improves while the external judge’s score stays flat or falls, the model may be exploiting the reward judge rather than improving at the task. Inspect the disagreements, revise the reward criteria, retest the reward judge, and retrain. Without a pre-RFT baseline, a post-RFT score gap is harder to distinguish from a normal difference in judge strictness.CONFIGURE TRAINING
- On the Models page, click
Train New Model. - Set
Training MethodtoReinforcement Fine-Tuning. - Select a base model, training dataset, and validation dataset.
- Select the tested LLM judge under
Reward evaluator. - Choose FFT or LoRA, then review the optional settings.
- Launch the training job.
TRAINING SETTINGS
Epochs: Number of passes over the training dataset. The presets use one epoch.Learning rate: Initial learning rate after warmup. Use the preset unless you have evidence from a previous run that it needs adjustment.
GRPO SETTINGS
MONITOR TRAINING
The model resource stores RFT curves inmetrics.training_metrics and metrics.validation_metrics.
Use the training curves to decide what to inspect next: