What is 🤗 PEFT?
main🤗 PEFT (Parameter-Efficient Fine-Tuning) is a library designed to adapt large pretrained models to downstream tasks without the prohibitive cost of full fine-tuning.
Instead of updating all model parameters, PEFT methods only fine-tune a small number of additional parameters. This approach:
- Significantly decreases computational and storage costs.
- Enables training and storing large language models (LLMs) and other large-scale models on consumer hardware.
- Achieves performance comparable to fully fine-tuned models.
PEFT acts as a framework for various model adaptation methods (such as modifying weights, wrapping layers, or manipulating KV-caches) and serves as a reference implementation for many fine-tuning techniques.