github allenai/allennlp v1.2.1

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

What's new

Added 🎉

  • Added an optional seed parameter to ModelTestCase.set_up_model which sets the random
    seed for random, numpy, and torch.
  • Added support for a global plugins file at ~/.allennlp/plugins.
  • Added more documentation about plugins.
  • Added sampler class and parameter in beam search for non-deterministic search, with several
    implementations, including MultinomialSampler, TopKSampler, TopPSampler, and
    GumbelMaxSampler. Utilizing GumbelMaxSampler will give Stochastic Beam Search.

Changed ⚠️

  • Pass batch metrics to BatchCallback.

Fixed ✅

  • Fixed a bug where forward hooks were not cleaned up with saliency interpreters if there
    was an exception.
  • Fixed the computation of saliency maps in the Interpret code when using mismatched indexing.
    Previously, we would compute gradients from the top of the transformer, after aggregation from
    wordpieces to tokens, which gives results that are not very informative. Now, we compute gradients
    with respect to the embedding layer, and aggregate wordpieces to tokens separately.
  • Fixed the heuristics for finding embedding layers in the case of RoBERTa. An update in the
    transformers library broke our old heuristic.
  • Fixed typo with registered name of ROUGE metric. Previously was rogue, fixed to rouge.
  • Fixed default masks that were erroneously created on the CPU even when a GPU is available.

Commits

04247fa support global plugins file, improve plugins docs (#4779)
9f7cc24 Add sampling strategies to beam search (#4768)
f6fe8c6 pin urllib3 in dev reqs for responses (#4780)
764bbe2 Pass batch metrics to BatchCallback (#4764)
dc3a4f6 clean up forward hooks on exception (#4778)
fcc3a70 Fix: typo in metric, rogue -> rouge (#4777)
b89320c Set the device for an auto-created mask (#4774)
92a844a RoBERTa embeddings are no longer a type of BERT embeddings (#4771)
23f0a8a Ensure cnn_encoder respects masking (#4746)
b4f1a7a add seed option to ModelTestCase.set_up_model (#4769)
b7cec51 Made Interpret code handle mismatched cases better (#4733)
9759b15 allow TextFieldEmbedder to have EmptyEmbedder that may not be in input (#4761)

Don't miss a new allennlp release

NewReleases is sending notifications on new releases.