What problem does it solve?
Fine-tuning large language models is often too expensive and memory-intensive to do with full-parameter training, especially on limited GPUs.
Core Features & Use Cases
- Parameter-efficient fine-tuning (PEFT): Train only a small fraction of model parameters using adapter methods such as LoRA, QLoRA, and other PEFT variants.
- Memory-optimized strategies: Use LoRA for general efficiency and QLoRA (LoRA + 4-bit quantization via bitsandbytes) to fit very large models (e.g., 70B) on constrained VRAM.
- Adapter workflows: Support multi-adapter training and serving (multiple task-specific adapters, runtime switching, and optional merging for deployment).
- Use Case: Adapt a 7B–70B instruction model to your domain (or multiple domains) while keeping training costs low by training <1% of parameters via adapters.
Quick Start
Use the peft-fine-tuning skill to fine-tune your base LLM with LoRA or QLoRA by configuring target modules, loading your dataset, and training an adapter with HuggingFace Transformers and PEFT.