{
 "schema_version": 1,
 "generated": "2026-10-31",
 "repo": "huggingface/peft",
 "name": "peft",
 "owner": "huggingface",
 "slug": "huggingface-peft",
 "github": "https://github.com/huggingface/peft",
 "what": "PEFT is Hugging Face's library of parameter-efficient fine-tuning methods such as LoRA. Instead of training all of a model's weights, it trains a small adapter, often well under 1% of parameters, which cuts GPU memory and storage while keeping performance close to full fine-tuning. It integrates with Transformers, Diffusers, Accelerate and TRL, and combines with quantization for training on consumer GPUs.",
 "why": "22k stars, talked about in 2 AI sources we track",
 "language": "Python",
 "requirements": [
  "Python with PyTorch and Transformers",
  "A GPU with enough memory for the base model (the README shows a 3B model on far less memory with LoRA)",
  "A dataset for your task"
 ],
 "audience_note": "ML engineers and hobbyists who want to adapt open models to their own data on a single GPU.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Software and DevOps",
 "url": "https://dedupedai.com/use-cases/huggingface-peft/",
 "use_case_count": 3,
 "use_cases": [
  {
   "id": "huggingface-peft--fine-tune-a-small-llm-with-lora",
   "title": "Fine-tune a small LLM with LoRA on one GPU",
   "best": true,
   "url": "https://dedupedai.com/use-cases/huggingface-peft/fine-tune-a-small-llm-with-lora/",
   "json": "https://dedupedai.com/use-cases/u/huggingface-peft/fine-tune-a-small-llm-with-lora.json"
  },
  {
   "id": "huggingface-peft--swap-task-adapters-on-one-base-model",
   "title": "Serve several task adapters from one base model",
   "best": false,
   "url": "https://dedupedai.com/use-cases/huggingface-peft/swap-task-adapters-on-one-base-model/",
   "json": "https://dedupedai.com/use-cases/u/huggingface-peft/swap-task-adapters-on-one-base-model.json"
  },
  {
   "id": "huggingface-peft--train-a-custom-stable-diffusion-style-with-lora",
   "title": "Train a custom Stable Diffusion style with LoRA",
   "best": false,
   "url": "https://dedupedai.com/use-cases/huggingface-peft/train-a-custom-stable-diffusion-style-with-lora/",
   "json": "https://dedupedai.com/use-cases/u/huggingface-peft/train-a-custom-stable-diffusion-style-with-lora.json"
  }
 ],
 "disclaimer": "Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk."
}
