Jonas Widmer
commited on
Commit
•
4c654dd
1
Parent(s):
1f6a314
initial commit
Browse files- README.md +70 -0
- added_tokens.json +3 -0
- all_results.json +15 -0
- config.json +40 -0
- eval_results.json +10 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +5 -0
- tokenizer.json +0 -0
- tokenizer_config.json +10 -0
- train_results.json +8 -0
- trainer_state.json +169 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
CHANGED
@@ -1,3 +1,73 @@
|
|
1 |
---
|
2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
model-index:
|
8 |
+
- name: 22_12_13_luther_blocks_larger_fp16_20ep
|
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 |
+
# 22_12_13_luther_blocks_larger_fp16_20ep
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [stefan-it/german-gpt2-larger](https://huggingface.co/stefan-it/german-gpt2-larger) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 3.5847
|
20 |
+
- Accuracy: 0.3168
|
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: 8
|
41 |
+
- eval_batch_size: 8
|
42 |
+
- seed: 42
|
43 |
+
- gradient_accumulation_steps: 2
|
44 |
+
- total_train_batch_size: 16
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- num_epochs: 20.0
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
54 |
+
| No log | 1.6 | 50 | 4.6218 | 0.2156 |
|
55 |
+
| 8.1175 | 3.22 | 100 | 4.0404 | 0.2633 |
|
56 |
+
| 8.1175 | 4.83 | 150 | 3.8120 | 0.2871 |
|
57 |
+
| 3.734 | 6.44 | 200 | 3.7062 | 0.2997 |
|
58 |
+
| 3.734 | 8.06 | 250 | 3.6382 | 0.3082 |
|
59 |
+
| 3.3639 | 9.67 | 300 | 3.6108 | 0.3128 |
|
60 |
+
| 3.3639 | 11.29 | 350 | 3.6012 | 0.3148 |
|
61 |
+
| 3.1363 | 12.89 | 400 | 3.5847 | 0.3168 |
|
62 |
+
| 3.1363 | 14.51 | 450 | 3.5914 | 0.3180 |
|
63 |
+
| 2.9884 | 16.13 | 500 | 3.5954 | 0.3177 |
|
64 |
+
| 2.9884 | 17.73 | 550 | 3.6001 | 0.3176 |
|
65 |
+
| 2.8748 | 19.35 | 600 | 3.6048 | 0.3188 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.26.0.dev0
|
71 |
+
- Pytorch 1.13.0
|
72 |
+
- Datasets 2.7.1
|
73 |
+
- Tokenizers 0.12.1
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 50265
|
3 |
+
}
|
all_results.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 19.98,
|
3 |
+
"eval_accuracy": 0.31680776111695164,
|
4 |
+
"eval_loss": 3.5847387313842773,
|
5 |
+
"eval_runtime": 1.1014,
|
6 |
+
"eval_samples": 53,
|
7 |
+
"eval_samples_per_second": 48.123,
|
8 |
+
"eval_steps_per_second": 6.356,
|
9 |
+
"perplexity": 36.04393933841306,
|
10 |
+
"train_loss": 3.996271416448778,
|
11 |
+
"train_runtime": 495.8533,
|
12 |
+
"train_samples": 500,
|
13 |
+
"train_samples_per_second": 20.167,
|
14 |
+
"train_steps_per_second": 1.25
|
15 |
+
}
|
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "stefan-it/german-gpt2-larger",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"GPT2LMHeadModel"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.0,
|
8 |
+
"bos_token_id": 50256,
|
9 |
+
"embd_pdrop": 0.0,
|
10 |
+
"eos_token_id": 50256,
|
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": 768,
|
17 |
+
"n_head": 12,
|
18 |
+
"n_inner": null,
|
19 |
+
"n_layer": 12,
|
20 |
+
"n_positions": 1024,
|
21 |
+
"reorder_and_upcast_attn": false,
|
22 |
+
"resid_pdrop": 0.0,
|
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.26.0.dev0",
|
38 |
+
"use_cache": true,
|
39 |
+
"vocab_size": 50266
|
40 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 19.98,
|
3 |
+
"eval_accuracy": 0.31680776111695164,
|
4 |
+
"eval_loss": 3.5847387313842773,
|
5 |
+
"eval_runtime": 1.1014,
|
6 |
+
"eval_samples": 53,
|
7 |
+
"eval_samples_per_second": 48.123,
|
8 |
+
"eval_steps_per_second": 6.356,
|
9 |
+
"perplexity": 36.04393933841306
|
10 |
+
}
|
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:32252ab5a3e3e702e7b04b061799e5f111fb9ecd1c6cf27240073fa0fa22b56e
|
3 |
+
size 510425661
|
special_tokens_map.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<|endoftext|>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"unk_token": "<|endoftext|>"
|
5 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"bos_token": "<|endoftext|>",
|
4 |
+
"eos_token": "<|endoftext|>",
|
5 |
+
"model_max_length": 1000000000000000019884624838656,
|
6 |
+
"name_or_path": "stefan-it/german-gpt2-larger",
|
7 |
+
"special_tokens_map_file": null,
|
8 |
+
"tokenizer_class": "GPT2Tokenizer",
|
9 |
+
"unk_token": "<|endoftext|>"
|
10 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 19.98,
|
3 |
+
"train_loss": 3.996271416448778,
|
4 |
+
"train_runtime": 495.8533,
|
5 |
+
"train_samples": 500,
|
6 |
+
"train_samples_per_second": 20.167,
|
7 |
+
"train_steps_per_second": 1.25
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 3.5847387313842773,
|
3 |
+
"best_model_checkpoint": "./models/22_12_13_luther_blocks_larger_fp16_20ep/checkpoint-400",
|
4 |
+
"epoch": 19.984126984126984,
|
5 |
+
"global_step": 620,
|
6 |
+
"is_hyper_param_search": false,
|
7 |
+
"is_local_process_zero": true,
|
8 |
+
"is_world_process_zero": true,
|
9 |
+
"log_history": [
|
10 |
+
{
|
11 |
+
"epoch": 1.6,
|
12 |
+
"eval_accuracy": 0.21560707501060514,
|
13 |
+
"eval_loss": 4.621785640716553,
|
14 |
+
"eval_runtime": 1.1004,
|
15 |
+
"eval_samples_per_second": 48.163,
|
16 |
+
"eval_steps_per_second": 6.361,
|
17 |
+
"step": 50
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"epoch": 3.22,
|
21 |
+
"learning_rate": 4.2338709677419356e-05,
|
22 |
+
"loss": 8.1175,
|
23 |
+
"step": 100
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 3.22,
|
27 |
+
"eval_accuracy": 0.263284088603626,
|
28 |
+
"eval_loss": 4.0403876304626465,
|
29 |
+
"eval_runtime": 1.1008,
|
30 |
+
"eval_samples_per_second": 48.145,
|
31 |
+
"eval_steps_per_second": 6.359,
|
32 |
+
"step": 100
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 4.83,
|
36 |
+
"eval_accuracy": 0.28707648610265774,
|
37 |
+
"eval_loss": 3.8119544982910156,
|
38 |
+
"eval_runtime": 1.1015,
|
39 |
+
"eval_samples_per_second": 48.117,
|
40 |
+
"eval_steps_per_second": 6.355,
|
41 |
+
"step": 150
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"epoch": 6.44,
|
45 |
+
"learning_rate": 3.427419354838709e-05,
|
46 |
+
"loss": 3.734,
|
47 |
+
"step": 200
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 6.44,
|
51 |
+
"eval_accuracy": 0.299655102454859,
|
52 |
+
"eval_loss": 3.7062137126922607,
|
53 |
+
"eval_runtime": 1.1015,
|
54 |
+
"eval_samples_per_second": 48.116,
|
55 |
+
"eval_steps_per_second": 6.355,
|
56 |
+
"step": 200
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 8.06,
|
60 |
+
"eval_accuracy": 0.3081576569099393,
|
61 |
+
"eval_loss": 3.638169765472412,
|
62 |
+
"eval_runtime": 1.1008,
|
63 |
+
"eval_samples_per_second": 48.148,
|
64 |
+
"eval_steps_per_second": 6.359,
|
65 |
+
"step": 250
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 9.67,
|
69 |
+
"learning_rate": 2.620967741935484e-05,
|
70 |
+
"loss": 3.3639,
|
71 |
+
"step": 300
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"epoch": 9.67,
|
75 |
+
"eval_accuracy": 0.3127685866578137,
|
76 |
+
"eval_loss": 3.610761880874634,
|
77 |
+
"eval_runtime": 1.1014,
|
78 |
+
"eval_samples_per_second": 48.121,
|
79 |
+
"eval_steps_per_second": 6.356,
|
80 |
+
"step": 300
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 11.29,
|
84 |
+
"eval_accuracy": 0.31479739574687843,
|
85 |
+
"eval_loss": 3.6012349128723145,
|
86 |
+
"eval_runtime": 1.1022,
|
87 |
+
"eval_samples_per_second": 48.084,
|
88 |
+
"eval_steps_per_second": 6.351,
|
89 |
+
"step": 350
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"epoch": 12.89,
|
93 |
+
"learning_rate": 1.8145161290322583e-05,
|
94 |
+
"loss": 3.1363,
|
95 |
+
"step": 400
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 12.89,
|
99 |
+
"eval_accuracy": 0.31680776111695164,
|
100 |
+
"eval_loss": 3.5847387313842773,
|
101 |
+
"eval_runtime": 1.1008,
|
102 |
+
"eval_samples_per_second": 48.147,
|
103 |
+
"eval_steps_per_second": 6.359,
|
104 |
+
"step": 400
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 14.51,
|
108 |
+
"eval_accuracy": 0.31802504657039044,
|
109 |
+
"eval_loss": 3.5913662910461426,
|
110 |
+
"eval_runtime": 1.0976,
|
111 |
+
"eval_samples_per_second": 48.286,
|
112 |
+
"eval_steps_per_second": 6.377,
|
113 |
+
"step": 450
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"epoch": 16.13,
|
117 |
+
"learning_rate": 1.0080645161290323e-05,
|
118 |
+
"loss": 2.9884,
|
119 |
+
"step": 500
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"epoch": 16.13,
|
123 |
+
"eval_accuracy": 0.317711503347535,
|
124 |
+
"eval_loss": 3.5954136848449707,
|
125 |
+
"eval_runtime": 1.0979,
|
126 |
+
"eval_samples_per_second": 48.272,
|
127 |
+
"eval_steps_per_second": 6.376,
|
128 |
+
"step": 500
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 17.73,
|
132 |
+
"eval_accuracy": 0.317563953595603,
|
133 |
+
"eval_loss": 3.600076675415039,
|
134 |
+
"eval_runtime": 1.1024,
|
135 |
+
"eval_samples_per_second": 48.075,
|
136 |
+
"eval_steps_per_second": 6.35,
|
137 |
+
"step": 550
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 19.35,
|
141 |
+
"learning_rate": 2.0161290322580646e-06,
|
142 |
+
"loss": 2.8748,
|
143 |
+
"step": 600
|
144 |
+
},
|
145 |
+
{
|
146 |
+
"epoch": 19.35,
|
147 |
+
"eval_accuracy": 0.31879968276803333,
|
148 |
+
"eval_loss": 3.604796886444092,
|
149 |
+
"eval_runtime": 1.1023,
|
150 |
+
"eval_samples_per_second": 48.08,
|
151 |
+
"eval_steps_per_second": 6.35,
|
152 |
+
"step": 600
|
153 |
+
},
|
154 |
+
{
|
155 |
+
"epoch": 19.98,
|
156 |
+
"step": 620,
|
157 |
+
"total_flos": 5223750303744000.0,
|
158 |
+
"train_loss": 3.996271416448778,
|
159 |
+
"train_runtime": 495.8533,
|
160 |
+
"train_samples_per_second": 20.167,
|
161 |
+
"train_steps_per_second": 1.25
|
162 |
+
}
|
163 |
+
],
|
164 |
+
"max_steps": 620,
|
165 |
+
"num_train_epochs": 20,
|
166 |
+
"total_flos": 5223750303744000.0,
|
167 |
+
"trial_name": null,
|
168 |
+
"trial_params": null
|
169 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b821c5ff7f91fcefe5c21e76a17570d6fa1489b2c8bccb6113364cc7c3bbd39
|
3 |
+
size 3515
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|