Spacy Transformers Versions Save

🛸 Use pretrained transformers like BERT, XLNet and GPT-2 in spaCy

v1.1.1

2 years ago

🔴 Bug fixes

  • Fix #309: Fix parameter ordering and defaults for new parameters in TransformerModel architectures.
  • Fix #310: Fix config and model issues when replacing listeners.

👥 Contributors

@adrianeboyd, @svlandeg

v1.1.0

2 years ago

✨ New features and improvements

  • Refactor and improve transformer serialization for better support of inline transformer components and replacing listeners.
  • Provide the transformer model output as ModelOutput instead of tuples in TransformerData.model_output and FullTransformerBatch.model_output. For backwards compatibility, the tuple format remains available under TransformerData.tensors and FullTransformerBatch.tensors. See more details in the transformer API docs.
  • Add support for transformer_config settings such as output_attentions. Additional output is stored under TransformerData.model_output. More details in the TransformerModel docs.
  • Add support for mixed-precision training.
  • Improve training speed by streamlining allocations for tokenizer output.
  • Extend support for transformers up to v4.11.x.

🔴 Bug fixes

  • Fix support for GPT2 models.

⚠️ Backwards incompatibilities

  • The serialization format for transformer components has changed in v1.1 and is not compatible with spacy-transformers v1.0.x. Pipelines trained with v1.0.x can be loaded with v1.1.x, but pipelines saved with v1.1.x cannot be loaded with v1.0.x.
  • TransformerData.tensors and FullTransformerBatch.tensors return a tuple instead of a list.

👥 Contributors

@adrianeboyd, @bryant1410, @danieldk, @honnibal, @ines, @KennethEnevoldsen, @svlandeg

v1.0.6

2 years ago
  • Fix copying of grad_factor when replacing listeners.

v1.0.5

2 years ago
  • Fix replacing listeners: #277
  • Require spaCy 3.1.0 or higher

v1.0.4

2 years ago
  • Extend transformers support to <4.10.0
  • Enable pickling of span getters and annotation setters, which is required for multiprocessing with spawn

v1.0.3

2 years ago
  • Allow spaCy 3.1
  • Extend transformers to <4.7.0

v1.0.2

3 years ago

✨ New features and improvements

  • Add support for transformers v4.3-v4.5
  • Add extra for CUDA 11.2

🔴 Bug fixes

  • Fix #264, #265: Improve handling of empty docs
  • Fix #269: Add trf_data extension in Transformer.__call__ and Transformer.pipe to support distributed processing

👥 Contributors

Thanks to @bryant1410 for the pull requests and contributions!

v1.0.1

3 years ago

🔴 Bug fixes

  • Fix listener initialization when model width is unset.

v1.0.0

3 years ago

This release requires spaCy v3.

✨ 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

v1.0.0rc2

3 years ago

🌙 This release is a pre-release and requires spaCy v3 (nightly).

✨ New features and improvements

  • Add support for Python 3.9
  • Add support for transformers v4

🔴 Bug fixes

  • Fix #230: Add upstream argument to TransformerListener.v1
  • Fix #238: Skip special tokens during alignment
  • Fix #246: Raise error if model max length exceeded