# TRL — card for AI agents

Hugging Face library for fine-tuning language models with reinforcement learning.

Category: Prompts, structured output and evals · PyPI package `trl` · latest version 1.17.1 (checked 2026-11-01)
Install: `pip install trl`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 53.0 (#1651 of all tools, 19 of 78 in its category)
- Used in 1 public projects set up for AI coding agents (0.0%)
- Downloads last week: 521,703 (as of 2026-11-24), -4.3% over 4 weeks
- GitHub stars: 19,805 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
Hugging Face Transformers 96.4%, PEFT 87.3%, PyTorch 85.5%, Accelerate 81.8%, Hugging Face Datasets 74.5%, OpenAI Python Library 72.7%

## Links
- AgentGid page: https://agentgid.com/tools/trl/
- Homepage: https://github.com/huggingface/trl
- Repository: https://github.com/huggingface/trl

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
