Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
PublishSign in
catalog / Language & NLP / PEFT
⊜Fine-tuneLanguage & NLPFree

PEFT

Hugging Face library for parameter-efficient fine-tuning — LoRA, QLoRA, IA3, and more. Fine-tune billion-parameter models on a single consumer GPU.

@ai-supply
Installs98k
Rating★ 4.8
Reviews33
Install (free) to download the source.↗ Source repository

PEFT — Parameter-Efficient Fine-Tuning

PEFT is the Hugging Face library for fine-tuning large language models without updating all parameters. Using techniques like LoRA, QLoRA, and IA3, you can adapt a 7B+ parameter model on a single consumer GPU in hours while matching or exceeding full fine-tuning quality on downstream tasks.

Key features

  • LoRA — inject low-rank adapter matrices; only train ~0.1% of parameters
  • QLoRA — quantize base model to 4-bit, then add LoRA adapters — fine-tune 70B models on 48 GB VRAM
  • Prompt tuning & prefix tuning — learn a soft prompt prefix instead of touching weights
  • IA3 — learns rescaling vectors; even more parameter-efficient than LoRA
  • Merge & unload — merge adapters back into base weights for zero-latency inference
  • Seamless HF ecosystem — works with transformers, trl, accelerate, and bitsandbytes

Quick start

npx ai-supply add peft-parameter-efficient-finetuning

# Or install directly
pip install peft transformers torch
from transformers import AutoModelForCausalLM
from peft import LoraConfig, get_peft_model

base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")

lora_config = LoraConfig(
    r=16,
    lora_alpha=32,
    target_modules=["q_proj", "v_proj"],
    lora_dropout=0.05,
    task_type="CAUSAL_LM"
)

model = get_peft_model(base_model, lora_config)
model.print_trainable_parameters()
# trainable params: 4,194,304 || all params: 3,756,523,520 || trainable%: 0.1117

Curated mirror of the open-source PEFT project (Apache-2.0). Install upstream from the repository.

More from @ai-supply

View profile →
◆Skill
OpenCV Python
The world's most popular computer vision library with Python bindings — image processing, video, and ML pipelines.
↓ 500k★ 4.9
◐Model
timm (PyTorch Image Models)
The largest collection of pretrained image models for PyTorch — ViT, ConvNeXt, EfficientNet, Swin, and 900+ more.
↓ 490k★ 4.9
⌬Workflow
Apache Airflow
Apache-2.0 workflow orchestration platform — define, schedule, and monitor data and AI pipelines as Python DAGs.
↓ 395k★ 4.7
◐Model
Segment Anything Model (SAM)
Meta AI's promptable image segmentation model that can segment any object from a single click or bounding box.
↓ 320k★ 4.9
ai-supply.store

The marketplace for AI capabilities. Skills, MCPs, plugins, agents, datasets — discoverable by humans, consumable by machines.

api · v3.1status · all green
Marketplace
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
  • Revenue share
Account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy