temporal/gpt2-large-finetuned-tempwiki
Browse files- README.md +113 -0
- config.json +39 -0
- generation_config.json +5 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +6 -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,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: gpt2-large
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- rouge
|
8 |
+
model-index:
|
9 |
+
- name: gpt2-large-finetuned2
|
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-large-finetuned2
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [gpt2-large](https://huggingface.co/gpt2-large) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.6494
|
21 |
+
- Rouge1: 0.9235
|
22 |
+
- Rouge2: 0.9153
|
23 |
+
- Rougel: 0.9235
|
24 |
+
- Rougelsum: 0.9235
|
25 |
+
- Gen Len: 17.061
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- learning_rate: 0.0003
|
45 |
+
- train_batch_size: 32
|
46 |
+
- eval_batch_size: 32
|
47 |
+
- seed: 1
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- num_epochs: 50
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|
55 |
+
|:-------------:|:-----:|:-----:|:---------------:|:------:|:------:|:------:|:---------:|:-------:|
|
56 |
+
| 2.4757 | 1.0 | 278 | 1.5505 | 0.9312 | 0.9247 | 0.9312 | 0.9312 | 17.061 |
|
57 |
+
| 1.6314 | 2.0 | 556 | 1.2537 | 0.929 | 0.9222 | 0.929 | 0.929 | 17.061 |
|
58 |
+
| 1.3746 | 3.0 | 834 | 1.1054 | 0.9246 | 0.917 | 0.9246 | 0.9247 | 17.061 |
|
59 |
+
| 1.225 | 4.0 | 1112 | 1.0012 | 0.9294 | 0.9226 | 0.9293 | 0.9293 | 17.061 |
|
60 |
+
| 1.108 | 5.0 | 1390 | 0.9411 | 0.9253 | 0.9177 | 0.9253 | 0.9253 | 17.061 |
|
61 |
+
| 1.0381 | 6.0 | 1668 | 0.8901 | 0.9247 | 0.9173 | 0.9247 | 0.9247 | 17.061 |
|
62 |
+
| 0.9722 | 7.0 | 1946 | 0.8340 | 0.9247 | 0.917 | 0.9247 | 0.9247 | 17.061 |
|
63 |
+
| 0.9134 | 8.0 | 2224 | 0.7975 | 0.9236 | 0.9156 | 0.9236 | 0.9237 | 17.061 |
|
64 |
+
| 0.8894 | 9.0 | 2502 | 0.7745 | 0.9231 | 0.9158 | 0.9231 | 0.9232 | 17.061 |
|
65 |
+
| 0.8387 | 10.0 | 2780 | 0.7567 | 0.9212 | 0.9132 | 0.9212 | 0.9212 | 17.061 |
|
66 |
+
| 0.8224 | 11.0 | 3058 | 0.7374 | 0.9232 | 0.9152 | 0.9232 | 0.9232 | 17.061 |
|
67 |
+
| 0.8071 | 12.0 | 3336 | 0.7298 | 0.9237 | 0.9158 | 0.9237 | 0.9237 | 17.061 |
|
68 |
+
| 0.7973 | 13.0 | 3614 | 0.7209 | 0.9238 | 0.9161 | 0.9238 | 0.9238 | 17.061 |
|
69 |
+
| 0.7715 | 14.0 | 3892 | 0.7217 | 0.9231 | 0.915 | 0.9231 | 0.9231 | 17.061 |
|
70 |
+
| 0.771 | 15.0 | 4170 | 0.7085 | 0.9224 | 0.9139 | 0.9224 | 0.9224 | 17.061 |
|
71 |
+
| 0.7617 | 16.0 | 4448 | 0.7041 | 0.9211 | 0.9123 | 0.9211 | 0.9211 | 17.061 |
|
72 |
+
| 0.7603 | 17.0 | 4726 | 0.7004 | 0.9226 | 0.9146 | 0.9226 | 0.9227 | 17.061 |
|
73 |
+
| 0.7539 | 18.0 | 5004 | 0.6976 | 0.9253 | 0.9173 | 0.9252 | 0.9253 | 17.061 |
|
74 |
+
| 0.741 | 19.0 | 5282 | 0.6907 | 0.9229 | 0.9146 | 0.9229 | 0.9229 | 17.061 |
|
75 |
+
| 0.7422 | 20.0 | 5560 | 0.6898 | 0.9222 | 0.9141 | 0.9222 | 0.9222 | 17.061 |
|
76 |
+
| 0.7333 | 21.0 | 5838 | 0.6880 | 0.9223 | 0.9138 | 0.9223 | 0.9223 | 17.061 |
|
77 |
+
| 0.7378 | 22.0 | 6116 | 0.6837 | 0.9222 | 0.914 | 0.9222 | 0.9222 | 17.061 |
|
78 |
+
| 0.723 | 23.0 | 6394 | 0.6849 | 0.9225 | 0.914 | 0.9225 | 0.9225 | 17.061 |
|
79 |
+
| 0.7277 | 24.0 | 6672 | 0.6791 | 0.9235 | 0.9148 | 0.9235 | 0.9235 | 17.061 |
|
80 |
+
| 0.7222 | 25.0 | 6950 | 0.6834 | 0.9267 | 0.9189 | 0.9267 | 0.9267 | 17.061 |
|
81 |
+
| 0.7235 | 26.0 | 7228 | 0.6749 | 0.9221 | 0.9139 | 0.9221 | 0.9221 | 17.061 |
|
82 |
+
| 0.7207 | 27.0 | 7506 | 0.6741 | 0.9231 | 0.9149 | 0.9231 | 0.9231 | 17.061 |
|
83 |
+
| 0.7106 | 28.0 | 7784 | 0.6718 | 0.9224 | 0.9141 | 0.9224 | 0.9224 | 17.061 |
|
84 |
+
| 0.7086 | 29.0 | 8062 | 0.6706 | 0.9233 | 0.9153 | 0.9233 | 0.9233 | 17.061 |
|
85 |
+
| 0.7086 | 30.0 | 8340 | 0.6680 | 0.9241 | 0.9161 | 0.9241 | 0.9241 | 17.061 |
|
86 |
+
| 0.7081 | 31.0 | 8618 | 0.6678 | 0.9257 | 0.9177 | 0.9257 | 0.9257 | 17.061 |
|
87 |
+
| 0.6977 | 32.0 | 8896 | 0.6651 | 0.9229 | 0.9146 | 0.9229 | 0.9229 | 17.061 |
|
88 |
+
| 0.6937 | 33.0 | 9174 | 0.6634 | 0.9247 | 0.9167 | 0.9246 | 0.9247 | 17.061 |
|
89 |
+
| 0.6998 | 34.0 | 9452 | 0.6636 | 0.9243 | 0.916 | 0.9243 | 0.9243 | 17.061 |
|
90 |
+
| 0.6932 | 35.0 | 9730 | 0.6627 | 0.9254 | 0.9175 | 0.9254 | 0.9254 | 17.061 |
|
91 |
+
| 0.6978 | 36.0 | 10008 | 0.6612 | 0.9236 | 0.9154 | 0.9236 | 0.9236 | 17.061 |
|
92 |
+
| 0.6881 | 37.0 | 10286 | 0.6612 | 0.9251 | 0.9174 | 0.9251 | 0.9251 | 17.061 |
|
93 |
+
| 0.6874 | 38.0 | 10564 | 0.6589 | 0.9247 | 0.9167 | 0.9247 | 0.9247 | 17.061 |
|
94 |
+
| 0.6898 | 39.0 | 10842 | 0.6579 | 0.9235 | 0.9153 | 0.9235 | 0.9235 | 17.061 |
|
95 |
+
| 0.6857 | 40.0 | 11120 | 0.6568 | 0.9231 | 0.915 | 0.9231 | 0.9232 | 17.061 |
|
96 |
+
| 0.6751 | 41.0 | 11398 | 0.6554 | 0.924 | 0.9161 | 0.924 | 0.924 | 17.061 |
|
97 |
+
| 0.6782 | 42.0 | 11676 | 0.6547 | 0.9243 | 0.9164 | 0.9243 | 0.9243 | 17.061 |
|
98 |
+
| 0.6775 | 43.0 | 11954 | 0.6537 | 0.9242 | 0.9162 | 0.9242 | 0.9242 | 17.061 |
|
99 |
+
| 0.6764 | 44.0 | 12232 | 0.6530 | 0.923 | 0.9148 | 0.923 | 0.923 | 17.061 |
|
100 |
+
| 0.6741 | 45.0 | 12510 | 0.6524 | 0.9242 | 0.9161 | 0.9242 | 0.9242 | 17.061 |
|
101 |
+
| 0.6638 | 46.0 | 12788 | 0.6515 | 0.9241 | 0.9159 | 0.9241 | 0.9241 | 17.061 |
|
102 |
+
| 0.6634 | 47.0 | 13066 | 0.6509 | 0.9242 | 0.916 | 0.9242 | 0.9242 | 17.061 |
|
103 |
+
| 0.6614 | 48.0 | 13344 | 0.6500 | 0.9238 | 0.9156 | 0.9238 | 0.9238 | 17.061 |
|
104 |
+
| 0.6595 | 49.0 | 13622 | 0.6495 | 0.9236 | 0.9154 | 0.9236 | 0.9236 | 17.061 |
|
105 |
+
| 0.6541 | 50.0 | 13900 | 0.6494 | 0.9235 | 0.9153 | 0.9235 | 0.9235 | 17.061 |
|
106 |
+
|
107 |
+
|
108 |
+
### Framework versions
|
109 |
+
|
110 |
+
- Transformers 4.34.1
|
111 |
+
- Pytorch 2.0.1
|
112 |
+
- Datasets 2.14.6
|
113 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "gpt2-large",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"GPT2LMHeadModel"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.1,
|
8 |
+
"bos_token_id": 50256,
|
9 |
+
"embd_pdrop": 0.1,
|
10 |
+
"eos_token_id": 50256,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"layer_norm_epsilon": 1e-05,
|
13 |
+
"model_type": "gpt2",
|
14 |
+
"n_ctx": 1024,
|
15 |
+
"n_embd": 1280,
|
16 |
+
"n_head": 20,
|
17 |
+
"n_inner": null,
|
18 |
+
"n_layer": 36,
|
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.34.1",
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 50257
|
39 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 50256,
|
3 |
+
"eos_token_id": 50256,
|
4 |
+
"transformers_version": "4.34.1"
|
5 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5045f4e916b041ab5823980f16458adaa58a05639c5988310b86eb05f148db9
|
3 |
+
size 3096262685
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<|endoftext|>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"pad_token": "<|endoftext|>",
|
5 |
+
"unk_token": "<|endoftext|>"
|
6 |
+
}
|
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 |
+
"50256": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
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:9d185b9b41466a4adc1fe7f4448537aff8ac2911e46e88853f51f7efa1f9a5c4
|
3 |
+
size 4219
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|