github allenai/allennlp v2.8.0

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

What's new

Added 🎉

  • Added support to push models directly to the Hugging Face Hub with the command allennlp push-to-hf.
  • More default tests for the TextualEntailmentSuite.

Changed ⚠️

  • The behavior of --overrides has changed. Previously the final configuration params were simply taken as the union over the original params and the --overrides params.
    But now you can use --overrides to completely replace any part of the original config. For example, passing --overrides '{"model":{"type":"foo"}}' will completely
    replace the "model" part of the original config. However, when you just want to change a single field in the JSON structure without removing / replacing adjacent fields,
    you can still use the "dot" syntax. For example, --overrides '{"model.num_layers":3}' will only change the num_layers parameter to the "model" part of the config, leaving
    everything else unchanged.
  • Integrated cached_path library to replace existing functionality in common.file_utils. This introduces some improvements without
    any breaking changes.

Fixed ✅

  • Fixed the implementation of PairedPCABiasDirection in allennlp.fairness.bias_direction, where the difference vectors should not be centered when performing the PCA.

Commits

7213d52 Update transformers requirement from <4.12,>=4.1 to >=4.1,<4.13 (#5452)
1b02227 bug fix (#5447)
0d8c0fc Update torch requirement from <1.10.0,>=1.6.0 to >=1.6.0,<1.11.0 (#5442)
0c79807 Checklist update (#5438)
ebd6b5b integrate cached_path (#5418)
dcd8d9e Update mkdocs-material requirement from <7.3.0,>=5.5.0 to >=5.5.0,<7.4.0 (#5419)
362349b Registrable _to_params default functionality (#5403)
17ef1aa fix a bug when using fp16 training & gradient clipping (#5426)
a63e28c Update transformers requirement from <4.11,>=4.1 to >=4.1,<4.12 (#5422)
603552f Add utility function and command to push models to 🤗 Hub (#5370)
e5d332a Update filelock requirement from <3.1,>=3.0 to >=3.0,<3.2 (#5421)
44155ac Make --overrides more flexible (#5399)
43fd982 Fix PairedPCABiasDirection (#5396)
7785068 Bump black from 21.7b0 to 21.9b0 (#5408)
a09d057 Update transformers requirement from <4.10,>=4.1 to >=4.1,<4.11 (#5393)
527e43d require Python>=3.7 (#5400)
5338bd8 Add scaling to tqdm bar when downloading files (#5397)

Don't miss a new allennlp release

NewReleases is sending notifications on new releases.