github allenai/allennlp v1.3.0

latest releases: v2.10.1, v2.10.0, v2.9.3...
3 years ago

What's new

Added 🎉

  • Added links to source code in docs.
  • Added get_embedding_layer and get_text_field_embedder to the Predictor class; to specify embedding layers for non-AllenNLP models.
  • Added Gaussian Error Linear Unit (GELU) as an Activation.

Changed ⚠️

  • Renamed module allennlp.data.tokenizers.token to allennlp.data.tokenizers.token_class to avoid
    this bug.
  • transformers dependency updated to version 4.0.1.

Fixed ✅

  • Fixed a lot of instances where tensors were first created and then sent to a device
    with .to(device). Instead, these tensors are now created directly on the target device.
  • Fixed issue with GradientDescentTrainer when constructed with validation_data_loader=None and learning_rate_scheduler!=None.
  • Fixed a bug when removing all handlers in root logger.
  • ShardedDatasetReader now inherits parameters from base_reader when required.
  • Fixed an issue in FromParams where parameters in the params object used to a construct a class
    were not passed to the constructor if the value of the parameter was equal to the default value.
    This caused bugs in some edge cases where a subclass that takes **kwargs needs to inspect
    kwargs before passing them to its superclass.
  • Improved the band-aid solution for segmentation faults and the "ImportError: dlopen: cannot load any more object with static TLS"
    by adding a transformers import.
  • Added safety checks for extracting tar files

Commits

d408f41 log import errors for default plugins (#4866)
f2a5331 Adds a safety check for tar files (#4858)
84a36a0 Update transformers requirement from <3.6,>=3.4 to >=4.0,<4.1 (#4831)
fdad31a Add ability to specify the embedding layer if the model does not use TextFieldEmbedder (#4836)
41c5224 Improve the band-aid solution for seg faults and the static TLS error (#4846)
63b6d16 fix FromParams bug (#4841)
6c3238e rename token.py -> token_class.py (#4842)
cec9209 Several micro optimizations (#4833)
48a4865 Add GELU activation (#4828)
3e62365 Bugfix for attribute inheritance in ShardedDatasetReader (#4830)
458c4c2 fix the way handlers are removed from the root logger (#4829)
5b30658 Fix bug in GradientDescentTrainer when validation data is absent (#4811)
f353c6c add link to source code in docs (#4807)
0a83271 No Docker auth on PRs (#4802)
ad8e8a0 no ssh setup on PRs (#4801)

Don't miss a new allennlp release

NewReleases is sending notifications on new releases.