GithubHelp home page GithubHelp logo

davidliu012 / easy-adapter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from virginiakm1988/easy-adapter

0.0 0.0 0.0 116 KB

Code for AdapterBias: Parameter-efficient Token-dependent Representation Shift for Adapters in NLP tasks

Shell 0.18% Python 14.47% Jupyter Notebook 85.34%

easy-adapter's Introduction

Easy-Adapter

Code for AdapterBias: Parameter-efficient Token-dependent Representation Shift for Adapters in NLP Tasks

Version License: MIT Hugging Face Transformers

arXiv link: https://arxiv.org/abs/2205.00305 Findings of NAACL 2022

This code demonstrates how to fine-tune a BERT model based on the Hugging Face Transformers library using adapters.

Fine-tuning with adapters on the GLUE benchmark

bash run_glue_adapter.sh

Fine-tuning with adapters on IMdB task

python run_imdb.py

If you use this code in your research, please cite the following papers:

@article{fu2022adapterbias,
  title={AdapterBias: Parameter-efficient Token-dependent Representation Shift for Adapters in NLP Tasks},
  author={Fu, Chin-Lun and Chen, Zih-Ching and Lee, Yun-Ru and Lee, Hung-yi},
  journal={arXiv preprint arXiv:2205.00305},
  year={2022}
}

@inproceedings{chen2023exploring,
  title={Exploring efficient-tuning methods in self-supervised speech models},
  author={Chen, Zih-Ching and Fu, Chin-Lun and Liu, Chih-Ying and Li, Shang-Wen Daniel and Lee, Hung-yi},
  booktitle={2022 IEEE Spoken Language Technology Workshop (SLT)},
  pages={1120--1127},
  year={2023},
  organization={IEEE}
}

This code demonstrates a practical example of using adapters in fine-tuning a BERT model. The code can be adapted to other pre-trained models and NLP tasks.

easy-adapter's People

Contributors

virginiakm1988 avatar huckiyang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.