Adapter Transformers
Last updated
Last updated
adapter-transformers
is a library that extends 🌍 transformers
by allowing to integrate, train and use Adapters and other efficient fine-tuning methods. The library is fully compatible with 🌍 transformers
. Adapters are small learnt layers inserted within each layer of a pre-trained model. You can learn more about this in the .
You can find over a hundred adapter-transformer
models by filtering at the left of the . Some adapter models can be found in the Adapter Hub . Models from both sources are then aggregated in the .
For a full guide on loading pre-trained adapters, we recommend checking out the .
As a brief summary, once you load a model with the usual *Model
classes from 🌍transformers
, you can use the load_adapter
method to load and activate the Adapter (remember adapter-transformers
extends 🌍transformers
.).
Copied
You can also use list_adapters
to find all Adapter Models programmatically
Copied
If you want to see how to load a specific model, you can click Use in Adapter Transformers
and you will be given a working snippet that you can load it!
You can share your Adapter by using the push_adapter_to_hub
method from a model that already contains an adapter.
Copied
This command creates a repository with an automatically generated model card and all necessary metadata.
For a full guide on sharing models with adapter-transformers
, we recommend checking out the .
Adapter Transformers .
Adapter Transformers .
Integration with Hub .