2022-11-30 19:10:05 +05:30
2022-11-25 12:55:35 +05:30
2022-11-25 12:55:35 +05:30
2022-11-25 09:21:10 +05:30
2022-11-25 12:55:35 +05:30
2022-11-25 12:55:35 +05:30
2022-11-25 12:55:35 +05:30
2022-11-25 12:07:08 +05:30
2022-11-25 12:55:35 +05:30
2022-11-30 14:51:26 +05:30

🤗 PET

Parameter-Efficient Tuning. Intergrated with 🤗 Accelerate to scale seamlessly to large models using PyTorch FSDP.

Supported methods:

  1. LoRA
  2. Prefix Tuning
  3. P-Tuning
  4. Prompt Tuning

Models support matrix

Sequence Classification

Model LoRA Prefix Tuning P-Tuning Prompt Tuning
BERT ✅ ✅ ✅ ✅
RoBERTa ✅ ✅ ✅ ✅
GPT-2 ✅ ✅ ✅ ✅
Bloom ✅ ✅ ✅ ✅
OPT ✅ ✅ ✅ ✅
GPT-Neo ✅ ✅ ✅ ✅
GPT-J ✅ ✅ ✅ ✅
Deberta ✅
Deberta-v2 ✅

Causal Language Modeling

Model LoRA Prefix Tuning P-Tuning Prompt Tuning
GPT-2 ✅ ✅ ✅ ✅
Bloom ✅ ✅ ✅ ✅
OPT ✅ ✅ ✅ ✅
GPT-Neo ✅ ✅ ✅ ✅
GPT-J ✅ ✅ ✅ ✅

Conditional Generation

Model LoRA Prefix Tuning P-Tuning Prompt Tuning
T5 ✅ ✅ ✅ ✅
BART ✅ ✅ ✅ ✅

Caveats:

  1. Doesn't work currently with DeeSpeed ZeRO Stage-3. Extending support with DeeSpeed ZeRO Stage-3 is in backlog.
S
Description
🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.
Readme Apache-2.0
4.6 MiB
Languages
Python 99.8%
Makefile 0.2%