训练与微调Apache-2.0Python

PEFT

Hugging Face’s parameter-efficient fine-tuning: LoRA, QLoRA, IA3 and more.

Star 数
21.9K
Fork 数
2.7K
未关闭 Issue
127
最近提交
2026-11-27

数据来自 GitHub API · 更新于 2026-11-30

PEFT 是什么?

PEFT fine-tunes large models by training only a small number of extra parameters with methods such as LoRA, DoRA, prefix tuning and IA3. It integrates with Transformers, Diffusers, TRL and Accelerate and is the basis of most LoRA workflows.

主要功能

  • LoRA, DoRA, AdaLoRA, IA3 and more
  • QLoRA with bitsandbytes
  • Works with Transformers and Diffusers
  • Adapter merging and hot-swapping

系统要求

平台
Windows · macOS · Linux
Python
3.9+

如何安装 PEFT

根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。

pip

  1. 1
    Install the library.
    pip install peft

优势

  • Standard LoRA implementation
  • Huge ecosystem

不足

  • Library only — you write the training loop or use TRL

PEFT 替代品对比

软件Star 数许可证平台显存
PEFT

Hugging Face’s parameter-efficient fine-tuning: LoRA, QLoRA, IA3 and more.

21.9KApache-2.0—
TRL

Hugging Face’s library for post-training LLMs: SFT, DPO, GRPO.

19.9KApache-2.0—
Unsloth

Fine-tune LLMs 2× faster with up to 70% less memory.

80.5KApache-2.03 GB+ depending on model size
LLaMA-Factory

Unified fine-tuning for 100+ LLMs and VLMs with a no-code web UI.

76.3KApache-2.0—
Axolotl

Config-driven LLM fine-tuning for many models and techniques.

12.8KApache-2.0—
Kohya’s GUI

GUI for training LoRA, DreamBooth and fine-tunes for SD, SDXL and FLUX.

12.7KApache-2.08 GB+ for SD1.5 LoRA; 12–24 GB for SDXL/FLUX

常见问题

PEFT 免费吗?

是的——PEFT 是开源软件,采用 Apache-2.0 许可证。商用前请确认软件及模型权重的许可条款。

PEFT 支持 Windows、Mac 和 Linux 吗?

PEFT 支持:Windows, macOS, Linux。

如何安装 PEFT?

1. Install the library.

PEFT 有哪些好的替代品?

常见替代品包括 TRL, Unsloth, LLaMA-Factory, Axolotl,详见本页对比表。