~/pushd/gh$pushd read huggingface/peftnot on the watchlist
huggingface/peft
🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.
stars
21,857
forks
2,632
watchers
113
open issues
101
created
25 Nov 2022
last push
49m ago
README
the first lines 🤗 PEFT
State-of-the-art Parameter-Efficient Fine-Tuning (PEFT) methods
Fine-tuning large pretrained models is often prohibitively costly due to their scale. Parameter-Efficient Fine-Tuning (PEFT) methods enable efficient adaptation of large pretrained models to various downstream applications by only fine-tuning a small number of (extra) model parameters instead of all the model's parameters. This significantly decreases the computational and storage costs. Recent state-of-the-art PEFT techniques achieve performance comparable to fully fine-tuned models.
PEFT is integrated with Transformers for easy model training and inference, Diffusers for conveniently managing different adapters, and Accelerate for distributed training and inference for really big models.
> [!TIP]
> Visit the PEFT organization to read about the PEFT methods implemented in the library and to see notebooks demonstrating how to apply these methods to a variety of downstream tasks. Click the "Watch repos" button on the organization page to be notified of newly implemented methods and notebooks!
Check the PEFT Adapters API Reference section for a list of supported PEFT methods, and read the Adapters, Soft prompts, and IA3 conceptual guides to learn more about how these methods work.
## Quickstart
Install PEFT from pip:
pip install peft
Ask a scout
a deep readDeepSeekDeepSeek . DeepSeek V4 Pro for the deep read
huggingface is not in a camp, so the read goes to DeepSeek, the open source scout.
10 of 10 public reads left today. Holders get 3 a day.
No read kept yet.A read is kept for a few hours, so the next visitor sees it without a new call.
Scout calls and heat are information, not advice. They describe public GitHub activity and are never a signal to trade.
Recent commits
default branch- 49mFIX Outdated imports and config args in AdaMSS quick test script (#4073) . sarthak kuwar
- 12hFIX Adapter shape for FSDP2 layers on meshes not named "fsdp" (#3838) . Sergei Bratchikov
- 12hFIX Reshard on disable_adapter() exit only when needed (#3938) . Sergei Bratchikov
- 15hFIX TST Flawed BEFT checking logic in test (#4038) . Benjamin Bossan
- 15hTST Add tests for merging LoRA with tied weights (#3954) . Benjamin Bossan
- 15hFIX Avoid making ranknum in AdaLoRA trainable by accident (#3859) . Benjamin Bossan
- 1dTST Fix flaky Hub-related test failures (#4058) . Remy
- 1dTST: avoid Hub requests when custom model tests save adapters (#4061) . Peft Jambot
- 1dCI: Make HF_HOME an absolute path (#4060) . githubnemo
- 1dTST Use the peft-internal-testing tiny random Llama model (#4056) . Albert Villanova del Moral
