End of training
Browse files- README.md +74 -0
- generation_config.json +6 -0
- model.safetensors +1 -1
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: openai-community/gpt2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- bleu
|
8 |
+
model-index:
|
9 |
+
- name: gpt2-finetuned-mcqa-sciq2-safety
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# gpt2-finetuned-mcqa-sciq2-safety
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 1.7824
|
21 |
+
- Bleu: 0.0816
|
22 |
+
- Bertscore Precision: 0.4316
|
23 |
+
- Bertscore Recall: 0.4553
|
24 |
+
- Bertscore F1: 0.4431
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- learning_rate: 3e-05
|
44 |
+
- train_batch_size: 8
|
45 |
+
- eval_batch_size: 8
|
46 |
+
- seed: 42
|
47 |
+
- gradient_accumulation_steps: 2
|
48 |
+
- total_train_batch_size: 16
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- num_epochs: 10
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | Bleu | Bertscore Precision | Bertscore Recall | Bertscore F1 |
|
56 |
+
|:-------------:|:-----:|:-----:|:---------------:|:------:|:-------------------:|:----------------:|:------------:|
|
57 |
+
| 1.917 | 1.0 | 1460 | 1.8258 | 0.0856 | 0.4279 | 0.4541 | 0.4406 |
|
58 |
+
| 1.7299 | 2.0 | 2920 | 1.7928 | 0.0789 | 0.4311 | 0.4549 | 0.4427 |
|
59 |
+
| 1.6342 | 3.0 | 4380 | 1.7870 | 0.0858 | 0.4315 | 0.4542 | 0.4425 |
|
60 |
+
| 1.5534 | 4.0 | 5840 | 1.7824 | 0.0816 | 0.4316 | 0.4553 | 0.4431 |
|
61 |
+
| 1.4878 | 5.0 | 7300 | 1.7909 | 0.0797 | 0.4315 | 0.4556 | 0.4432 |
|
62 |
+
| 1.4554 | 6.0 | 8760 | 1.8021 | 0.0772 | 0.4312 | 0.4557 | 0.4431 |
|
63 |
+
| 1.3981 | 7.0 | 10220 | 1.8103 | 0.0767 | 0.4314 | 0.4558 | 0.4433 |
|
64 |
+
| 1.3712 | 8.0 | 11680 | 1.8242 | 0.0427 | 0.4315 | 0.4561 | 0.4434 |
|
65 |
+
| 1.3431 | 9.0 | 13140 | 1.8338 | 0.0416 | 0.4315 | 0.4560 | 0.4434 |
|
66 |
+
| 1.3354 | 10.0 | 14600 | 1.8390 | 0.0420 | 0.4315 | 0.4560 | 0.4434 |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- Transformers 4.40.2
|
72 |
+
- Pytorch 2.3.0+cu121
|
73 |
+
- Datasets 2.19.1
|
74 |
+
- Tokenizers 0.19.1
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50256,
|
4 |
+
"eos_token_id": 50256,
|
5 |
+
"transformers_version": "4.40.2"
|
6 |
+
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 497774208
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2debc15754e593295f780b73331cc93888cf0bbb579f1805a2e7418949d5d4ae
|
3 |
size 497774208
|