README.md 1.35 KB
Newer Older
ahotrod's avatar
ahotrod committed
1
2
3
4
5
## RoBERTa-large language model fine-tuned on SQuAD2.0

### with the following results:

```
ahotrod's avatar
ahotrod committed
6
7
  "exact": 84.46896319380106,
  "f1": 87.85388093408943,
ahotrod's avatar
ahotrod committed
8
  "total": 11873,
ahotrod's avatar
ahotrod committed
9
10
  "HasAns_exact": 81.37651821862349,
  "HasAns_f1": 88.1560607844881,
ahotrod's avatar
ahotrod committed
11
  "HasAns_total": 5928,
ahotrod's avatar
ahotrod committed
12
13
  "NoAns_exact": 87.55256518082422,
  "NoAns_f1": 87.55256518082422,
ahotrod's avatar
ahotrod committed
14
  "NoAns_total": 5945,
ahotrod's avatar
ahotrod committed
15
  "best_exact": 84.46896319380106,
ahotrod's avatar
ahotrod committed
16
  "best_exact_thresh": 0.0,
ahotrod's avatar
ahotrod committed
17
  "best_f1": 87.85388093408929,
ahotrod's avatar
ahotrod committed
18
19
20
21
  "best_f1_thresh": 0.0
```
### from script:
```
ahotrod's avatar
ahotrod committed
22
python ${EXAMPLES}/run_squad.py \
ahotrod's avatar
ahotrod committed
23
24
25
  --model_type roberta \
  --model_name_or_path roberta-large \
  --do_train \
ahotrod's avatar
ahotrod committed
26
27
28
  --do_eval \
  --train_file ${SQUAD}/train-v2.0.json \
  --predict_file ${SQUAD}/dev-v2.0.json \
ahotrod's avatar
ahotrod committed
29
30
  --version_2_with_negative \
  --do_lower_case \
ahotrod's avatar
ahotrod committed
31
32
33
34
35
  --num_train_epochs 3 \
  --warmup_steps 1642 \
  --weight_decay 0.01 \
  --learning_rate 3e-5 \
  --adam_epsilon 1e-6 \
ahotrod's avatar
ahotrod committed
36
37
  --max_seq_length 512 \
  --doc_stride 128 \
ahotrod's avatar
ahotrod committed
38
39
40
41
  --per_gpu_train_batch_size 8 \
  --gradient_accumulation_steps 6 \
  --per_gpu_eval_batch_size 48 \
  --threads 12 \
ahotrod's avatar
ahotrod committed
42
  --logging_steps 50 \
ahotrod's avatar
ahotrod committed
43
  --save_steps 2000 \
ahotrod's avatar
ahotrod committed
44
45
46
47
48
49
50
51
52
53
  --overwrite_output_dir \
  --output_dir ${MODEL_PATH}
$@
```
### using the following system & software:
```
Transformers: 2.7.0
PyTorch: 1.4.0
TensorFlow: 2.1.0
Python: 3.7.7
ahotrod's avatar
ahotrod committed
54
55
OS/Platform: Linux-5.3.0-46-generic-x86_64-with-debian-buster-sid
CPU/GPU: Intel i9-9900K / NVIDIA Titan RTX 24GB
ahotrod's avatar
ahotrod committed
56
```