Skip to content
Back to skills

Peft

ASecurity

"Use PEFT for parameter-efficient fine-tuning adapters, LoRA and

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
developmentbackend

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill peft --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Peft?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Peft
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-peft/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-peft)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: peft
description: "Use PEFT for parameter-efficient fine-tuning adapters, LoRA and
  quantized workflows, prompt and soft methods, specialized tuners,
  save/load/merge operations, training integrations, and PEFT repository
  development."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# PEFT

Use this skill when a task names Hugging Face PEFT, `peft`, `PeftModel`, `PeftConfig`, `get_peft_model`, LoRA/QLoRA, prompt tuning, adapter checkpoints, adapter merging, PEFT training integrations, or changes to the PEFT repository.

## Route By Task

- **Core adapter setup**: use `sub-skills/adapter-core/SKILL.md` for `PeftConfig`, `TaskType`, `PeftType`, `get_peft_model`, adapter lifecycle, trainable status, custom model targeting, and low-level injection.
- **LoRA and quantization**: use `sub-skills/lora-and-quantization/SKILL.md` for `LoraConfig`, QLoRA, DoRA, rsLoRA, PiSSA, CorDA, LoftQ, QALoRA, trainable tokens, and quantized-base compatibility.
- **Prompt and soft methods**: use `sub-skills/prompt-and-soft-methods/SKILL.md` for prompt tuning, prefix tuning, P-tuning, multitask prompt tuning, CPT, adaption prompt, cartridge, and trainable-token prompt workflows.
- **Specialized tuners**: use `sub-skills/specialized-tuners/SKILL.md` for IA3, BOFT, OFT, LoHa, LoKr, VeRA/PVeRA, VBLoRA, XLora, FourierFT, HRA/HiRA/SHiRA, RandLoRA, and other non-LoRA/non-prompt method families.
- **Save, load, merge, and deploy**: use `sub-skills/save-load-merge/SKILL.md` for adapter checkpoint layout, `save_pretrained`, `from_pretrained`, `AutoPeftModel*`, `merge_and_unload`, hotswap, mixed adapters, Hub/local loading, and conversion.
- **Training integrations**: use `sub-skills/training-and-integrations/SKILL.md` for Transformers Trainer, Accelerate, FSDP, DeepSpeed, TRL SFT, Diffusers examples, memory-efficient training, and `torch.compile` caveats.
- **PEFT repository development**: use `sub-skills/repo-development/SKILL.md` for contribution policy, new tuner registration, test selection, style/quality commands, docs, and AI-assisted PR disclosure rules.

## Fast Start

1. Verify imports with `sub-skills/adapter-core/scripts/check_peft_env.py` in an environment that has `peft`, `torch`, `transformers`, and `accelerate`.
2. Decide the adapter family before writing training code. LoRA and quantized workflows have different constraints from prompt-learning and specialized tuners.
3. Keep base-model loading, adapter construction, training launcher settings, and checkpoint save/merge decisions separate so each can be reviewed.
4. Avoid downloading large models in smoke tests. Use config construction, helper scripts, or tiny custom `torch.nn.Module` checks when possible.

## References

- `references/workflow-overview.md` gives a root-level decision map across adapter lifecycle stages.
- `references/troubleshooting.md` covers cross-cutting install/import, optional backend, target-module, checkpoint, merge, and training failures.
- `references/repo-provenance.md` records the source revision and extraction evidence.

Files in this skill

  • SKILL.md3 KB
  • references/repo-provenance.md434 B
  • references/repo-routing-metadata.json331 B
  • references/troubleshooting.md1.3 KB
  • references/workflow-overview.md1.2 KB
  • sub-skills/adapter-core/SKILL.md3.7 KB
  • sub-skills/adapter-core/references/api-reference.md7.9 KB
  • sub-skills/adapter-core/references/troubleshooting.md8 KB
  • sub-skills/adapter-core/references/workflows.md7.2 KB
  • sub-skills/adapter-core/scripts/check_peft_env.py5.8 KB
  • sub-skills/lora-and-quantization/SKILL.md9.6 KB
  • sub-skills/lora-and-quantization/references/lora-api.md8.6 KB
  • sub-skills/lora-and-quantization/references/quantization-workflows.md6.5 KB
  • sub-skills/lora-and-quantization/references/troubleshooting.md5.7 KB
  • sub-skills/lora-and-quantization/scripts/lora_config_sanity.py11.8 KB
  • sub-skills/prompt-and-soft-methods/SKILL.md4.3 KB
  • sub-skills/prompt-and-soft-methods/references/methods.md6.9 KB
  • sub-skills/prompt-and-soft-methods/references/troubleshooting.md4.9 KB
  • sub-skills/prompt-and-soft-methods/references/workflows.md4.4 KB
  • sub-skills/prompt-and-soft-methods/scripts/prompt_config_sanity.py7.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…