11st of 126 in Training and fine-tuning

peft

Python library for LoRA and other parameter-efficient fine-tuning methods

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
21.9k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 35 weeks+1,272
25 Mar 2026: 20,660 stars1 Apr 2026: 20,698 stars8 Apr 2026: 20,732 stars15 Apr 2026: 20,782 stars22 Apr 2026: 20,825 stars29 Apr 2026: 20,866 stars6 May 2026: 20,921 stars13 May 2026: 20,963 stars20 May 2026: 21,025 stars27 May 2026: 21,058 stars3 Jun 2026: 21,093 stars10 Jun 2026: 21,134 stars17 Jun 2026: 21,157 stars24 Jun 2026: 21,196 stars1 Jul 2026: 21,239 stars8 Jul 2026: 21,269 stars15 Jul 2026: 21,302 stars22 Jul 2026: 21,340 stars29 Jul 2026: 21,374 stars5 Aug 2026: 21,419 stars12 Aug 2026: 21,462 stars19 Aug 2026: 21,498 stars26 Aug 2026: 21,537 stars2 Sept 2026: 21,566 stars9 Sept 2026: 21,596 stars16 Sept 2026: 21,638 stars23 Sept 2026: 21,674 stars30 Sept 2026: 21,701 stars7 Oct 2026: 21,730 stars14 Oct 2026: 21,756 stars21 Oct 2026: 21,799 stars28 Oct 2026: 21,837 stars4 Nov 2026: 21,860 stars11 Nov 2026: 21,881 stars18 Nov 2026: 21,908 stars25 Nov 2026: 21,932 stars

20,660 on 25 Mar 202621,932 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

PEFT wraps a pretrained model with adapter methods such as LoRA, soft prompts and IA3 through get_peft_model, so only a small set of extra parameters is trained. Adapters are saved as small checkpoints (19MB versus 11GB for T0_3B in the README) and reloaded with PeftModel.from_pretrained. It integrates with Transformers, Diffusers, Accelerate and TRL, and combines with quantization for QLoRA-style training.

Who it is for: ML engineers fine-tuning large models on limited GPU memory

Strengths

  • Adapter checkpoints are a few MB instead of GBs, per the T0_3B and Stable Diffusion examples
  • LoRA trains bigscience/mt0-xxl (12B) in 56GB GPU where full fine-tuning runs out of memory
  • Integrates with Transformers, Diffusers, Accelerate and TRL; installs with pip
  • Combines with quantization, e.g. QLoRA on Llama-2-7b with a 16GB GPU

Weaknesses

  • Library only: no training UI, you write the loop or use Trainer or TRL
  • Transformers integration lacks some PEFT features, such as merging adapters into the base model
  • Models not officially supported need manual target-module configuration
  • lora-t0-3b scored 0.863 versus 0.892 for Flan-T5 in the README's RAFT table

What it needs

  • GPU optional
  • Docker
  • Needs PyTorch, Transformers
  • Models: LoRA, Soft prompts, IA3, Transformers models, Stable Diffusion

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Head to head

Also in Training and fine-tuning

See all 126
Also in Training and fine-tuning
RankProjectScore
2trlPython library for post-training LLMs with SFT, DPO, GRPO and KTO19.9k starsApache-2.091 out of 100
3megatron-lmNVIDIA's library for training large transformer models across many GPUs18.6k starscustom license89 out of 100
#4unslothDesktop and web app to run and fine-tune local models Live demo ↗ (opens in a new tab)80.5k starsApache-2.088 out of 100
#5deepspeedPyTorch library for distributed training of very large models with ZeRO43.4k starsApache-2.088 out of 100
#6axolotlYAML-driven framework for fine-tuning and post-training LLMs Live demo ↗ (opens in a new tab)12.8k stars+123 (+1.0%) in 30 daysApache-2.088 out of 100