Skip to content

TRL

Open source

Hugging Face · Data & ML platforms

Post-training library: SFT, DPO, GRPO and RL for LLMs.

Overview

Hugging Face’s Transformer Reinforcement Learning library with trainers for supervised fine-tuning, preference optimisation and RL with verifiable rewards — the toolkit behind many open reasoning models.

  • SFT / DPO / GRPO trainers
  • PEFT integration
  • vLLM generation