Skip to content

Implementaion of experiment for applying PCGrad method on robeta-based model & multi NLP tasks

Notifications You must be signed in to change notification settings

han0ah/pcgrad-transformers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcgrad-transformers

Implementaion of experiment for applying PCGrad method on robeta-based model & multi NLP tasks. Refer to https://han0ahblog.tistory.com/2 for details.

Note

pcgrad.py is copy of https://github.com/WeiChengTseng/Pytorch-PCGrad/blob/master/pcgrad.py

Environment

python 3.10
pytorch==1.13.1
transformers==4.25.1

Setting

Task

Shared/Core PLM Model

Run

python train.py # for baseline
python train_pcgrad.py # with pcgrad

Performance

Validation Loss

baseline +pcgrad
PAWS-KR 0.4793 0.4071
KLUE-NLI 0.4432 0.4365

Validation Accuracy

baseline +pcgrad
PAWS-KR 0.8030 0.8325
KLUE-NLI 0.8486 0.8520

Reference

About

Implementaion of experiment for applying PCGrad method on robeta-based model & multi NLP tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages