Skip to content

mumtozee/PEFTforBERT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This repo showcases how PEFT can be applied to BERT. MLM was chosen as a sample task, however minimal code editing is needed to run this code for other tasks.

An example command to run PEFT for BERT:

$ CUDA_VISIBLE_DEVICES=X,Y accelerate launch peft_train.py --config-path config.yaml

Notes

  • passing a configuration is done using YAML, however parametrisation via command line arguments is also supported
  • I've tried to support all of the available PEFT methods from HuggingFace up to 10th of December 2023

About

My attempt to use parameter efficient fine-tuning for BERT MLM using HuggingFace

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages