OSS TanbouSign in with GitHub

reduce fine-tuning memory and checkpoint storage by training only a small set of parameters with LoRA and other PEFT methods

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
21,751
Primary language
Python
License
Apache-2.0
Repository last updated
Oct 2, 2026
On this page

Overview

PEFT adapts large pretrained models without updating every model parameter. LoRA and other adapter or prompt-tuning methods train a small parameter set, reducing memory and storage costs while integrating with Transformers, Diffusers, Accelerate, and the broader Hugging Face stack.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Attach LoRA and other adapters while limiting trainable parameters

Configurations such as LoraConfig combine with get_peft_model to inject adapters into selected base-model modules so only a small fraction of parameters need training.

Sources: [1]

Store and switch adapter checkpoints separately from the base model

Fine-tuned adapters can be saved independently of the complete base model, loaded with PeftModel, and switched through Transformers integrations.

Sources: [1]

Integrate with Transformers, Diffusers, Accelerate, and related tooling

PEFT supports language-model workflows as well as diffusion models and distributed training or inference through Hugging Face ecosystem integrations.

Sources: [1]

Best fit

Fits repeated model adaptation where full fine-tuning is too expensive

It is useful when teams want to experiment across tasks or datasets without creating and storing a complete copy of a large base model for every fine-tuned variant.

Sources: [1]

Before adoption

Version 0.21.2 requires Python 3.10+ and PyTorch 1.13+

Package metadata for v0.21.2 requires Python >=3.10.0 and torch>=1.13.0 and depends on Transformers, Accelerate, Safetensors, and Hugging Face Hub. Check compatibility with the selected base model as well.

Sources: [3][4]

Version 0.21.2 fixes encoder-decoder compatibility with Transformers 5.18+

The v0.21.2 patch release fixes an issue that prevented encoder-decoder models from working with Transformers 5.18.0 and later, so affected environments should update the PEFT pin together with Transformers.

Sources: [2]

Official sources

  1. [1]PEFT v0.21.2 README(2026-10-04)
  2. [2]PEFT v0.21.2 release(2026-10-04)
  3. [3]PEFT v0.21.2 package metadata(2026-10-04)
  4. [4]PEFT v0.21.2 version metadata(2026-10-04)
  5. [5]PEFT Apache 2.0 license(2026-10-04)
Supplemental curator note

PEFT itself is Apache-2.0, but the base model and training dataset have separate licenses and terms. Check the upstream model conditions when distributing adapters.

Try it in 3 steps

  1. 1

    Create a virtual environment for PEFT 0.21.2

    Use Python 3.10+ and pin PEFT to the stable 0.21.2 release.

    python3 -m venv peft-demo && . peft-demo/bin/activate && python -m pip install --upgrade pip && python -m pip install 'peft==0.21.2'
  2. 2

    Verify the PEFT version

    Check the loaded library version without downloading a model.

    . peft-demo/bin/activate && python -c 'import peft; print(peft.__version__)'
  3. 3

    Create a LoRA configuration without a model

    Inspect the LoRA adapter configuration API without a GPU or base-model download.

    . peft-demo/bin/activate && python -c 'from peft import LoraConfig, TaskType; c=LoraConfig(r=8,lora_alpha=16,task_type=TaskType.CAUSAL_LM); print(c.peft_type, c.r, c.lora_alpha)'
Check the official README

Growth

Growth trends · Last 30 days

21,751 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
68
Open PRs
51

Development activity is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • adapter
  • diffusion
  • llm
  • parameter-efficient-learning
  • python
  • pytorch
  • transformers
  • lora
  • fine-tuning
  • peft
Stars
21,751
Forks
2,556
Watchers
113
Open issues
60
Contributors
358
Owner type
Organization
Primary language
Python
License
Apache-2.0
Repository last updated
Oct 2, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?