update model card README.md
Browse files
README.md
CHANGED
|
@@ -13,60 +13,25 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 13 |
|
| 14 |
# DSPFirst-Finetuning-4
|
| 15 |
|
| 16 |
-
This model is a fine-tuned version of [ahotrod/electra_large_discriminator_squad2_512](https://huggingface.co/ahotrod/electra_large_discriminator_squad2_512) on
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
-
- Loss:
|
| 19 |
-
- Exact:
|
| 20 |
-
- F1:
|
| 21 |
-
|
| 22 |
-
##
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
```
|
| 27 |
-
"exact": 56.2219730941704,
|
| 28 |
-
"f1": 61.903777053610895
|
| 29 |
-
```
|
| 30 |
-
|
| 31 |
-
### After fine-tuning:
|
| 32 |
-
|
| 33 |
-
```
|
| 34 |
-
"exact": 64.01345291479821,
|
| 35 |
-
"f1": 72.2551864039602
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
# Dataset
|
| 39 |
-
A visualization of the dataset can be found [here](https://github.gatech.edu/pages/VIP-ITS/textbook_SQuAD_explore/explore/textbookv1.0/textbook/).<br />
|
| 40 |
-
The split between train and test is 70% and 30% respectively.
|
| 41 |
-
```
|
| 42 |
-
DatasetDict({
|
| 43 |
-
train: Dataset({
|
| 44 |
-
features: ['id', 'title', 'context', 'question', 'answers'],
|
| 45 |
-
num_rows: 4160
|
| 46 |
-
})
|
| 47 |
-
test: Dataset({
|
| 48 |
-
features: ['id', 'title', 'context', 'question', 'answers'],
|
| 49 |
-
num_rows: 1784
|
| 50 |
-
})
|
| 51 |
-
})
|
| 52 |
-
```
|
| 53 |
|
| 54 |
## Intended uses & limitations
|
| 55 |
|
| 56 |
-
|
| 57 |
-
Also, you should improve the Dataset either by using a **better generated questions and answers model** (currently using https://github.com/patil-suraj/question_generation) or perform **data augmentation** to increase dataset size.
|
| 58 |
|
| 59 |
## Training and evaluation data
|
| 60 |
|
| 61 |
-
|
| 62 |
-
- Utilizes `gradient_accumulation_steps` to get total batch size to 514 (batch size should be at least 256)
|
| 63 |
-
- 4.52 GB RAM
|
| 64 |
-
- 30% of the total questions is dedicated for evaluating.
|
| 65 |
|
| 66 |
## Training procedure
|
| 67 |
-
- The model was trained from Google Colab
|
| 68 |
-
- Utilizes Tesla P100 16GB, took 3.8 hours to train
|
| 69 |
-
- `load_best_model_at_end` is enabled in TrainingArguments
|
| 70 |
|
| 71 |
### Training hyperparameters
|
| 72 |
|
|
@@ -79,24 +44,24 @@ The following hyperparameters were used during training:
|
|
| 79 |
- total_train_batch_size: 516
|
| 80 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 81 |
- lr_scheduler_type: linear
|
| 82 |
-
- num_epochs:
|
| 83 |
-
|
| 84 |
-
### Model hyperparameters
|
| 85 |
-
|
| 86 |
-
- hidden_dropout_prob: 0.37
|
| 87 |
-
- attention_probs_dropout_prob = 0.37
|
| 88 |
|
| 89 |
### Training results
|
| 90 |
|
| 91 |
| Training Loss | Epoch | Step | Validation Loss | Exact | F1 |
|
| 92 |
|:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|
|
| 93 |
-
| 2.
|
| 94 |
-
|
|
| 95 |
-
| 1.
|
| 96 |
-
| 1.
|
| 97 |
-
| 1.
|
| 98 |
-
|
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
|
| 102 |
### Framework versions
|
|
|
|
| 13 |
|
| 14 |
# DSPFirst-Finetuning-4
|
| 15 |
|
| 16 |
+
This model is a fine-tuned version of [ahotrod/electra_large_discriminator_squad2_512](https://huggingface.co/ahotrod/electra_large_discriminator_squad2_512) on an unknown dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 0.9028
|
| 19 |
+
- Exact: 66.9843
|
| 20 |
+
- F1: 74.2286
|
| 21 |
+
|
| 22 |
+
## Model description
|
| 23 |
+
|
| 24 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
## Intended uses & limitations
|
| 27 |
|
| 28 |
+
More information needed
|
|
|
|
| 29 |
|
| 30 |
## Training and evaluation data
|
| 31 |
|
| 32 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## Training procedure
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
### Training hyperparameters
|
| 37 |
|
|
|
|
| 44 |
- total_train_batch_size: 516
|
| 45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | Exact | F1 |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|
|
| 53 |
+
| 2.4411 | 0.81 | 20 | 1.4556 | 62.0516 | 71.1082 |
|
| 54 |
+
| 2.2027 | 1.64 | 40 | 1.1508 | 65.0224 | 73.8669 |
|
| 55 |
+
| 1.2827 | 2.48 | 60 | 1.0030 | 65.8632 | 74.3959 |
|
| 56 |
+
| 1.0925 | 3.32 | 80 | 1.0155 | 66.8722 | 75.2204 |
|
| 57 |
+
| 1.03 | 4.16 | 100 | 0.8863 | 66.1996 | 73.8166 |
|
| 58 |
+
| 0.9085 | 4.97 | 120 | 0.9675 | 67.9372 | 75.7764 |
|
| 59 |
+
| 0.8968 | 5.81 | 140 | 0.8635 | 67.2085 | 74.3725 |
|
| 60 |
+
| 0.8867 | 6.64 | 160 | 0.9035 | 65.9753 | 73.4569 |
|
| 61 |
+
| 0.8456 | 7.48 | 180 | 0.9098 | 67.2085 | 74.6798 |
|
| 62 |
+
| 0.8506 | 8.32 | 200 | 0.8807 | 66.6480 | 74.2903 |
|
| 63 |
+
| 0.7972 | 9.16 | 220 | 0.8711 | 66.6480 | 73.5801 |
|
| 64 |
+
| 0.7795 | 9.97 | 240 | 0.9028 | 66.9843 | 74.2286 |
|
| 65 |
|
| 66 |
|
| 67 |
### Framework versions
|