Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
265709f5
Commit
265709f5
authored
Mar 20, 2020
by
Travis McGuire
Committed by
Julien Chaumond
Mar 20, 2020
Browse files
New model, new model cards
parent
115abd21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletion
+46
-1
model_cards/twmkn9/albert-base-v2-squad2/README.md
model_cards/twmkn9/albert-base-v2-squad2/README.md
+3
-1
model_cards/twmkn9/bert-base-uncased-squad2/README.md
model_cards/twmkn9/bert-base-uncased-squad2/README.md
+43
-0
No files found.
model_cards/twmkn9/albert-base-v2-squad2/README.md
View file @
265709f5
...
@@ -4,7 +4,9 @@ This model is ALBERT base v2 trained on SQuAD v2 as:
...
@@ -4,7 +4,9 @@ This model is ALBERT base v2 trained on SQuAD v2 as:
python run_squad.py
python run_squad.py
--model_type albert
--model_type albert
--model_name_or_path albert-base-v2
--model_name_or_path albert-base-v2
--do_train --do_eval
--do_train
--do_eval
--overwrite_cache
--do_lower_case
--do_lower_case
--version_2_with_negative
--version_2_with_negative
--train_file $SQUAD_DIR/train-v2.0.json
--train_file $SQUAD_DIR/train-v2.0.json
...
...
model_cards/twmkn9/bert-base-uncased-squad2/README.md
0 → 100644
View file @
265709f5
This model is BERT base uncased trained on SQuAD v2 as:
```
python run_squad.py
--model_type bert
--model_name_or_path bert-base-uncased
--do_train
--do_eval
--overwrite_cache
--do_lower_case
--version_2_with_negative
--train_file $SQUAD_DIR/train-v2.0.json
--predict_file $SQUAD_DIR/dev-v2.0.json
--per_gpu_train_batch_size 8
--num_train_epochs 3
--learning_rate 3e-5
--max_seq_length 384
--doc_stride 128
--output_dir ./tmp/bert_base_fine/
```
Performance on a dev subset is close to the original paper:
```
Results:
{
'exact': 72.35932872655479,
'f1': 75.75355132564763,
'total': 6078,
'HasAns_exact': 74.29553264604812,
'HasAns_f1': 81.38490892002987,
'HasAns_total': 2910,
'NoAns_exact': 70.58080808080808,
'NoAns_f1': 70.58080808080808,
'NoAns_total': 3168,
'best_exact': 72.35932872655479,
'best_exact_thresh': 0.0,
'best_f1': 75.75355132564766,
'best_f1_thresh': 0.0
}
```
We are hopeful this might save you time, energy, and compute. Cheers!
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment