satoshi-2000 commited on
Commit
2793ba9
·
1 Parent(s): ab12efa

Upload 11 files

Browse files
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: epoch_10_1
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
+ # epoch_10_1
16
+
17
+ This model is a fine-tuned version of [rinna/japanese-gpt2-medium](https://huggingface.co/rinna/japanese-gpt2-medium) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 1.2078
20
+ - Accuracy: 0.7527
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 5e-05
40
+ - train_batch_size: 3
41
+ - eval_batch_size: 3
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 10.0
46
+
47
+ ### Training results
48
+
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.18.0.dev0
54
+ - Pytorch 1.11.0+cu102
55
+ - Datasets 2.0.0
56
+ - Tokenizers 0.11.6
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.7527454204826329,
4
+ "eval_loss": 1.2078169584274292,
5
+ "eval_runtime": 282.4779,
6
+ "eval_samples": 2732,
7
+ "eval_samples_per_second": 9.672,
8
+ "eval_steps_per_second": 3.225,
9
+ "perplexity": 3.3461718411294057,
10
+ "train_loss": 1.7279373135446325,
11
+ "train_runtime": 6450.8845,
12
+ "train_samples": 2732,
13
+ "train_samples_per_second": 4.235,
14
+ "train_steps_per_second": 1.412
15
+ }
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "rinna/japanese-gpt2-medium",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 1,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 2,
11
+ "gradient_checkpointing": false,
12
+ "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
+ "n_ctx": 1024,
16
+ "n_embd": 1024,
17
+ "n_head": 16,
18
+ "n_inner": 4096,
19
+ "n_layer": 24,
20
+ "n_positions": 1024,
21
+ "reorder_and_upcast_attn": false,
22
+ "resid_pdrop": 0.1,
23
+ "scale_attn_by_inverse_layer_idx": false,
24
+ "scale_attn_weights": true,
25
+ "summary_activation": null,
26
+ "summary_first_dropout": 0.1,
27
+ "summary_proj_to_labels": true,
28
+ "summary_type": "cls_index",
29
+ "summary_use_proj": true,
30
+ "task_specific_params": {
31
+ "text-generation": {
32
+ "do_sample": true,
33
+ "max_length": 50
34
+ }
35
+ },
36
+ "torch_dtype": "float32",
37
+ "transformers_version": "4.18.0.dev0",
38
+ "use_cache": true,
39
+ "vocab_size": 32000
40
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_accuracy": 0.7527454204826329,
4
+ "eval_loss": 1.2078169584274292,
5
+ "eval_runtime": 282.4779,
6
+ "eval_samples": 2732,
7
+ "eval_samples_per_second": 9.672,
8
+ "eval_steps_per_second": 3.225,
9
+ "perplexity": 3.3461718411294057
10
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fdae8a559e03c6ce19615ef8fb5d6212a395fb1b5378c3ff75f10451d4728b2
3
+ size 1369801817
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5cbdfa8aa7c54c8c5af85b78c309c54a5f2749a20468bf6f60eee007fe6fec1
3
+ size 805634
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"eos_token": "</s>", "unk_token": "<unk>", "pad_token": "[PAD]", "extra_ids": 0, "additional_special_tokens": [], "sp_model_kwargs": {}, "bos_token": "<s>", "cls_token": "[CLS]", "sep_token": "[SEP]", "mask_token": "[MASK]", "do_lower_case": true, "use_fast": false, "special_tokens_map_file": "/home/seich/.cache/huggingface/transformers/42091916a8a40b3949b8a4f56ce63e437a166ae0e88d1d15546860c13bdc5ceb.9049458ebcd1cf666b7b0a046aa394597f12e611077571cfc86e0938f8675d82", "name_or_path": "rinna/japanese-gpt2-medium", "tokenizer_class": "T5Tokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "train_loss": 1.7279373135446325,
4
+ "train_runtime": 6450.8845,
5
+ "train_samples": 2732,
6
+ "train_samples_per_second": 4.235,
7
+ "train_steps_per_second": 1.412
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 10.0,
5
+ "global_step": 9110,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.55,
12
+ "learning_rate": 4.725576289791438e-05,
13
+ "loss": 2.4428,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 1.1,
18
+ "learning_rate": 4.451152579582876e-05,
19
+ "loss": 2.2742,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 1.65,
24
+ "learning_rate": 4.176728869374314e-05,
25
+ "loss": 2.1079,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 2.2,
30
+ "learning_rate": 3.902305159165752e-05,
31
+ "loss": 2.0447,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 2.74,
36
+ "learning_rate": 3.62788144895719e-05,
37
+ "loss": 1.9388,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 3.29,
42
+ "learning_rate": 3.353457738748628e-05,
43
+ "loss": 1.8627,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 3.84,
48
+ "learning_rate": 3.079034028540066e-05,
49
+ "loss": 1.805,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 4.39,
54
+ "learning_rate": 2.8046103183315044e-05,
55
+ "loss": 1.7183,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 4.94,
60
+ "learning_rate": 2.530186608122942e-05,
61
+ "loss": 1.6946,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 5.49,
66
+ "learning_rate": 2.25576289791438e-05,
67
+ "loss": 1.5987,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 6.04,
72
+ "learning_rate": 1.981339187705818e-05,
73
+ "loss": 1.5931,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 6.59,
78
+ "learning_rate": 1.7069154774972558e-05,
79
+ "loss": 1.5127,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 7.14,
84
+ "learning_rate": 1.432491767288694e-05,
85
+ "loss": 1.5066,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 7.68,
90
+ "learning_rate": 1.1580680570801318e-05,
91
+ "loss": 1.4534,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 8.23,
96
+ "learning_rate": 8.836443468715698e-06,
97
+ "loss": 1.4371,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 8.78,
102
+ "learning_rate": 6.092206366630078e-06,
103
+ "loss": 1.4109,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 9.33,
108
+ "learning_rate": 3.3479692645444565e-06,
109
+ "loss": 1.395,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 9.88,
114
+ "learning_rate": 6.037321624588365e-07,
115
+ "loss": 1.3817,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 10.0,
120
+ "step": 9110,
121
+ "total_flos": 5.074420594900992e+16,
122
+ "train_loss": 1.7279373135446325,
123
+ "train_runtime": 6450.8845,
124
+ "train_samples_per_second": 4.235,
125
+ "train_steps_per_second": 1.412
126
+ }
127
+ ],
128
+ "max_steps": 9110,
129
+ "num_train_epochs": 10,
130
+ "total_flos": 5.074420594900992e+16,
131
+ "trial_name": null,
132
+ "trial_params": null
133
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcf8702d07bf20dfa11191146f1ad63e92f90f981a7a2b9396e3012cd35db0fb
3
+ size 3055