jonathanagustin
commited on
Commit
•
68e59b4
1
Parent(s):
3cf9440
Model save
Browse files- README.md +65 -33
- repo_card.md +2 -2
- tokenizer.json +3 -5
- trainer_state.json +5 -5
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
@@ -6,10 +6,10 @@
|
|
6 |
language: en
|
7 |
license: mit
|
8 |
---
|
9 |
-
|
10 |
# distilbert-finetuned-uncased Model
|
11 |
|
12 |
-
This model is fine-tuned on
|
13 |
|
14 |
## Training Procedure
|
15 |
- Number of Epochs: 4
|
|
|
6 |
language: en
|
7 |
license: mit
|
8 |
---
|
9 |
+
|
10 |
# distilbert-finetuned-uncased Model
|
11 |
|
12 |
+
This model is fine-tuned on SQuAD v2 for question answering tasks.
|
13 |
|
14 |
## Training Procedure
|
15 |
- Number of Epochs: 4
|
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
@@ -153,15 +153,15 @@
|
|
153 |
"step": 1020,
|
154 |
"total_flos": 5.148633647651021e+16,
|
155 |
"train_loss": 0.028946983113008386,
|
156 |
-
"train_runtime":
|
157 |
-
"train_samples_per_second":
|
158 |
-
"train_steps_per_second":
|
159 |
},
|
160 |
{
|
161 |
"epoch": 4.0,
|
162 |
"eval_loss": 1.3930128812789917,
|
163 |
-
"eval_runtime": 8.
|
164 |
-
"eval_samples_per_second": 1446.
|
165 |
"eval_steps_per_second": 11.363,
|
166 |
"step": 1020
|
167 |
}
|
|
|
153 |
"step": 1020,
|
154 |
"total_flos": 5.148633647651021e+16,
|
155 |
"train_loss": 0.028946983113008386,
|
156 |
+
"train_runtime": 26.7453,
|
157 |
+
"train_samples_per_second": 19517.888,
|
158 |
+
"train_steps_per_second": 38.138
|
159 |
},
|
160 |
{
|
161 |
"epoch": 4.0,
|
162 |
"eval_loss": 1.3930128812789917,
|
163 |
+
"eval_runtime": 8.2725,
|
164 |
+
"eval_samples_per_second": 1446.843,
|
165 |
"eval_steps_per_second": 11.363,
|
166 |
"step": 1020
|
167 |
}
|