
Docs for TRL, Hugging Face's library for fine-tuning and aligning language models (SFT, DPO, GRPO and more).
“The practical reference for post-training: each trainer comes with an explanation of the method and runnable examples.”
The standard open-source reference for fine-tuning and aligning LLMs.
Explains each training method and its options
Clear but assumes ML basics
Official Hugging Face docs
Example scripts for each trainer
Major post-training methods
Tracks new methods quickly
Per-trainer pages
Free, open source
The standard fine-tuning library
Reviewed by the Hive editors on 2 Dec 2026 from 1 page read. High confidence.
Nobody has tagged this on X yet. Reply to a post about it and tag @resourcehivebot to be the first.
Shared by @ChandanKT24 on X · Report a problem