Swap Fine-Tuning Methods Without Swapping Models
It unifies a dozen parameter-efficient fine-tuning methods into a single drop-in layer for HuggingFace Transformers, so you can train, swap, and compose small adapter modules instead of full models.

What it does
Adapters is an add-on to HuggingFace Transformers that injects support for over a dozen parameter-efficient fine-tuning methods—LoRA, Prefix Tuning, bottleneck adapters, and others—into more than twenty existing model architectures. Instead of copying and modifying the underlying model code, you call adapters.init(model) and attach lightweight modules that leave the base weights frozen. The library also hosts pre-trained adapter modules via AdapterHub, so you can load task-specific patches the same way you load a tokenizer.
The interesting bit
The real trick is composition: you can stack, merge, or run adapters in parallel through composition blocks like ConfigUnion and Parallel, even mixing methods (say, Prefix Tuning plus bottleneck adapters) inside the same forward pass. It treats adapters like LEGO bricks rather than monolithic checkpoints, which is where the “modular” promise actually pays off.
Key highlights
- Supports 10+ distinct adapter methods—including LoRA, QLoRA, (IA)³, DoRA, ReFT, and Prompt Tuning—under one API.
- Compatible with 20+ PyTorch Transformer models from the HuggingFace ecosystem without forking them.
- Provides quantized training variants (Q-LoRA, Q-Bottleneck Adapters, Q-PrefixTuning) for low-memory fine-tuning.
- Includes adapter merging via task arithmetics and runtime composition blocks for multi-adapter inference.
- Backward-compatible with the legacy
adapter-transformersecosystem and pre-trained adapters hosted on AdapterHub.
Caveats
- The library is explicitly built for NLP tasks; support for vision or multimodal models is not mentioned.
- It currently supports Python 3.9+ and PyTorch 2.0+, which may leave older pipelines behind.
- The README does not provide benchmark comparisons against standalone implementations of methods like LoRA, so performance claims are left as an exercise to the user.
Verdict
If you are already living in the HuggingFace ecosystem and want to experiment with parameter-efficient fine-tuning without maintaining a zoo of separate libraries, this is a sensible consolidation layer. If you need a single-method, highly optimized training stack or work outside NLP, it may be overkill or simply the wrong fit.
Frequently asked
- What is adapter-hub/adapters?
- It unifies a dozen parameter-efficient fine-tuning methods into a single drop-in layer for HuggingFace Transformers, so you can train, swap, and compose small adapter modules instead of full models.
- Is adapters open source?
- Yes — adapter-hub/adapters is open source, released under the Apache-2.0 license.
- What language is adapters written in?
- adapter-hub/adapters is primarily written in Python.
- How popular is adapters?
- adapter-hub/adapters has 2.8k stars on GitHub.
- Where can I find adapters?
- adapter-hub/adapters is on GitHub at https://github.com/adapter-hub/adapters.