End of training
Browse files- README.md +132 -0
- config.json +39 -0
- generation_config.json +6 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +20 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: gpt2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: python-gpt2
|
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 |
+
# python-gpt2
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 2.1448
|
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: 0.0005
|
38 |
+
- train_batch_size: 32
|
39 |
+
- eval_batch_size: 32
|
40 |
+
- seed: 42
|
41 |
+
- gradient_accumulation_steps: 8
|
42 |
+
- total_train_batch_size: 256
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: cosine
|
45 |
+
- lr_scheduler_warmup_steps: 100
|
46 |
+
- num_epochs: 1
|
47 |
+
- mixed_precision_training: Native AMP
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
52 |
+
|:-------------:|:------:|:----:|:---------------:|
|
53 |
+
| 9.2956 | 0.0138 | 25 | 7.9483 |
|
54 |
+
| 6.8319 | 0.0275 | 50 | 6.0463 |
|
55 |
+
| 5.653 | 0.0413 | 75 | 5.3905 |
|
56 |
+
| 5.0998 | 0.0551 | 100 | 5.0523 |
|
57 |
+
| 4.7296 | 0.0688 | 125 | 4.7295 |
|
58 |
+
| 4.4676 | 0.0826 | 150 | 4.4801 |
|
59 |
+
| 4.2285 | 0.0964 | 175 | 4.2580 |
|
60 |
+
| 4.0335 | 0.1101 | 200 | 4.0891 |
|
61 |
+
| 3.8654 | 0.1239 | 225 | 3.9376 |
|
62 |
+
| 3.7442 | 0.1377 | 250 | 3.8222 |
|
63 |
+
| 3.6155 | 0.1514 | 275 | 3.7006 |
|
64 |
+
| 3.4805 | 0.1652 | 300 | 3.5997 |
|
65 |
+
| 3.3804 | 0.1790 | 325 | 3.4840 |
|
66 |
+
| 3.3074 | 0.1927 | 350 | 3.3887 |
|
67 |
+
| 3.1737 | 0.2065 | 375 | 3.2711 |
|
68 |
+
| 3.0593 | 0.2203 | 400 | 3.1535 |
|
69 |
+
| 2.9634 | 0.2340 | 425 | 3.0443 |
|
70 |
+
| 2.887 | 0.2478 | 450 | 2.9574 |
|
71 |
+
| 2.7808 | 0.2616 | 475 | 2.8775 |
|
72 |
+
| 2.7117 | 0.2753 | 500 | 2.8190 |
|
73 |
+
| 2.6611 | 0.2891 | 525 | 2.7515 |
|
74 |
+
| 2.6141 | 0.3029 | 550 | 2.7097 |
|
75 |
+
| 2.5752 | 0.3167 | 575 | 2.6704 |
|
76 |
+
| 2.5038 | 0.3304 | 600 | 2.6307 |
|
77 |
+
| 2.4852 | 0.3442 | 625 | 2.6004 |
|
78 |
+
| 2.4638 | 0.3580 | 650 | 2.5696 |
|
79 |
+
| 2.4362 | 0.3717 | 675 | 2.5343 |
|
80 |
+
| 2.3896 | 0.3855 | 700 | 2.5131 |
|
81 |
+
| 2.3669 | 0.3993 | 725 | 2.4886 |
|
82 |
+
| 2.3174 | 0.4130 | 750 | 2.4695 |
|
83 |
+
| 2.3152 | 0.4268 | 775 | 2.4478 |
|
84 |
+
| 2.2916 | 0.4406 | 800 | 2.4271 |
|
85 |
+
| 2.2743 | 0.4543 | 825 | 2.4166 |
|
86 |
+
| 2.2555 | 0.4681 | 850 | 2.3959 |
|
87 |
+
| 2.2545 | 0.4819 | 875 | 2.3794 |
|
88 |
+
| 2.2291 | 0.4956 | 900 | 2.3645 |
|
89 |
+
| 2.2032 | 0.5094 | 925 | 2.3499 |
|
90 |
+
| 2.1842 | 0.5232 | 950 | 2.3382 |
|
91 |
+
| 2.1505 | 0.5369 | 975 | 2.3263 |
|
92 |
+
| 2.1668 | 0.5507 | 1000 | 2.3147 |
|
93 |
+
| 2.1649 | 0.5645 | 1025 | 2.3072 |
|
94 |
+
| 2.1427 | 0.5782 | 1050 | 2.2926 |
|
95 |
+
| 2.1051 | 0.5920 | 1075 | 2.2799 |
|
96 |
+
| 2.0792 | 0.6058 | 1100 | 2.2708 |
|
97 |
+
| 2.1171 | 0.6195 | 1125 | 2.2570 |
|
98 |
+
| 2.1012 | 0.6333 | 1150 | 2.2470 |
|
99 |
+
| 2.0853 | 0.6471 | 1175 | 2.2405 |
|
100 |
+
| 2.0786 | 0.6608 | 1200 | 2.2312 |
|
101 |
+
| 2.0664 | 0.6746 | 1225 | 2.2238 |
|
102 |
+
| 2.0706 | 0.6884 | 1250 | 2.2183 |
|
103 |
+
| 2.0557 | 0.7021 | 1275 | 2.2102 |
|
104 |
+
| 2.0404 | 0.7159 | 1300 | 2.2042 |
|
105 |
+
| 2.0493 | 0.7297 | 1325 | 2.1978 |
|
106 |
+
| 2.0373 | 0.7434 | 1350 | 2.1907 |
|
107 |
+
| 2.0093 | 0.7572 | 1375 | 2.1837 |
|
108 |
+
| 2.0228 | 0.7710 | 1400 | 2.1819 |
|
109 |
+
| 2.0147 | 0.7847 | 1425 | 2.1739 |
|
110 |
+
| 2.0206 | 0.7985 | 1450 | 2.1694 |
|
111 |
+
| 2.0156 | 0.8123 | 1475 | 2.1671 |
|
112 |
+
| 2.0126 | 0.8260 | 1500 | 2.1622 |
|
113 |
+
| 1.9834 | 0.8398 | 1525 | 2.1598 |
|
114 |
+
| 2.0182 | 0.8536 | 1550 | 2.1558 |
|
115 |
+
| 1.9876 | 0.8674 | 1575 | 2.1543 |
|
116 |
+
| 1.9914 | 0.8811 | 1600 | 2.1515 |
|
117 |
+
| 1.9933 | 0.8949 | 1625 | 2.1498 |
|
118 |
+
| 1.9945 | 0.9087 | 1650 | 2.1483 |
|
119 |
+
| 1.9733 | 0.9224 | 1675 | 2.1470 |
|
120 |
+
| 1.9778 | 0.9362 | 1700 | 2.1467 |
|
121 |
+
| 1.983 | 0.9500 | 1725 | 2.1454 |
|
122 |
+
| 1.9716 | 0.9637 | 1750 | 2.1453 |
|
123 |
+
| 1.9668 | 0.9775 | 1775 | 2.1449 |
|
124 |
+
| 1.9733 | 0.9913 | 1800 | 2.1448 |
|
125 |
+
|
126 |
+
|
127 |
+
### Framework versions
|
128 |
+
|
129 |
+
- Transformers 4.40.1
|
130 |
+
- Pytorch 2.2.0+cu121
|
131 |
+
- Datasets 2.19.0
|
132 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "gpt2",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"GPT2LMHeadModel"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.1,
|
8 |
+
"bos_token_id": 0,
|
9 |
+
"embd_pdrop": 0.1,
|
10 |
+
"eos_token_id": 0,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"layer_norm_epsilon": 1e-05,
|
13 |
+
"model_type": "gpt2",
|
14 |
+
"n_ctx": 256,
|
15 |
+
"n_embd": 768,
|
16 |
+
"n_head": 12,
|
17 |
+
"n_inner": null,
|
18 |
+
"n_layer": 12,
|
19 |
+
"n_positions": 1024,
|
20 |
+
"reorder_and_upcast_attn": false,
|
21 |
+
"resid_pdrop": 0.1,
|
22 |
+
"scale_attn_by_inverse_layer_idx": false,
|
23 |
+
"scale_attn_weights": true,
|
24 |
+
"summary_activation": null,
|
25 |
+
"summary_first_dropout": 0.1,
|
26 |
+
"summary_proj_to_labels": true,
|
27 |
+
"summary_type": "cls_index",
|
28 |
+
"summary_use_proj": true,
|
29 |
+
"task_specific_params": {
|
30 |
+
"text-generation": {
|
31 |
+
"do_sample": true,
|
32 |
+
"max_length": 50
|
33 |
+
}
|
34 |
+
},
|
35 |
+
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.40.1",
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 50000
|
39 |
+
}
|
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.40.1"
|
6 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1c7c59e760f7dbcb043beec222d867311d7d08b2f4c6e87a16ba92dd9dbbc553
|
3 |
+
size 496984704
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|endoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "<|endoftext|>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<|endoftext|>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
}
|
12 |
+
},
|
13 |
+
"bos_token": "<|endoftext|>",
|
14 |
+
"clean_up_tokenization_spaces": true,
|
15 |
+
"eos_token": "<|endoftext|>",
|
16 |
+
"model_max_length": 1024,
|
17 |
+
"pad_token": "<|endoftext|>",
|
18 |
+
"tokenizer_class": "GPT2Tokenizer",
|
19 |
+
"unk_token": "<|endoftext|>"
|
20 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be553a13a04e8a6e532e6452102643a897d112399c1e2bcad52946e32652e80d
|
3 |
+
size 4920
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|