language-arithmetic
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.3%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: mklimasz
- License: apache-2.0
- Language: Python
- Default Branch: main
- Size: 79.5 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
adapter-transformers
A friendly fork of HuggingFace's Transformers, adding Adapters to PyTorch language models
adapter-transformers is an extension of HuggingFace's Transformers library, integrating adapters into state-of-the-art language models by incorporating AdapterHub, a central repository for pre-trained adapter modules.
💡 Important: This library can be used as a drop-in replacement for HuggingFace Transformers and regularly synchronizes new upstream changes. Thus, most files in this repository are direct copies from the HuggingFace Transformers source, modified only with changes required for the adapter implementations.
Installation
adapter-transformers currently supports Python 3.8+ and PyTorch 1.12.1+.
After installing PyTorch, you can install adapter-transformers from PyPI ...
pip install -U adapter-transformers
... or from source by cloning the repository:
git clone https://github.com/adapter-hub/adapter-transformers.git
cd adapter-transformers
pip install .
Getting Started
HuggingFace's great documentation on getting started with Transformers can be found here. adapter-transformers is fully compatible with Transformers.
To get started with adapters, refer to these locations:
- Colab notebook tutorials, a series notebooks providing an introduction to all the main concepts of (adapter-)transformers and AdapterHub
- https://docs.adapterhub.ml, our documentation on training and using adapters with adapter-transformers
- https://adapterhub.ml to explore available pre-trained adapter modules and share your own adapters
- Examples folder of this repository containing HuggingFace's example training scripts, many adapted for training adapters
Implemented Methods
Currently, adapter-transformers integrates all architectures and methods listed below:
| Method | Paper(s) | Quick Links |
| --- | --- | --- |
| Bottleneck adapters | Houlsby et al. (2019)
Bapna and Firat (2019) | Quickstart, Notebook |
| AdapterFusion | Pfeiffer et al. (2021) | Docs: Training, Notebook |
| MAD-X,
Invertible adapters | Pfeiffer et al. (2020) | Notebook |
| AdapterDrop | Rücklé et al. (2021) | Notebook |
| MAD-X 2.0,
Embedding training | Pfeiffer et al. (2021) | Docs: Embeddings, Notebook |
| Prefix Tuning | Li and Liang (2021) | Docs |
| Parallel adapters,
Mix-and-Match adapters | He et al. (2021) | Docs |
| Compacter | Mahabadi et al. (2021) | Docs |
| LoRA | Hu et al. (2021) | Docs |
| (IA)^3 | Liu et al. (2022) | Docs |
| UniPELT | Mao et al. (2022) | Docs |
Supported Models
We currently support the PyTorch versions of all models listed on the Model Overview page in our documentation.
Citation
If you use this library for your work, please consider citing our paper AdapterHub: A Framework for Adapting Transformers:
@inproceedings{pfeiffer2020AdapterHub,
title={AdapterHub: A Framework for Adapting Transformers},
author={Pfeiffer, Jonas and
R{\"u}ckl{\'e}, Andreas and
Poth, Clifton and
Kamath, Aishwarya and
Vuli{\'c}, Ivan and
Ruder, Sebastian and
Cho, Kyunghyun and
Gurevych, Iryna},
booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations},
pages={46--54},
year={2020}
}
Owner
- Name: Mateusz Klimaszewski
- Login: mklimasz
- Kind: user
- Location: Warsaw
- Website: https://mklimasz.github.io/
- Repositories: 3
- Profile: https://github.com/mklimasz
PhD Student @ Warsaw University of Technology
Citation (CITATION.cff)
cff-version: "1.2.0"
date-released: 2020-10
message: "If you use this software, please cite it as below."
title: "AdapterHub: A Framework for Adapting Transformers"
url: "https://github.com/Adapter-Hub/adapter-transformers"
authors:
- family-names: Pfeiffer
given-names: Jonas
- family-names: Rücklé
given-names: Andreas
- family-names: Poth
given-names: Clifton
- family-names: Kamath
given-names: Aishwarya
- family-names: Vulić
given-names: Ivan
- family-names: Ruder
given-names: Sebastian
- family-names: Cho
given-names: Kyunghyun
- family-names: Gurevych
given-names: Iryna
preferred-citation:
type: inproceedings
authors:
- family-names: Pfeiffer
given-names: Jonas
- family-names: Rücklé
given-names: Andreas
- family-names: Poth
given-names: Clifton
- family-names: Kamath
given-names: Aishwarya
- family-names: Vulić
given-names: Ivan
- family-names: Ruder
given-names: Sebastian
- family-names: Cho
given-names: Kyunghyun
- family-names: Gurevych
given-names: Iryna
booktitle: "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations"
month: 10
start: 46
end: 54
title: "AdapterHub: A Framework for Adapting Transformers"
year: 2020
publisher: "Association for Computational Linguistics"
url: "https://aclanthology.org/2020.emnlp-demos.7"
address: "Online"
GitHub Events
Total
- Push event: 1
- Create event: 1
Last Year
- Push event: 1
- Create event: 1
Dependencies
- actions/checkout v3 composite
- actions/setup-python v2 composite
- peaceiris/actions-gh-pages v3 composite
- z0al/dependent-issues v1 composite
- actions/stale v6 composite
- actions/cache v3 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- nvidia/cuda 11.6.2-cudnn8-devel-ubuntu20.04 build
- ubuntu 18.04 build
- python 3.8 build
- nvidia/cuda 10.2-cudnn7-devel-ubuntu18.04 build
- $BASE_DOCKER_IMAGE latest build
- ubuntu 18.04 build
- nvcr.io/nvidia/pytorch 22.04-py3 build
- nvcr.io/nvidia/pytorch 21.03-py3 build
- nvidia/cuda 11.6.2-cudnn8-devel-ubuntu20.04 build
- google/cloud-sdk slim build
- ubuntu 18.04 build
- nvidia/cuda 11.2.2-cudnn8-devel-ubuntu20.04 build
- accelerate main test
- conllu * test
- datasets >=1.13.3 test
- elasticsearch * test
- evaluate >=0.2.0 test
- faiss-cpu * test
- fire * test
- git-python ==1.0.3 test
- jiwer * test
- librosa * test
- matplotlib * test
- nltk * test
- pandas * test
- protobuf * test
- psutil * test
- pytest * test
- rouge-score * test
- sacrebleu >=1.4.12 test
- scikit-learn * test
- sentencepiece * test
- seqeval * test
- streamlit * test
- tensorboard * test
- tensorflow_datasets * test
- torchvision * test
- datasets >=1.14.0
- evaluate *
- librosa *
- torch >=1.6
- torchaudio *
- datasets >=1.8.0
- torch >=1.5.0
- torchvision >=0.6.0
- conllu *
- datasets >=1.8.0
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.17.0
- evaluate *
- torch >=1.5.0
- torchvision >=0.6.0
- datasets >=1.8.0
- torch >=1.5.0
- torchvision >=0.6.0
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- protobuf *
- scikit-learn *
- sentencepiece *
- torch >=1.3
- accelerate >=0.12.0
- evaluate *
- protobuf *
- sentencepiece *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- torch >=1.3.0
- datasets >=2.0.0
- evaluate *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.12.0
- librosa *
- torch >=1.5
- torchaudio *
- datasets >=1.18.0
- evaluate *
- jiwer *
- librosa *
- torch >=1.5
- torchaudio *
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- nltk *
- protobuf *
- py7zr *
- rouge-score *
- sentencepiece *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- protobuf *
- scikit-learn *
- scipy *
- sentencepiece *
- torch >=1.3
- protobuf *
- sentencepiece *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- seqeval *
- torch >=1.3
- accelerate >=0.12.0
- datasets >=1.8.0
- evaluate *
- protobuf *
- py7zr *
- sacrebleu >=1.4.12
- sentencepiece *
- torch >=1.3
- deps *
- datasets ==1.8.0 test