Our adapter-transformers package is a drop-in replacement for Huggingface’s transformers library. It currently supports Python 3.6+ and PyTorch 1.1.0+. You will have to install PyTorch first.

Using pip

From PyPI

The simplest way of installation is by using pip to install the package from the Python Package Index:

pip install adapter-transformers

From GitHub

You can also install the latest development version directly from our GitHub repository:

pip install git+

From repository

Alternatively, you can clone the repository first and install the package from source. This allows you to run the included example scripts directly:

git clone
cd adapter-transformers
pip install .