P
huggingface/peft★ 21,946 · Python
Python/PyTorch adapters for fine-tuning large models without updating base weights
Apache-2.0 · Commercial Friendlyv0.22.0
Side-by-side 2026 comparison in LLMs & Inference: huggingface/peft leads in total GitHub adoption (★ 21.9k), while huggingface/trl shows stronger 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
Python/PyTorch adapters for fine-tuning large models without updating base weights
Transformers-native post-training for fine-tuning, preference alignment, and RL
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | huggingface/peft | huggingface/trl |
|---|---|---|
| Total GitHub Stars | ★ 21,946 | ★ 19,899 |
| 24h / 7d Velocity | +4 / +32 | +6 / +54 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 97/100 | A+ · 100/100 |
| Deployment Signals | GPU | CLI · GPU |
| Primary Language | Python | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated today | Updated today |
| Latest Release | v0.22.0 | v1.19.0 |
| Best For | Teams adapting a shared base model to multiple tasks under a training-memory or checkpoint-storage budget, then loading the resulting adapters in a Hugging Face workflow | Teams already using Transformers that need to compare supervised tuning, preference alignment, or reward-driven training on their own datasets and GPUs |
add_adapter, load_adapter, and set_adapter; PEFT directly exposes merging for supported adapters.pip install peftpip install trlSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy