github huggingface/transformers v2.10.0
Reformer, ElectraForSequenceClassification, ONNX conversion script

latest releases: v4.41.2, v4.41.3, v4.41.1...
4 years ago

Reformer (@patrickvonplaten)

Additional architectures

  • The ElectraForSequenceClassification was added by @liuzzi

Trainer Tweaks and fixes (@LysandreJik, @julien-c )

TPU (@LysandreJik):

  • Model saving, as well as optimizer and scheduler saving mid-training were hanging
  • Fixed the optimizer weight updates

Trainer (@julien-c)

  • Fixed the nn.DataParallel support compatibility for PyTorch v1.5.0
  • Distributed evaluation: SequentialDistributedSampler + gather all results
  • Move model to correct device
  • Map optimizer to correct device after loading from checkpoint (@shaoyent)

QOL: Tokenization, Pipelines

  • New method for all tokenizers: tokenizer.decode_batch, to decode an entire batch (@sshleifer)
  • the NER pipeline now returns entity groups (@enzoampil)

ONNX Conversion script (@mfuntowicz)

  • Added a conversion script to convert both PyTorch/TensorFlow models to ONNX.
  • Added a notebook explaining how it works

Community notebooks

We've started adding community notebooks to the repository. Three notebooks have made their way into our codebase:

Predict stage for GLUE task, easy submit to gluebenchmark.com

-Adds predict stage for glue tasks, and generate result files which can be submitted to gluebenchmark.com (@stdcoutzyx)

Fixes and improvements

Don't miss a new transformers release

NewReleases is sending notifications on new releases.