v1.1.0
版本发布时间: 2021-10-18 21:10:15
explosion/spacy-transformers最新发布版本:v1.3.5(2024-04-25 20:54:53)
✨ 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 inTransformerData.model_output
andFullTransformerBatch.model_output
. For backwards compatibility, the tuple format remains available underTransformerData.tensors
andFullTransformerBatch.tensors
. See more details in the transformer API docs. - Add support for
transformer_config
settings such asoutput_attentions
. Additional output is stored underTransformerData.model_output
. More details in theTransformerModel
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 withspacy-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
andFullTransformerBatch.tensors
return a tuple instead of a list.
👥 Contributors
@adrianeboyd, @bryant1410, @danieldk, @honnibal, @ines, @KennethEnevoldsen, @svlandeg