Best AI Utility logo
Best AI Utility
Back to Open Source

TRL

by huggingface

Train transformer language models with reinforcement learning: SFT, DPO, PPO, and GRPO.

Stars
19,688
Forks
3,124
Language
Python
Category
Training & Fine-tuning

Get the code

# Clone the repository
git clone https://github.com/huggingface/trl
View on GitHub

Frequently asked questions

What is TRL?

Train transformer language models with reinforcement learning: SFT, DPO, PPO, and GRPO.

Is TRL safe to use?

TRL is an open-source project by huggingface on GitHub. Review the source code and license before using it in production.

How do I get started with TRL?

git clone https://github.com/huggingface/trl

What language is TRL written in?

openSource.faqWhatLanguageAnswer

Related projects