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 repositorygit clone https://github.com/huggingface/trl
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
Unsloth
unslothaiFine-tune and run LLMs and diffusion models 2x faster with far less memory.
79.2k7.4k
LLaMA-Factory
hiyougaUnified efficient fine-tuning of 100+ LLMs and VLMs with a no-code web UI.
75.9k9.4k
DeepSpeed
microsoftDeep learning optimization library that makes distributed training and inference easy and efficient.
43.3k5.1k
