Papers › AdapterHub: A Framework for Adapting Transformers

AdapterHub: A Framework for Adapting Transformers

15 Jul 2020EMNLP 2020 11arXiv:2007.07779archive 2025-07-28

Jonas Pfeiffer, Andreas Rücklé, Clifton Poth, Aishwarya Kamath, Ivan Vulić, Sebastian Ruder, Kyunghyun Cho, Iryna Gurevych

The current modus operandi in NLP involves downloading and fine-tuning pre-trained models consisting of millions or billions of parameters. Storing and sharing such large trained models is expensive, slow, and time-consuming, which impedes progress towards more general and versatile NLP methods that learn from and for many tasks. Adapters -- small learnt bottleneck layers inserted within each layer of a pre-trained model -- ameliorate this issue by avoiding full fine-tuning of the entire model. However, sharing and integrating adapter layers is not straightforward. We propose AdapterHub, a framework that allows dynamic "stitching-in" of pre-trained adapters for different tasks and languages. The framework, built on top of the popular HuggingFace Transformers library, enables extremely easy and quick adaptations of state-of-the-art pre-trained models (e.g., BERT, RoBERTa, XLM-R) across tasks and languages. Downloading, sharing, and training adapters is as seamless as possible using minimal changes to the training scripts and a specialized infrastructure. Our framework enables scalable and easy access to sharing of task-specific models, particularly in low-resource scenarios. AdapterHub includes all recent adapter architectures and can be found at https://AdapterHub.ml.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2007.07779")

Code

Syntology Ran 5 of 15 code samples harvested from 4 repositories linked to this paper; 10 have no recorded run. Of those that ran: 5 ran with no contract checked.

By repository: official repository: 1 sample from 1 repository, 0 ran; community (archive-listed): 14 samples from 3 repositories, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Adapter-Hub/Hub officialmentioned on GitHubApache-2.0 report
Adapter-Hub/adapter-transformers officialmentioned on GitHubpytorchApache-2.0 report
adapter-hub/adapter-transformers-legacy mentioned on GitHubjaxApache-2.0 report
adapter-hub/adapters mentioned on GitHubpytorchApache-2.0 report
adapter-hub/playground mentioned on GitHubApache-2.0 report
dair-iitd/zgul mentioned on GitHubjax report
ffaisal93/adapt_lang_phylogeny mentioned on GitHubjaxApache-2.0 report
mklimasz/language-arithmetic mentioned on GitHubjaxApache-2.0 report
parovicm/badx mentioned on GitHubjaxApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 5 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran
10unverified

Licence: 12 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

create_adapter_card Adapter-Hub/Hub/migrate_to_hf.py official repository unverified Apache-2.0 (permissive) · 797e184e2ce0e007 · report
Activation_Function_Class parovicm/badx/src/transformers/adapters/modeling.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 0354fab5ada9f9e0 · report
Adapter parovicm/badx/src/transformers/adapters/modeling.py community (archive-listed) ran Apache-2.0 (permissive) · d8b9b81138d5b50d · report
check_number_comma mklimasz/language-arithmetic/src/transformers/convert_slow_tokenizer.py community (archive-listed) ran Apache-2.0 recorded; this copy not marked cleared · pointer only · a727df5fd2f5599a · report
ensure_valid_input mklimasz/language-arithmetic/src/transformers/convert_graph_to_onnx.py community (archive-listed) ran Apache-2.0 recorded; this copy not marked cleared · pointer only · b220e701be05a184 · report
generate_identified_filename mklimasz/language-arithmetic/src/transformers/convert_graph_to_onnx.py community (archive-listed) ran Apache-2.0 recorded; this copy not marked cleared · pointer only · 7efe3db5c9e2f94d · report
convert_slow_tokenizer mklimasz/language-arithmetic/src/transformers/convert_slow_tokenizer.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 9d93436a1b858d0e · report
gelu_fast adapter-hub/adapter-transformers-legacy/src/transformers/activations_tf.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 37a5eed2dbd663ca · report
get_architectures_from_config_class mklimasz/language-arithmetic/utils/create_dummy_models.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · a00c425fa9fa3aed · report
get_config_class_from_processor_class mklimasz/language-arithmetic/utils/create_dummy_models.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 3d999b95009c7537 · report
get_configuration_file mklimasz/language-arithmetic/src/transformers/configuration_utils.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · dd3166a87bc972ff · report
get_processor_types_from_config_class mklimasz/language-arithmetic/utils/create_dummy_models.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 36f3ecdc3e086edb · report
infer_shapes mklimasz/language-arithmetic/src/transformers/convert_graph_to_onnx.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 0da835817b8a57bc · report
mish adapter-hub/adapter-transformers-legacy/src/transformers/activations_tf.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · cc8c8c3ebf0c343f · report
quick_gelu adapter-hub/adapter-transformers-legacy/src/transformers/activations_tf.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · e2d56cb91f999bef · report

Tasks

XLM-R

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionRoBERTaSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections