jonathanagustin
commited on
Commit
•
698e942
1
Parent(s):
31e8115
Model save
Browse files- README.md +65 -33
- repo_card.md +6 -1
- tokenizer.json +3 -5
- trainer_state.json +17 -17
- training_args.bin +1 -1
README.md
CHANGED
@@ -1,36 +1,68 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
datasets:
|
5 |
+
- squad_v2
|
6 |
+
model-index:
|
7 |
+
- name: distilbert-finetuned-uncased-squad_v2
|
8 |
+
results: []
|
9 |
---
|
10 |
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# distilbert-finetuned-uncased-squad_v2
|
15 |
+
|
16 |
+
This model was trained from scratch on the squad_v2 dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 1.3930
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 2e-05
|
38 |
+
- train_batch_size: 128
|
39 |
+
- eval_batch_size: 128
|
40 |
+
- seed: 42
|
41 |
+
- gradient_accumulation_steps: 4
|
42 |
+
- total_train_batch_size: 512
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: linear
|
45 |
+
- num_epochs: 4
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
51 |
+
| 3.6437 | 0.39 | 100 | 2.1780 |
|
52 |
+
| 2.1596 | 0.78 | 200 | 1.6557 |
|
53 |
+
| 1.8138 | 1.18 | 300 | 1.5683 |
|
54 |
+
| 1.6987 | 1.57 | 400 | 1.5076 |
|
55 |
+
| 1.6586 | 1.96 | 500 | 1.5350 |
|
56 |
+
| 1.5957 | 1.18 | 600 | 1.4431 |
|
57 |
+
| 1.5825 | 1.37 | 700 | 1.4955 |
|
58 |
+
| 1.5523 | 1.57 | 800 | 1.4444 |
|
59 |
+
| 1.5346 | 1.76 | 900 | 1.3930 |
|
60 |
+
| 1.5098 | 1.96 | 1000 | 1.4285 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- Transformers 4.34.1
|
66 |
+
- Pytorch 2.1.0+cu118
|
67 |
+
- Datasets 2.14.5
|
68 |
+
- Tokenizers 0.14.1
|
repo_card.md
CHANGED
@@ -2,12 +2,17 @@
|
|
2 |
{}
|
3 |
---
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
# distilbert-finetuned-uncased Model
|
6 |
|
7 |
This model is fine-tuned on the SQuAD v2 dataset for the task of question answering.
|
8 |
|
9 |
## Training Procedure
|
10 |
-
- Number of Epochs:
|
11 |
- Learning Rate: 2e-05
|
12 |
- Batch Size: 128 (per device)
|
13 |
- Evaluation Strategy: Every 100 steps
|
|
|
2 |
{}
|
3 |
---
|
4 |
|
5 |
+
---
|
6 |
+
language: en
|
7 |
+
license: mit
|
8 |
+
---
|
9 |
+
|
10 |
# distilbert-finetuned-uncased Model
|
11 |
|
12 |
This model is fine-tuned on the SQuAD v2 dataset for the task of question answering.
|
13 |
|
14 |
## Training Procedure
|
15 |
+
- Number of Epochs: 4
|
16 |
- Learning Rate: 2e-05
|
17 |
- Batch Size: 128 (per device)
|
18 |
- Evaluation Strategy: Every 100 steps
|
tokenizer.json
CHANGED
@@ -3,13 +3,11 @@
|
|
3 |
"truncation": {
|
4 |
"direction": "Right",
|
5 |
"max_length": 512,
|
6 |
-
"strategy": "
|
7 |
-
"stride":
|
8 |
},
|
9 |
"padding": {
|
10 |
-
"strategy":
|
11 |
-
"Fixed": 512
|
12 |
-
},
|
13 |
"direction": "Right",
|
14 |
"pad_to_multiple_of": null,
|
15 |
"pad_id": 0,
|
|
|
3 |
"truncation": {
|
4 |
"direction": "Right",
|
5 |
"max_length": 512,
|
6 |
+
"strategy": "OnlySecond",
|
7 |
+
"stride": 128
|
8 |
},
|
9 |
"padding": {
|
10 |
+
"strategy": "BatchLongest",
|
|
|
|
|
11 |
"direction": "Right",
|
12 |
"pad_to_multiple_of": null,
|
13 |
"pad_id": 0,
|
trainer_state.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
{
|
2 |
"best_metric": 1.393009066581726,
|
3 |
"best_model_checkpoint": "/content/drive/My Drive/Colab Notebooks/aai520-project/checkpoints/distilbert-finetuned-uncased/checkpoint-900",
|
4 |
-
"epoch":
|
5 |
"eval_steps": 100,
|
6 |
-
"global_step":
|
7 |
"is_hyper_param_search": false,
|
8 |
"is_local_process_zero": true,
|
9 |
"is_world_process_zero": true,
|
@@ -149,28 +149,28 @@
|
|
149 |
"step": 1000
|
150 |
},
|
151 |
{
|
152 |
-
"epoch":
|
153 |
-
"step":
|
154 |
-
"total_flos": 5.
|
155 |
-
"train_loss": 0.
|
156 |
-
"train_runtime":
|
157 |
-
"train_samples_per_second":
|
158 |
-
"train_steps_per_second":
|
159 |
},
|
160 |
{
|
161 |
-
"epoch":
|
162 |
"eval_loss": 1.3930128812789917,
|
163 |
-
"eval_runtime": 8.
|
164 |
-
"eval_samples_per_second":
|
165 |
-
"eval_steps_per_second": 11.
|
166 |
-
"step":
|
167 |
}
|
168 |
],
|
169 |
"logging_steps": 100,
|
170 |
-
"max_steps":
|
171 |
-
"num_train_epochs":
|
172 |
"save_steps": 100,
|
173 |
-
"total_flos": 5.
|
174 |
"trial_name": null,
|
175 |
"trial_params": null
|
176 |
}
|
|
|
1 |
{
|
2 |
"best_metric": 1.393009066581726,
|
3 |
"best_model_checkpoint": "/content/drive/My Drive/Colab Notebooks/aai520-project/checkpoints/distilbert-finetuned-uncased/checkpoint-900",
|
4 |
+
"epoch": 4.0,
|
5 |
"eval_steps": 100,
|
6 |
+
"global_step": 1020,
|
7 |
"is_hyper_param_search": false,
|
8 |
"is_local_process_zero": true,
|
9 |
"is_world_process_zero": true,
|
|
|
149 |
"step": 1000
|
150 |
},
|
151 |
{
|
152 |
+
"epoch": 4.0,
|
153 |
+
"step": 1020,
|
154 |
+
"total_flos": 5.148633647651021e+16,
|
155 |
+
"train_loss": 0.028946983113008386,
|
156 |
+
"train_runtime": 27.4849,
|
157 |
+
"train_samples_per_second": 18992.679,
|
158 |
+
"train_steps_per_second": 37.111
|
159 |
},
|
160 |
{
|
161 |
+
"epoch": 4.0,
|
162 |
"eval_loss": 1.3930128812789917,
|
163 |
+
"eval_runtime": 8.2728,
|
164 |
+
"eval_samples_per_second": 1446.798,
|
165 |
+
"eval_steps_per_second": 11.363,
|
166 |
+
"step": 1020
|
167 |
}
|
168 |
],
|
169 |
"logging_steps": 100,
|
170 |
+
"max_steps": 1020,
|
171 |
+
"num_train_epochs": 4,
|
172 |
"save_steps": 100,
|
173 |
+
"total_flos": 5.148633647651021e+16,
|
174 |
"trial_name": null,
|
175 |
"trial_params": null
|
176 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4664
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c7ae8b9eb8e6eebcf1c334060dd09414a7a9d6f7ee56c74412375c0cdf85353
|
3 |
size 4664
|