Skip to content

Code for paper "UniPELT: A Unified Framework for Parameter-Efficient Language Model Tuning", ACL 2022

Notifications You must be signed in to change notification settings

morningmoni/UniPELT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniPELT

This repo provides the code for paper "UniPELT: A Unified Framework for Parameter-Efficient Language Model Tuning", ACL 2022.

We support multiple Parameter-Efficient Language model Tuning (PELT) methods, including Prefix-tuning, Adapter, LoRA, BitFit, and any combination of them on BERT.

How to run

Use run_glue.py as the entry file.

To use Prefix-tuning, set --add_enc_prefix True

To use Adapter, set --train_adapter

To use LoRA, set --add_lora True

To use BitFit, set --tune_bias True

The codebase is based on transformers (adapter-transformers). See here for more details of the training arguments. Please also refer to the following repos: Prefix-tuning, LoRA.

Reference

If you use the code for your work, please consider citing our paper.

@inproceedings{mao-etal-2022-unipelt,
  title={UniPELT: A Unified Framework for Parameter-Efficient Language Model Tuning},
  author={Mao, Yuning and Mathias, Lambert and Hou, Rui and Almahairi, Amjad and Ma, Hao and Han, Jiawei and Yih, Wen-tau and Khabsa, Madian},
  journal={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics},
  year={2022}
}

License

The majority of UniPELT is licensed under CC-BY-NC, however portions of the project are available under separate license terms: transformers (adapter-transformers) is licensed under the Apache 2.0 license and LoRA is licensed under the MIT License.

About

Code for paper "UniPELT: A Unified Framework for Parameter-Efficient Language Model Tuning", ACL 2022

Topics

Resources

Stars

Watchers

Forks

Languages