// devtools · huggingface/peft

peft

peft — проект с открытым исходным кодом из категории «Инструменты разработчика» от huggingface (huggingface/peft на GitHub). У него 21 769 звёзд на GitHub и 2 560 форков, он распространяется по лицензии Apache-2.0 и последний раз обновлялся на GitHub 8 октября 2026.

Fine-tune huge models on small hardware with LoRA and other efficient methods

★ 21,8 тыс. звёзд⑂ 2,6 тыс. форковApache-2.0обновлено окт. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
huggingface/peft
Звёзды GitHub
21 769
Форки
2 560
Лицензия
Apache-2.0
Последнее обновление на GitHub
8 октября 2026
Тип страницы
Полное руководство по установке
Официальный сайт
Official site
// как это работает

Как это работает

  1. Choose a base model and method

    Pick the model to adapt and a method such as LoRA that fits your memory budget.

  2. Get PEFT

    Install the peft package from PyPI - cloning is only needed to work on the library itself.

  3. Configure the adapter

    Wrap your model with a PEFT config (for example LoraConfig) using the README quickstart.

  4. Train your first adapter

    Train on your dataset, check the trainable-parameter count, and save the small adapter.

// возможности

Почему его любят

LoRA and more

Implements LoRA and a family of parameter-efficient methods behind one consistent API.

Huge memory savings

The README's example trains about 0.12% of a 3B model's parameters with LoRA instead of the full model.

Transformers integration

Use PEFT models directly through the Transformers integration for training and inference.

Diffusers support

Apply parameter-efficient tuning to diffusion models as well as language models.

Accelerate and TRL ready

Works with Accelerate for distributed/offloaded training and with TRL for RLHF-style workflows.

Quantization friendly

Combines with quantization so large models can be adapted on modest GPUs.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Get the source code from GitHub and enter the project directory.

    git clone https://github.com/huggingface/peft.git
    cd peft
  2. Install PEFT

    Install from PyPI alongside Transformers and Accelerate.

    pip install peft
  3. Wrap a model with LoRA

    The README quickstart loads a model, applies a LoraConfig, and prints the trainable parameter share.

    from peft import LoraConfig, get_peft_model
    # load a model, then:
    # model = get_peft_model(model, LoraConfig(...)) - see README quickstart
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains this project?

It is maintained by Hugging Face and contributors on GitHub.

Is it free to use?

Yes - PEFT is Apache-2.0 licensed and free to use. Base models you adapt carry their own licenses.

Does it need a paid API key?

No API key is needed: training and inference run locally on your hardware with open models.

How does it compare to alternatives?

Compared with full fine-tuning, PEFT trains a fraction of the parameters (often well under 1%), cutting compute and storage; compared with prompt-only methods, it actually updates model behavior.

How do I get started?

Run pip install peft and follow the README Quickstart to wrap a model with LoRA and print its trainable parameters.

// продолжить изучение

Похожие инструменты

Инструменты разработчика

ms-swift

Fine-tune and deploy 600+ LLMs and 300+ multimodal models with PEFT or full-parameter training.

★ 15,8 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

LlamaFactory

Unified, efficient fine-tuning of 100+ LLMs and VLMs with a CLI and Web UI — ACL 2024

★ 75,4 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

little-coder

A coding-agent harness optimized for smaller local LLMs — small models, serious coding work

★ 2,7 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

inspector

MCPJam Inspector: chat with, inspect, debug, and evaluate MCP servers across clients and models.

★ 2,2 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

llm-course

A free course to get into large language models, with roadmaps and runnable Colab notebooks

★ 83,3 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

datasets

Hugging Face's library for loading and processing datasets for AI models in one line

★ 22,0 тыс. звёздApache-2.0
Смотреть руководство →
// альтернативы

Альтернативы: Инструменты разработчика

Другие проекты из категории «Инструменты разработчика» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если peft вам не подходит.

// ещё в категории devtools

Больше проектов: Инструменты разработчика

Соседние проекты из категории «Инструменты разработчика» в каталоге, ближайшие по числу звёзд к peft — продолжайте изучать полку по обе стороны от него.

Получить peft

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.