adapters
A Unified Library for Parameter-Efficient and Modular Transfer Learning
What it is and what it does
Adapters is an extension library for HuggingFace Transformers that integrates parameter-efficient fine-tuning methods into transformer models. Instead of updating all model weights during training, adapters add small trainable modules (like LoRA, prefix tuning, or bottleneck adapters) that achieve competitive performance with far fewer parameters. The library provides a unified interface for training these adapters, loading pre-trained ones from AdapterHub, and composing multiple adapters together for multi-task or ensemble scenarios.
The package depends on transformers and packaging, and requires Python 3.9+ and PyTorch 2.0+. It's designed for researchers and practitioners working on NLP tasks who want efficient fine-tuning without the memory and compute costs of full model updates. You can use it to adapt existing model setups, load community-shared adapters, or combine multiple adapters in a single model using composition blocks.
Use it for:
- Fine-tune large language models on domain-specific tasks with minimal GPU memory by training only adapter weights instead of all parameters.
- Load and apply pre-trained adapters from AdapterHub to perform sentiment analysis, question classification, or other NLP tasks on models like RoBERTa or T5.
- Compose multiple task-specific adapters in parallel or sequence to handle multi-task learning or ensemble predictions in a single model.
- Experiment with different parameter-efficient methods (LoRA, prefix tuning, bottleneck adapters) on the same base model using a unified configuration interface.
- Train quantized adapters (Q-LoRA, Q-Bottleneck) for even smaller memory footprints on resource-constrained hardware.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adapters adds parameter-efficient fine-tuning methods to HuggingFace Transformers models, letting you train and compose multiple adapter modules on top of pre-trained models with minimal parameter overhead.
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It solves a real problem—efficient fine-tuning of large models—with a well-documented, unified interface. Install it if you're doing transfer learning on transformer models and want to reduce training costs and memory usage.
Install
adapters on PyPI
pip
pip install adaptersuv
uv add adapterspoetry
poetry add adaptersInstalling adapters
Before you install
Low install friction with only 2 runtime dependencies (transformers and packaging). The package is actively maintained with a recent release and no known vulnerabilities.
License in practice
Licensed under Apache (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install -U adapters
from adapters import AutoAdapterModel
from transformers import AutoTokenizer
model = AutoAdapterModel.from_pretrained("roberta-base")
tokenizer = AutoTokenizer.from_pretrained("roberta-base")
model.load_adapter("AdapterHub/roberta-base-pf-imdb", source="hf", set_active=True)
print(model(**tokenizer("This works great!", return_tensors="pt")).logits)
Requires Python 3.9+ and PyTorch 2.0+
Verify before relying
- Whether all 10+ adapter methods mentioned are fully functional in version 1.3.0
- Compatibility scope with the full range of 20+ Transformer models claimed
- Performance characteristics and memory savings compared to full model fine-tuning
Package facts
| License | Apache (permissive) |
| Python support | supports the current Python release (>=3.9.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — transformers, packaging |
| Maintenance | actively maintained — 110 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,826/month — #14,130 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: adapters-1.3.0-py3-none-any.whl
Keywords: NLP, deep, learning, transformer, pytorch, BERT, adapters, PEFT, LoRA
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
loralibloralib provides PyTorch modules that implement…
permissive · top 15,000 on PyPI
peftPEFT implements parameter-efficient fine-tuning…
permissive · top 5,000 on PyPI
fair-esmProvides pre-trained transformer protein…
permissive · top 15,000 on PyPI
xformersXFormers provides reusable, composable building…
permissive · top 5,000 on PyPI
lycoris-loraImplements parameter-efficient fine-tuning…
permissive · top 15,000 on PyPI
color-matchercolor-matcher transfers color characteristics…
copyleft · top 15,000 on PyPI
lintrunner-adaptersProvides adapter integrations for lintrunner,…
permissive · top 5,000 on PyPI
llama-index-embeddings-huggingfaceIntegrates Hugging Face embedding models with…
permissive · top 15,000 on PyPI
spacy-transformersIntegrates pretrained transformer models (BERT,…
permissive · top 15,000 on PyPI