Model save
Browse files- README.md +79 -0
- generation_config.json +7 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
- bleu
|
8 |
+
model-index:
|
9 |
+
- name: gpt2-medium-wikitext
|
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-medium-wikitext
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 3.1671
|
21 |
+
- Accuracy: 0.4217
|
22 |
+
- Perplexity: 23.7377
|
23 |
+
- Bleu: 0.1460
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 0.0001
|
43 |
+
- train_batch_size: 64
|
44 |
+
- eval_batch_size: 64
|
45 |
+
- seed: 42
|
46 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
49 |
+
- num_epochs: 5
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Perplexity | Bleu |
|
54 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:----------:|:------:|
|
55 |
+
| 6.0809 | 0.2806 | 500 | 5.9580 | 0.1883 | 386.8254 | 0.0333 |
|
56 |
+
| 5.0644 | 0.5612 | 1000 | 4.9191 | 0.2623 | 136.8761 | 0.0651 |
|
57 |
+
| 4.3331 | 0.8418 | 1500 | 4.2124 | 0.3226 | 67.5163 | 0.0890 |
|
58 |
+
| 3.9451 | 1.1223 | 2000 | 3.8835 | 0.3532 | 48.5942 | 0.1090 |
|
59 |
+
| 3.7568 | 1.4029 | 2500 | 3.7051 | 0.3684 | 40.6559 | 0.1226 |
|
60 |
+
| 3.6478 | 1.6835 | 3000 | 3.5827 | 0.3787 | 35.9710 | 0.1311 |
|
61 |
+
| 3.5435 | 1.9641 | 3500 | 3.4940 | 0.3877 | 32.9179 | 0.1343 |
|
62 |
+
| 3.4222 | 2.2447 | 4000 | 3.4292 | 0.3936 | 30.8527 | 0.1343 |
|
63 |
+
| 3.3604 | 2.5253 | 4500 | 3.3728 | 0.3990 | 29.1601 | 0.1414 |
|
64 |
+
| 3.3288 | 2.8058 | 5000 | 3.3269 | 0.4038 | 27.8518 | 0.1381 |
|
65 |
+
| 3.2074 | 3.0864 | 5500 | 3.2887 | 0.4079 | 26.8092 | 0.1423 |
|
66 |
+
| 3.2007 | 3.3670 | 6000 | 3.2605 | 0.4115 | 26.0632 | 0.1464 |
|
67 |
+
| 3.1787 | 3.6476 | 6500 | 3.2328 | 0.4140 | 25.3497 | 0.1428 |
|
68 |
+
| 3.1529 | 3.9282 | 7000 | 3.2085 | 0.4166 | 24.7424 | 0.1425 |
|
69 |
+
| 3.0849 | 4.2088 | 7500 | 3.1921 | 0.4184 | 24.3384 | 0.1430 |
|
70 |
+
| 3.0471 | 4.4893 | 8000 | 3.1796 | 0.4202 | 24.0366 | 0.1428 |
|
71 |
+
| 3.0569 | 4.7699 | 8500 | 3.1671 | 0.4217 | 23.7377 | 0.1460 |
|
72 |
+
|
73 |
+
|
74 |
+
### Framework versions
|
75 |
+
|
76 |
+
- Transformers 4.49.0
|
77 |
+
- Pytorch 2.6.0+cu124
|
78 |
+
- Datasets 3.3.2
|
79 |
+
- Tokenizers 0.21.0
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50256,
|
4 |
+
"eos_token_id": 50256,
|
5 |
+
"transformers_version": "4.49.0",
|
6 |
+
"use_cache": false
|
7 |
+
}
|