Five libraries, one pipeline
The open-source fine-tuning ecosystem centers on five Hugging Face libraries that compose into one clean pipeline.
| Library | Purpose | 2025–2026 version |
|---|---|---|
| transformers | Model loading, tokenization, inference. | 4.x |
| datasets | Data loading, processing, formatting. | 3.x |
| peft | LoRA, QLoRA, DoRA, and other PEFT methods. | 0.17+ |
| trl | Training loops (SFTTrainer, DPOTrainer, GRPOTrainer). | 1.0 |
| accelerate | Multi-GPU, distributed training. | 1.x |
TRL v1.0 (March 2026) consolidated SFTTrainer, DPOTrainer, GRPOTrainer, and more into a stable API. Key change: TrainingArguments and SFTConfig were unified — SFTConfig now extends TrainingArguments with all SFT-specific parameters in one place.