Skip to content

Releases: explosion/spacy-transformers

v1.2.5

Choose a tag to compare

@adrianeboyd adrianeboyd released this 12 Jun 11:30
d3b532a
  • Extend support for transformers up to v4.30.x.

v1.2.4

Choose a tag to compare

@adrianeboyd adrianeboyd released this 22 May 17:47
e3d1369
  • Extend support for transformers up to v4.29.x.

v1.2.3

Choose a tag to compare

@adrianeboyd adrianeboyd released this 17 Apr 13:53
768ebbc
  • Extend support for transformers up to v4.28.x.
  • Implement coalesced pooling over entire batches (#368).

v1.2.2

Choose a tag to compare

@adrianeboyd adrianeboyd released this 18 Feb 07:34
467ffa5
  • Transformer.predict: do not broadcast to listeners, requires spacy>=3.5.0 (#345)
  • Correct and clarify the handling of empty/zero-length Docs during training and inference (#365)
  • Remove superfluous datatype and device conversions, requires torch>=1.8.0 (#369)
  • Fix memory leak in offsets mapping alignment for fast tokenizers (#373)

v1.2.1

Choose a tag to compare

@adrianeboyd adrianeboyd released this 26 Jan 16:50
9e40fc9
  • Extend support for transformers up to v4.26.x.

v1.2.0

Choose a tag to compare

@adrianeboyd adrianeboyd released this 13 Jan 07:46
8b587a4
  • For fast tokenizers, use the offset mapping provided by the tokenizer (#338).

    Using the offset mapping instead of the heuristic alignment from spacy-alignments resolves unexpected and missing alignments such as those discussed in explosion/spaCy#6563, explosion/spaCy#10794 and explosion/spaCy#12023.

    ⚠️ Slow and fast tokenizers will no longer give identical results due to potential differences in the alignments between transformer tokens and spaCy tokens. We recommend retraining all models with fast tokenizers for use with spacy-transformers v1.2.

  • Serialize the tokenizer use_fast setting (#339).

v1.1.9

Choose a tag to compare

@adrianeboyd adrianeboyd released this 19 Dec 11:20
417f2b2
  • Extend support for transformers up to v4.25.x.
  • Add support for Python 3.11 (currently limited to linux due to supported platforms for PyTorch v1.13.x).

v1.1.8

Choose a tag to compare

@adrianeboyd adrianeboyd released this 12 Aug 13:23
3928429
  • Extend support for transformers up to v4.21.x.
  • Support MPS device in HFShim (#328).
  • Track seen docs during alignment to improve speed (#337).
  • Don't require examples in Transformer.initialize (#341).

v1.1.7

Choose a tag to compare

@adrianeboyd adrianeboyd released this 25 Aug 07:03
cab0607
  • Extend support for transformers up to v4.20.x.
  • Convert all transformer outputs to XP arrays at once (#330).
  • Support alternate model loaders in HFShim and HFWrapper (#332).

v1.1.6

Choose a tag to compare

@adrianeboyd adrianeboyd released this 02 Jun 14:01
7e5da6d
  • Extend support for transformers up to v4.19.x.
  • Fix issue #324: Skip backprop for transformer if not available, for example if the transformer is frozen.