What's new
Added 🎉
- Added
WandBCallback
class for Weights & Biases integration, registered as a callback under the name "wandb". - Added
TensorBoardCallback
to replace theTensorBoardWriter
. Registered as a callback
under the name "tensorboard". - Added
NormalizationBiasVerification
andSanityChecksCallback
for model sanity checks. SanityChecksCallback
runs by default from theallennlp train
command.
It can be turned off by settingtrainer.enable_default_callbacks
tofalse
in your config.- Added new method on
Field
class:.human_readable_repr() -> Any
, and new method onInstance
class:.human_readable_dict() -> JsonDict
(@leo-liuzy).
Removed 👋
- Removed
TensorBoardWriter
. Please use theTensorBoardCallback
instead.
Changed ⚠️
- Use attributes of
ModelOutputs
object inPretrainedTransformerEmbedder
instead of indexing (@JohnGiorgi). - Added support for PyTorch version 1.8 and
torchvision
version 0.9 (@nelson-liu). Model.get_parameters_for_histogram_tensorboard_logging
is deprecated in favor of
Model.get_parameters_for_histogram_logging
.
Fixed ✅
- Makes sure tensors that are stored in
TensorCache
always live on CPUs. - Fixed a bug where
FromParams
objects wrapped inLazy()
couldn't be pickled. - Fixed a bug where the
ROUGE
metric couldn't be picked. - Fixed a bug reported by #5036 - we now keep our spacy POS tagger on (@leo-liuzy).
Commits
c5c9df5 refactor LogWriter, add W&B integration (#5061)
385124a Keep Spacy PoS tagger on by default (#5066)
15b532f Update transformers requirement from <4.4,>=4.1 to >=4.1,<4.5 (#5057)
3aafb92 clarify how predictions_to_labeled_instances
work for targeted or non-targeted hotflip attack (#4957)
b897e57 ensure ROUGE metric can be pickled (#5051)
91e4af9 fix pickle bug for Lazy FromParams (#5049)
5b57be2 Adding normalization bias verification (#4990)
ce71901 Update torchvision requirement from <0.9.0,>=0.8.1 to >=0.8.1,<0.10.0 (#5041)
7f60990 Update torch requirement from <1.8.0,>=1.6.0 to >=1.6.0,<1.9.0 (#5037)
96415b2 Use HF Transformers output types (#5035)
0c36019 clean up (#5034)
d2bf35d Add methods for human readable representation of fields and instances (#4986)
a8b8006 Makes sure serialized tensors live on CPUs (#5026)
a0edfae Add options to log inputs in trainer (#4970)
Thanks to @nelson-liu for making sure we stay on top of releases! 😜