Releases: explosion/spacy-transformers
Releases · explosion/spacy-transformers
v1.0.0rc0
🌙 This release is a pre-release and requires spaCy v3 (nightly).
✨ New features and improvements
- Rewrite library from scratch for spaCy v3.0.
Transformer
component for easy pipeline integration.TransformerListener
to share transformer weights between components.- Built-in registered functions that are available in spaCy if
spacy-transformers
is installed in the same environment.
📖 Documentation
- Embeddings, Transformers and Transfer Learning: How to use transformers in spaCy
- Training Pipelines and Models:
Train and update components on your own data and integrate custom models - Layers and Model Architectures:
Power spaCy components with custom neural networks Transformer
: Pipeline component API reference- Transformer architectures: Architectures and registered functions
v0.6.2: Bug fix for Tok2Vec speed
- Fix issue #204: Store model_type in tok2vec config to fix speed degradation
v0.6.1: Updates for spaCy v2.3 and transformers AutoConfig
⚠️ This release requires downloading new models.
- Update
spacy-transformers
for spaCy v2.3 - Update and extend supported
transformers
versions to>=2.4.0,<2.9.0
- Use
transformers.AutoConfig
to support loading pretrained models from https://huggingface.co/models - #123: Fix alignment algorithm using
pytokenizations
Thanks to @tamuhey for the pull request!
v0.5.3: Bug fixes for truncation
Bug fixes related to alignment and truncation:
Enhancement:
- #162: Let nlp.update handle Doc type inputs
Thanks to @ZhuoruLin for the pull requests and helping us debug issues related to batching and truncation!
v0.6.0 Update to transformers v2.5.0
Update to newer version of transformers
.
This library is being rewritten for spaCy v3, in order to improve its flexibility and performance and to make it easier to stay up to date with new transformer models. See here for details: #173
v0.5.2: Bug fixes to alignment
Fix various alignment and preprocessing bugs.
v0.5.1
v0.5.0
⚠️ This release requires downloading new models. Also note the new model names that specifytrf
(transformers) instead ofpytt
(PyTorch transformers).
- Rename package from
spacy-pytorch-transformers
tospacy-transformers
. - Update to
spacy>=2.2.0
. - Upgrade to latest
transformers
. - Improve code and repo organization.
v0.4.0
- Fix serialization.
- Update
pytorch-transformers
to support DistilBERT. - Add pre-packed DistilBERT model.