huggingface/trl
Train transformer language models with reinforcement learning.
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
5 releases in the last 90 days, the latest 2 days ago, with 465 contributors on GitHub.
Gained 9% fewer stars in the last 90 days than in the 90 days before.
Use Cases & Benefits
- Enables post-training of transformer language models using reinforcement learning and supervised fine-tuning techniques.
- Offers scalable, efficient training with support for multiple algorithms and hardware setups, integrating with Hugging Face Transformers and Accelerate.
- Use for fine-tuning large language models with reinforcement learning algorithms like PPO and DPO to improve model alignment with human preferences.
- Use for training reward models or adapters on custom datasets to optimize language model outputs for specific tasks or domains.
- Use for experimenting with cutting-edge training methods on foundation models via a simple CLI or Python API without extensive coding.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
Apache 2.0
Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.
Community files
- README: present
- Contributing guide: present
- Code of conduct: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
A comprehensive library to post-train foundation models
✨ OpenAI GPT OSS Support: TRL now fully supports fine-tuning the latest OpenAI GPT OSS models! Check out the:
TRL is a cutting-edge library designed for post-training foundation models using advanced techniques like Supervised Fine-Tuning (SFT), Proximal Policy Optimization (PPO), and Direct Preference Optimization (DPO). Built on top of the 🤗 Transformers ecosystem, TRL supports a variety of model architectures and modalities, and can be scaled-up across various hardware setups.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
3.1K+226
Open issues
326+77
Compared with peers in Backend
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| anthropics/skills | 191.0K | +4.2K | 15 | — |
| zed-industries/zed | 94.6K | +2.3K | 65 | 5 days ago |
| NationalSecurityAgency/ghidra | 99.1K | +1.9K | 64 | 18 days ago |
| DuarteSantos8/openGym | 20.6K | +1.7K | 60 | 6 days ago |
| shiyu-coder/Kronos | 47.4K | +1.4K | 16 | — |
| huggingface/trl | 19.7K | — | 65 | 2 days ago |
| Category median | 94.6K | +1.9K | 60 | — |
Also by huggingface
Other repositories from this maintainer that GStars tracks
- Python168.6K stars
transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
- Python37.3K stars
pytorch-image-models
The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, EfficientNet, NFNet, Vision Transformer (ViT), MobileNetV4, MobileNet-V3 & V2, RegNet, DPN, CSPNet, Swin Transformer, MaxViT, CoAtNet, ConvNeXt, and more
- Python34.9K stars
diffusers
🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.
- Python28.7K stars
lerobot
🤗 LeRobot: Making AI for Robotics more accessible with end-to-end learning
- Python22.1K stars
datasets
🤗 The largest hub of ready-to-use datasets for AI models with fast, easy-to-use and efficient data manipulation tools
Discover Repositories
Search across tracked repositories by name or description