TRL (Transformer Reinforcement Learning) is a Hugging Face library that facilitates training transformer language models using reinforcement learning techniques. It's particularly useful for tasks like aligning LLMs with human feedback (RLHF) or optimizing models for specific objectives defined by a reward function.