spacy-curated-transformers
Curated transformer models for spaCy pipelines
What it is and what it does
spacy-curated-transformers is a spaCy extension that wraps the curated-transformers library to bring transformer-based NLP models into spaCy pipelines. It provides integration with spaCy's architecture system, allowing you to use pretrained models like BERT, RoBERTa, and XLM-RoBERTa as components in your NLP workflows. The package emphasizes minimal dependencies and deployment-focused features such as model distillation and quantization.
You use it by installing it alongside spaCy, then configuring transformer models in your spaCy pipeline config to power tasks like named entity recognition or text classification. It supports multi-task learning and integrates with Hugging Face Hub for model discovery. The package is maintained by Explosion AI and handles the integration between spaCy and the curated-transformers library, managing serialization, configuration, and execution of transformer models in production pipelines.
Use it for:
- Build spaCy NLP pipelines powered by BERT or RoBERTa for named entity recognition
- Deploy transformer-based models in production with spaCy's serialization and config system
- Train multi-task learning models combining transformers with spaCy components
- Use XLM-RoBERTa for multilingual NLP tasks within a spaCy pipeline
- Experiment with model distillation and quantization for deployment optimization
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates curated transformer models (ALBERT, BERT, CamemBERT, RoBERTa, XLM-RoBERTa) into spaCy pipelines via the curated-transformers library.
Yes, if you need transformer models in spaCy pipelines and want a maintained integration. The package is actively developed, has low install friction, and is MIT-licensed. It requires Python >=3.9 and substantial dependencies (torch, curated-transformers), so confirm those fit your environment. No known security vulnerabilities.
Install
spacy-curated-transformers on PyPI
pip
pip install spacy-curated-transformersuv
uv add spacy-curated-transformerspoetry
poetry add spacy-curated-transformersInstalling spacy-curated-transformers
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with last commit on 2026-03-27. Depends on torch and curated-transformers, which are substantial but standard ML dependencies.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install spacy-curated-transformers
import spacy
from spacy_curated_transformers import CuratedTransformer
nlp = spacy.load('en_core_web_sm')
# Configure transformer model in pipeline via spaCy config
Requires Python >=3.9 and torch installation; substantial disk space for transformer model weights.
Verify before relying
- Whether multi-task learning and distillation/quantization features are production-ready or experimental
- Performance characteristics and memory footprint compared to alternatives
- Specific transformer model availability and loading from Hugging Face Hub
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — curated-transformers, curated-tokenizers, fsspec, thinc, torch |
| Maintenance | actively maintained — 683 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,487,380/month — #3,846 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: spacy_curated_transformers-2.1.2-py2.py3-none-any.whl
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
curated-transformersCurated Transformers provides PyTorch…
permissive · top 5,000 on PyPI
spacyspaCy is an industrial-strength NLP library…
permissive · top 1,000 on PyPI
spacy-legacyProvides legacy registered functions and model…
permissive · top 5,000 on PyPI
spacy-transformersIntegrates pretrained transformer models (BERT,…
permissive · top 15,000 on PyPI
curated-tokenizersProvides BPE, Byte BPE, Unigram, and Wordpiece…
permissive · top 5,000 on PyPI
spacy-alignmentsAligns tokenizations between spaCy and…
permissive · top 15,000 on PyPI
pytorch-pretrained-bertProvides PyTorch implementations of BERT, GPT,…
permissive · top 15,000 on PyPI
spacy-loggersProvides logging integrations for spaCy model…
permissive · top 5,000 on PyPI
date-spacyAdds a spaCy pipeline component that identifies…
permissive · top 15,000 on PyPI
bertopicBERTopic performs topic modeling on text…
permissive · top 15,000 on PyPI