From cd1e5e6f7d1af13d4a77d3ed60c4d4face69d02d Mon Sep 17 00:00:00 2001 From: Branden Chan <33759007+brandenchan@users.noreply.github.com> Date: Fri, 13 Nov 2020 15:37:16 +0100 Subject: [PATCH 1/2] Update README.md --- .../deepset/roberta-base-squad2/README.md | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/model_cards/deepset/roberta-base-squad2/README.md b/model_cards/deepset/roberta-base-squad2/README.md index cfe61b7a58fba2..7cb7e30da00da7 100644 --- a/model_cards/deepset/roberta-base-squad2/README.md +++ b/model_cards/deepset/roberta-base-squad2/README.md @@ -5,7 +5,7 @@ datasets: # roberta-base for QA -NOTE: This model has been superseded by deepset/roberta-base-squad2-v2. For an explanation of why, see [this github issue](https://github.com/deepset-ai/FARM/issues/552) from the FARM repository. +NOTE: This is version 2 of the model. See [this github issue](https://github.com/deepset-ai/FARM/issues/552) from the FARM repository for an explanation of why we updated. If you'd like to use version 1, specify `revision="390d6ae6cdc865cb737b742afdd4c33980566f99"` when loading the model in Transformers 3.5 ## Overview **Language model:** roberta-base @@ -19,10 +19,10 @@ NOTE: This model has been superseded by deepset/roberta-base-squad2-v2. For an e ## Hyperparameters ``` -batch_size = 50 -n_epochs = 3 +batch_size = 96 +n_epochs = 2 base_LM_model = "roberta-base" -max_seq_len = 384 +max_seq_len = 386 learning_rate = 3e-5 lr_schedule = LinearWarmup warmup_proportion = 0.2 @@ -32,9 +32,18 @@ max_query_length=64 ## Performance Evaluated on the SQuAD 2.0 dev set with the [official eval script](https://worksheets.codalab.org/rest/bundles/0x6b567e1cf2e041ec80d7098f031c5c9e/contents/blob/). + ``` -"exact": 78.49743114629833, -"f1": 81.73092721240889 +"exact": 79.97136359807968 +"f1": 83.00449234495325 + +"total": 11873 +"HasAns_exact": 78.03643724696356 +"HasAns_f1": 84.11139298441825 +"HasAns_total": 5928 +"NoAns_exact": 81.90075693860386 +"NoAns_f1": 81.90075693860386 +"NoAns_total": 5945 ``` ## Usage @@ -85,7 +94,7 @@ For doing QA at scale (i.e. many docs instead of single paragraph), you can load ```python reader = FARMReader(model_name_or_path="deepset/roberta-base-squad2") # or -reader = TransformersReader(model="deepset/roberta-base-squad2",tokenizer="deepset/roberta-base-squad2") +reader = TransformersReader(model_name_or_path="deepset/roberta-base-squad2",tokenizer="deepset/roberta-base-squad2") ``` From fea8ea575e5756854aab57d391e8a6f4402b8457 Mon Sep 17 00:00:00 2001 From: Branden Chan <33759007+brandenchan@users.noreply.github.com> Date: Fri, 13 Nov 2020 15:56:49 +0100 Subject: [PATCH 2/2] Update README.md --- model_cards/deepset/roberta-base-squad2/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_cards/deepset/roberta-base-squad2/README.md b/model_cards/deepset/roberta-base-squad2/README.md index 7cb7e30da00da7..247fc57497e08f 100644 --- a/model_cards/deepset/roberta-base-squad2/README.md +++ b/model_cards/deepset/roberta-base-squad2/README.md @@ -5,7 +5,7 @@ datasets: # roberta-base for QA -NOTE: This is version 2 of the model. See [this github issue](https://github.com/deepset-ai/FARM/issues/552) from the FARM repository for an explanation of why we updated. If you'd like to use version 1, specify `revision="390d6ae6cdc865cb737b742afdd4c33980566f99"` when loading the model in Transformers 3.5 +NOTE: This is version 2 of the model. See [this github issue](https://github.com/deepset-ai/FARM/issues/552) from the FARM repository for an explanation of why we updated. If you'd like to use version 1, specify `revision="v1.0"` when loading the model in Transformers 3.5. ## Overview **Language model:** roberta-base