Home Projects trl
trl

trl

by huggingface · GitHub

Train transformer language models with reinforcement learning.

View on GitHub
⭐ Stars
18.9k
🍴 Forks
2.8k
🔥 Trending
+7 today
📜 License
Apache-2.0
Commercial use OK
📅 Created
2020
🔄 Last commit
today
💻 Language
Python
trl — GitHub preview card
📈 Star history
18.9k18.8k
2026-07-122026-07-17
📄 About

Train transformer language models with reinforcement learning.

Read the full guide
Frequently asked questions

What is trl?

Train transformer language models with reinforcement learning.

Is trl open source?

trl is an open-source project. It is released under the Apache-2.0 license.

Is trl free?

Yes. trl is free and open source — you can use, modify and self-host it.

🏅 Maintainer of this project?
OpenSourceAI badge — trl

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![OpenSourceAI](https://opensourceai.tech/badge.php?tool=huggingface-trl)](https://opensourceai.tech/project/huggingface-trl.html)
More badge options →
🔗 Related projects