Changelog#
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
v2.0.0 - 2021-01-27#
Fixed#
- Made the training configs compatible with the tensorboard logging changes in the main repo
v2.0.0rc1 - 2021-01-21#
Added#
- Dataset readers, models, metrics, and training configs for VQAv2, GQA, and Visual Entailment
Fixed#
- Fixed
training_configs/pair_classification/bimpm.jsonnetandtraining_configs/rc/dialog_qa.jsonnetto work with new data loading API. - Fixed the potential for a dead-lock when training the
TransformerQAmodel on multiple GPUs when nodes receive different sized batches. - Fixed BART. This implementation had some major bugs in it that caused poor performance during prediction.
Removed#
- Moving
ModelCardandTaskCardabstractions out of the models repository.
Changed#
masterbranch renamed tomainSquadEmAndF1metric can now also accept a batch of predictions and corresponding answers (instead of a single one) in the form of list (for each).
v1.3.0 - 2020-12-15#
Fixed#
- Fix an index bug in BART prediction.
- Add
Nonecheck inPrecoReader'stext_to_instance()method. - Fixed
SemanticRoleLabelerPredictor.tokens_to_instancesso it treats auxiliary verbs as verbs when the language is English
Added#
- Added link to source code to API docs.
- Information updates for remaining model cards (also includes the ones in demo, but not in the repository).
Changed#
- Updated
Dockerfile.releaseandDockerfile.committo work with different CUDA versions. - Changes required for the
transformersdependency update to version 4.0.1.
Fixed#
- Added missing folder for
taskcardsin setup.py
v1.2.2 - 2020-11-17#
Changed#
- Changed AllenNLP dependency for releases to allow for a range of versions, instead of being pinned to an exact version.
- There will now be multiple Docker images pushed to Docker Hub for releases, each corresponding to a different supported CUDA version (currently just 10.2 and 11.0).
Fixed#
- Fixed
pair-classification-esimpretrained model. - Fixed
ValueErrorerror message inSeq2SeqDatasetReader. - Better check for start and end symbols in
Seq2SeqDatasetReaderthat doesn't fail for BPE-based tokenizers.
Added#
- Added
short_descriptionfield toModelCard. - Information updates for all model cards.
v1.2.1 - 2020-11-10#
Added#
- Added the
TaskCardclass and task cards for common tasks. - Added a test for the interpret functionality
Changed#
- Added more information to model cards for pair classification models (
pair-classification-decomposable-attention-elmo,pair-classification-roberta-snli,pair-classification-roberta-mnli,pair-classification-esim).
Fixed#
- Fixed TransformerElmo config to work with the new AllenNLP
- Pinned the version of torch more tightly to make AMP work
- Fixed the somewhat fragile Bidaf test
v1.2.0 - 2020-10-29#
Changed#
- Updated docstring for Transformer MC.
- Added more information to model cards for multiple choice models (
mc-roberta-commonsenseqa,mc-roberta-piqa, andmc-roberta-swag).
Fixed#
- Fixed many training configs to work out-of-the box. These include the configs for
bart_cnn_dm,swag,bidaf,bidaf_elmo,naqanet, andqanet. - Fixed minor bug in MaskedLanguageModel, where getting token ids used hard-coded assumptions (that could be wrong) instead of our standard utility function.
v1.2.0rc1 - 2020-10-22#
Added#
- Added dataset reader support for SQuAD 2.0 with both the
SquadReaderandTransformerSquadReader. - Updated the SQuAD v1.1 metric to work with SQuAD 2.0 as well.
- Updated the
TransformerQAmodel to work for SQuAD 2.0. - Added official support for Python 3.8.
- Added a json template for model cards.
- Added
training_configas a field in model cards. - Added a
BeamSearchGeneratorregistrable class which can be provided to aNextTokenLMmodel to utilize beam search for predicting a sequence of tokens, instead of a single next token.BeamSearchGeneratoris an abstract class, so a concrete registered implementation needs to be used. One implementation is provided so far:TransformerBeamSearchGenerator, registered astransformer, which will work with anyNextTokenLMthat uses aPretrainedTransformerEmbedder. - Added an
overridesparameter topretrained.load_predictor().
Changed#
rc-transformer-qapretrained model is now an updated version trained on SQuAD v2.0.skip_invalid_examplesparameter in SQuAD dataset readers has been deprecated. Please useskip_impossible_questionsinstead.
Fixed#
- Fixed
lm-masked-language-modelpretrained model. - Fixed BART for latest
transformersversion. - Fixed BiDAF predictor and BiDAF predictor tests.
- Fixed a bug with
Seq2SeqDatasetReaderthat would cause an exception when the desired behavior is to not add start or end symbols to either the source or the target and the defaultstart_symbolorend_symbolare not part of the tokenizer's vocabulary.
v1.1.0 - 2020-09-08#
Fixed#
- Updated
LanguageModelTokenEmbedderto allow allow multiple token embedders, but only use first with non-empty type - Fixed evaluation of metrics when using distributed setting.
- Fixed a bug introduced in 1.0 where the SRL model did not reproduce the original result.
v1.1.0rc4 - 2020-08-21#
Added#
- Added regression tests for training configs that run on a scheduled workflow.
- Added a test for the pretrained sentiment analysis model.
- Added way for questions from quora dataset to be concatenated like the sequences in the SNLI dataset.
v1.1.0rc3 - 2020-08-12#
Fixed#
- Fixed
GraphParser.get_metricsso that it expects a dict fromF1Measure.get_metric. CopyNetandSimpleSeq2Seqmodels now work with AMP.- Made the SST reader a little more strict in the kinds of input it accepts.
v1.1.0rc2 - 2020-07-31#
Changed#
- Updated to PyTorch 1.6.
Fixed#
- Updated the RoBERTa SST config to make proper use of the CLS token
- Updated RoBERTa SNLI and MNLI pretrained models for latest
transformersversion
Added#
- Added BART model
- Added
ModelCardand related classes. Added model cards for all the pretrained models. - Added a field
registered_predictor_nametoModelCard. - Added a method
load_predictortoallennlp_models.pretrained. - Added support to multi-layer decoder in simple seq2seq model.
v1.1.0rc1 - 2020-07-14#
Fixed#
- Updated the BERT SRL model to be compatible with the new huggingface tokenizers.
CopyNetSeq2Seqmodel now works with pretrained transformers.- A bug with
NextTokenLMthat caused simple gradient interpreters to fail. - A bug in
training_configofqanetandbimpmthat used the old version ofregularizerandinitializer. - The fine-grained NER transformer model did not survive an upgrade of the transformers library, but it is now fixed.
- Fixed many minor formatting issues in docstrings. Docs are now published at https://docs.allennlp.org/models/.
Changed#
CopyNetDatasetReaderno longer automatically addsSTART_TOKENandEND_TOKENto the tokenized source. If you want these in the tokenized source, it's up to the source tokenizer.
Added#
- Added two models for fine-grained NER
- Added a category for multiple choice models, including a few reference implementations
- Implemented manual distributed sharding for SNLI dataset reader.
v1.0.0 - 2020-06-16#
No additional note-worthy changes since rc6.
v1.0.0rc6 - 2020-06-11#
Changed#
- Removed deprecated
"simple_seq2seq"predictor
Fixed#
- Replaced
deepcopyofInstances with newInstance.duplicate()method. - A bug where pretrained sentence taggers would fail to be initialized because some of the models were not imported.
- A bug in some RC models that would cause mixed precision training to crash when using NVIDIA apex.
- Predictor names were inconsistently switching between dashes and underscores. Now they all use underscores.
Added#
- Added option to SemanticDependenciesDatasetReader to not skip instances that have no arcs, for validation data
- Added a default predictors to several models
- Added sentiment analysis models to pretrained.py
- Added NLI models to pretrained.py
v1.0.0rc5 - 2020-05-14#
Changed#
- Moved the models into categories based on their format
Fixed#
- Made
transformer_qapredictor accept JSON input with the keys "question" and "passage" to be consistent with thereading_comprehensionpredictor.
Added#
conlludependency (previously part ofallennlp's dependencies)
v1.0.0rc4 - 2020-05-14#
We first introduced this CHANGELOG after release v1.0.0rc4, so please refer to the GitHub release
notes for this and earlier releases.