Training complete
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: gpt2
|
4 |
+
tags:
|
5 |
+
- text-generation
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: gpt2-small-finetuned-codeparrot-ds_nlp-course-chapter7-section5
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# gpt2-small-finetuned-codeparrot-ds_nlp-course-chapter7-section5
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the None dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 1.0606
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 0.0005
|
39 |
+
- train_batch_size: 32
|
40 |
+
- eval_batch_size: 32
|
41 |
+
- seed: 42
|
42 |
+
- gradient_accumulation_steps: 8
|
43 |
+
- total_train_batch_size: 256
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: cosine
|
46 |
+
- lr_scheduler_warmup_steps: 1000
|
47 |
+
- num_epochs: 1
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
54 |
+
| 2.5691 | 0.08 | 5000 | 1.7463 |
|
55 |
+
| 1.6818 | 0.15 | 10000 | 1.5248 |
|
56 |
+
| 1.5328 | 0.23 | 15000 | 1.4226 |
|
57 |
+
| 1.4521 | 0.31 | 20000 | 1.3569 |
|
58 |
+
| 1.3944 | 0.38 | 25000 | 1.3030 |
|
59 |
+
| 1.3422 | 0.46 | 30000 | 1.2558 |
|
60 |
+
| 1.2976 | 0.54 | 35000 | 1.2129 |
|
61 |
+
| 1.2514 | 0.61 | 40000 | 1.1714 |
|
62 |
+
| 1.2089 | 0.69 | 45000 | 1.1321 |
|
63 |
+
| 1.1737 | 0.77 | 50000 | 1.0990 |
|
64 |
+
| 1.1427 | 0.84 | 55000 | 1.0758 |
|
65 |
+
| 1.1242 | 0.92 | 60000 | 1.0636 |
|
66 |
+
| 1.1142 | 1.0 | 65000 | 1.0606 |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- Transformers 4.35.2
|
72 |
+
- Pytorch 1.11.0+cu102
|
73 |
+
- Datasets 2.15.0
|
74 |
+
- Tokenizers 0.15.0
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 0,
|
5 |
+
"transformers_version": "4.35.2"
|
6 |
+
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 496984704
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:160bc17c8dcbe8ccad534dbfa399978b646d41a13149b0d714c3d0fdce52fc0f
|
3 |
size 496984704
|