LabscoMCP early access ↗
Orchestra-Research avatar✓ Official

fine-tuning-with-trl

Local tool required★ 13k on GitHub
part of orchestra-research/ai-research-skillsby orchestra-research

Teaches a model which answers people prefer — show it good examples, train a scorer on pairs of better-and-worse answers, then let the model practise against that scorer, alone or as the whole chain.

WHEN TO USE

SCOPE

USE FOR

  • Run supervised fine-tuning on prompt-completion pairs to teach a base model to follow instructions.
  • Train a reward model from chosen-versus-rejected preference pairs.
  • Align a model directly on preference data with DPO, skipping a separate reward model.
  • Run online reinforcement learning with a custom reward function using GRPO.
  • Run the full RLHF pipeline — SFT, reward model, then PPO — end to end.

NOT FOR

  • For basic fine-tuning without any reinforcement learning, use the HuggingFace Trainer instead.
  • For YAML-based training configuration, use Axolotl instead.
  • For fast LoRA training, use Unsloth instead.
  • For educational, minimal fine-tuning, use LitGPT instead.