executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
training-and-integrationsUse PEFT with Transformers Trainer, Accelerate, FSDP, DeepSpeed, TRL SFT, Diffusers training examples, memory-efficient training, torch.compile, and backend-specific training caveats.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about fitting PEFT into a training workflow rather than choosing adapter method parameters. It covers Trainer, Seq2SeqTrainer, SFTTrainer, raw Accelerate, FSDP, DeepSpeed, Diffusers DreamBooth/ControlNet-style scripts, memory-reduction choices, quantized training backends, and adapting PEFT example workflows safely.
accelerate launch, FSDP, DeepSpeed, or multi-GPU SFT.Trainer, SFTTrainer, custom training loops, or Diffusers pipelines.torch.compile, quantized loading, CPU/GPU offload, or gradient checkpointing is safe for a PEFT workflow.LoraConfig, PeftConfig, get_peft_model, adapter lifecycle, target module discovery, and modules_to_save: use ../adapter-core/SKILL.md.../lora-and-quantization/SKILL.md.../prompt-and-soft-methods/SKILL.md.../specialized-tuners/SKILL.md.../save-load-merge/SKILL.md.Run the bundled no-training checklist builder from this sub-skill directory:
python scripts/build_training_checklist.py --workflow trainer --backend single-gpu
python scripts/build_training_checklist.py --workflow trainer --backend fsdp --quantized
python scripts/build_training_checklist.py --workflow diffusers --backend deepspeed
Read references/training-recipes.md for PEFT placement in Trainer, SFTTrainer, Accelerate, and Diffusers-style scripts.
Read references/distributed-and-backends.md before changing FSDP, DeepSpeed, quantization, offload, or torch.compile settings.
Read references/troubleshooting.md when failures mention FP16 gradient unscale, gradient checkpointing, optional packages, FSDP/DeepSpeed save behavior, stale examples, or backend-specific dtype limitations.
Trainer, pass a PeftModel as model, or use a trainer integration such as TRL SFTTrainer(peft_config=...) when that trainer is responsible for wrapping.Accelerate, build the PEFT model before accelerator.prepare(...); after preparation, save adapters with the unwrapped model on the main process.peft.utils.other.fsdp_auto_wrap_policy, keep fsdp_use_orig_params: false when memory savings matter, and switch to a full state dict before final adapter save when using trainer-managed FSDP.accelerate config and training arguments, keep gradient accumulation consistent across both, and use trainer/accelerator save helpers rather than rank-local saves.lora-and-quantization, but keep integration checks here: installed optional backend, prepare_model_for_kbit_training, compatible gradient checkpointing mode, and compatible distributed backend.transformers, accelerate, trl, diffusers, bitsandbytes, and torch versions when adapting.references/training-recipes.md: framework-specific recipes for Trainer, Accelerate, TRL SFT, Diffusers training, memory-efficient training, and torch.compile placement.references/distributed-and-backends.md: FSDP, DeepSpeed, quantization, offload, precision, and backend compatibility guidance.references/troubleshooting.md: diagnosis paths for stale examples, dtype unscale errors, checkpointing/offload issues, optional packages, distributed saves, and compile limitations.scripts/build_training_checklist.py: parser-only checklist generator for trainer, accelerate, and diffusers workflows across single-gpu, fsdp, deepspeed, and cpu backends.