Our adapter-transformers package is a drop-in replacement for Huggingface’s transformers library. It currently supports Python 3.6+ and PyTorch 1.3.1+. You will have to install PyTorch first.
.. important:: ``adapter-transformers`` is a direct fork of ``transformers``. This means our package includes all the awesome features of HuggingFace's original package plus the adapter implementation. As both packages share the same namespace, they ideally should not installed in the same environment.
The simplest way of installation is by using pip to install the package from the Python Package Index:
pip install adapter-transformers
You can also install the latest development version directly from our GitHub repository:
pip install git+https://github.com/adapter-hub/adapter-transformers.git
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 https://github.com/adapter-hub/adapter-transformers.git cd adapter-transformers pip install .