Spacy-transformers

Latest version: v1.3.5

Safety actively analyzes 688486 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 8

1.1.3

✨ New features and improvements

- Extend support for `transformers` up to v4.12.x.

👥 Contributors

adrianeboyd

1.1.2

🔴 Bug fixes

- Fix 315: Enable loading of v1.0.x pipelines in windows.

👥 Contributors

adrianeboyd, ryndaniels, svlandeg

1.1.1

🔴 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

1.1.0

✨ 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`](https://huggingface.co/transformers/main_classes/output.html?highlight=modeloutput#transformers.file_utils.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](https://spacy.io/api/transformer#transformerdata).
- Add support for `transformer_config` settings such as `output_attentions`. Additional output is stored under `TransformerData.model_output`. More details in the [`TransformerModel` docs](https://spacy.io/api/architectures#TransformerModel).
- Add support for [mixed-precision training](https://spacy.io/api/architectures#TransformerModel).
- 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

1.0.6

* Fix copying of `grad_factor` when replacing listeners.

1.0.5

* Fix replacing listeners: 277
* Require spaCy 3.1.0 or higher

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.