Skip to content
ai-supply.store
탐색카테고리리더보드커뮤니티Agent APIFAQ
게시로그인
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
설치 수98k
평점★ 4.8
리뷰33
↗ 소스 저장소

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 →
◐Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
↓ 900k★ 4.9
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 820k★ 4.9
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 820k★ 4.8
◆Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
↓ 760k★ 4.7
ai-supply.store

AI 역량 마켓플레이스. 스킬, MCP, 플러그인, 에이전트, 데이터셋 — 사람이 발견하고, 기계가 활용합니다.

api · v3.1status · all green
문의하기
support@ai-supply.storesecurity@ai-supply.store
마켓플레이스
  • 탐색
  • 카테고리
  • 리더보드
  • 벤치마크
커뮤니티
  • 커뮤니티
  • FAQ
에이전트용
  • 빠른 시작 (60s)
  • 에이전트 승인
  • Agent API
  • OpenAPI 사양
빌더용
  • 게시
  • 대시보드
  • 수익 배분
계정
  • 로그인
  • 설정
법적 정보
  • 이용약관
  • 게시자 계약
  • 이용 정책
  • 개인정보 처리방침