RichelieuGVG
commited on
Commit
•
4f884b4
1
Parent(s):
ab4f794
new files added
Browse files- README.md +59 -1
- added_tokens.json +3 -0
- all_results.json +15 -0
- config.json +42 -0
- eval_results.json +10 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer_config.json +33 -0
- train_results.json +8 -0
- trainer_state.json +103 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
CHANGED
@@ -1,3 +1,61 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
metrics:
|
5 |
+
- accuracy
|
6 |
+
model-index:
|
7 |
+
- name: cont_medium_4_256
|
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 |
+
# cont_medium_4_256
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [sberbank-ai/rugpt3medium_based_on_gpt2](https://huggingface.co/sberbank-ai/rugpt3medium_based_on_gpt2) on the None dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 3.7602
|
19 |
+
- Accuracy: 0.3436
|
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: 1.5e-05
|
39 |
+
- train_batch_size: 6
|
40 |
+
- eval_batch_size: 12
|
41 |
+
- seed: 42
|
42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
+
- lr_scheduler_type: linear
|
44 |
+
- num_epochs: 4.0
|
45 |
+
|
46 |
+
### Training results
|
47 |
+
|
48 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
49 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
50 |
+
| 3.4091 | 1.0 | 160 | 3.7238 | 0.3472 |
|
51 |
+
| 3.2338 | 2.0 | 320 | 3.7393 | 0.3446 |
|
52 |
+
| 3.1684 | 3.0 | 480 | 3.7518 | 0.3444 |
|
53 |
+
| 3.0989 | 4.0 | 640 | 3.7602 | 0.3436 |
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- Transformers 4.23.1
|
59 |
+
- Pytorch 1.8.1+cu111
|
60 |
+
- Datasets 2.5.2
|
61 |
+
- Tokenizers 0.13.1
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 50257
|
3 |
+
}
|
all_results.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.3435947712418301,
|
4 |
+
"eval_loss": 3.7601635456085205,
|
5 |
+
"eval_runtime": 0.6972,
|
6 |
+
"eval_samples": 60,
|
7 |
+
"eval_samples_per_second": 86.059,
|
8 |
+
"eval_steps_per_second": 7.172,
|
9 |
+
"perplexity": 42.95545057963037,
|
10 |
+
"train_loss": 3.228607414290309,
|
11 |
+
"train_runtime": 136.9037,
|
12 |
+
"train_samples": 960,
|
13 |
+
"train_samples_per_second": 28.049,
|
14 |
+
"train_steps_per_second": 4.675
|
15 |
+
}
|
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "sberbank-ai/rugpt3medium_based_on_gpt2",
|
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 |
+
"id2label": {
|
12 |
+
"0": "LABEL_0"
|
13 |
+
},
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"label2id": {
|
16 |
+
"LABEL_0": 0
|
17 |
+
},
|
18 |
+
"layer_norm_epsilon": 1e-05,
|
19 |
+
"model_type": "gpt2",
|
20 |
+
"n_ctx": 2048,
|
21 |
+
"n_embd": 1024,
|
22 |
+
"n_head": 16,
|
23 |
+
"n_inner": null,
|
24 |
+
"n_layer": 24,
|
25 |
+
"n_positions": 2048,
|
26 |
+
"n_special": 0,
|
27 |
+
"output_past": true,
|
28 |
+
"predict_special_tokens": true,
|
29 |
+
"reorder_and_upcast_attn": false,
|
30 |
+
"resid_pdrop": 0.1,
|
31 |
+
"scale_attn_by_inverse_layer_idx": false,
|
32 |
+
"scale_attn_weights": true,
|
33 |
+
"summary_activation": null,
|
34 |
+
"summary_first_dropout": 0.1,
|
35 |
+
"summary_proj_to_labels": true,
|
36 |
+
"summary_type": "cls_index",
|
37 |
+
"summary_use_proj": true,
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.23.1",
|
40 |
+
"use_cache": true,
|
41 |
+
"vocab_size": 50258
|
42 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.3435947712418301,
|
4 |
+
"eval_loss": 3.7601635456085205,
|
5 |
+
"eval_runtime": 0.6972,
|
6 |
+
"eval_samples": 60,
|
7 |
+
"eval_samples_per_second": 86.059,
|
8 |
+
"eval_steps_per_second": 7.172,
|
9 |
+
"perplexity": 42.95545057963037
|
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:a8da33443e589200d8f9f4d683972c2b66011f6047887ab88818a45ab1621fec
|
3 |
+
size 1524270947
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|endoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<|endoftext|>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"bos_token": {
|
5 |
+
"__type": "AddedToken",
|
6 |
+
"content": "<|endoftext|>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"eos_token": {
|
13 |
+
"__type": "AddedToken",
|
14 |
+
"content": "<|endoftext|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"errors": "replace",
|
21 |
+
"name_or_path": "sberbank-ai/rugpt3medium_based_on_gpt2",
|
22 |
+
"pad_token": null,
|
23 |
+
"special_tokens_map_file": null,
|
24 |
+
"tokenizer_class": "GPT2Tokenizer",
|
25 |
+
"unk_token": {
|
26 |
+
"__type": "AddedToken",
|
27 |
+
"content": "<|endoftext|>",
|
28 |
+
"lstrip": false,
|
29 |
+
"normalized": true,
|
30 |
+
"rstrip": false,
|
31 |
+
"single_word": false
|
32 |
+
}
|
33 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"train_loss": 3.228607414290309,
|
4 |
+
"train_runtime": 136.9037,
|
5 |
+
"train_samples": 960,
|
6 |
+
"train_samples_per_second": 28.049,
|
7 |
+
"train_steps_per_second": 4.675
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 4.0,
|
5 |
+
"global_step": 640,
|
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.01,
|
12 |
+
"learning_rate": 1.49765625e-05,
|
13 |
+
"loss": 3.2919,
|
14 |
+
"step": 1
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.62,
|
18 |
+
"learning_rate": 1.2656250000000001e-05,
|
19 |
+
"loss": 3.4091,
|
20 |
+
"step": 100
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 1.0,
|
24 |
+
"eval_accuracy": 0.34718954248366013,
|
25 |
+
"eval_loss": 3.7237555980682373,
|
26 |
+
"eval_runtime": 0.6878,
|
27 |
+
"eval_samples_per_second": 87.234,
|
28 |
+
"eval_steps_per_second": 7.27,
|
29 |
+
"step": 160
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"epoch": 1.25,
|
33 |
+
"learning_rate": 1.03125e-05,
|
34 |
+
"loss": 3.3483,
|
35 |
+
"step": 200
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"epoch": 1.88,
|
39 |
+
"learning_rate": 7.96875e-06,
|
40 |
+
"loss": 3.2338,
|
41 |
+
"step": 300
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"epoch": 2.0,
|
45 |
+
"eval_accuracy": 0.344640522875817,
|
46 |
+
"eval_loss": 3.739302396774292,
|
47 |
+
"eval_runtime": 0.6495,
|
48 |
+
"eval_samples_per_second": 92.384,
|
49 |
+
"eval_steps_per_second": 7.699,
|
50 |
+
"step": 320
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 2.5,
|
54 |
+
"learning_rate": 5.625e-06,
|
55 |
+
"loss": 3.1684,
|
56 |
+
"step": 400
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 3.0,
|
60 |
+
"eval_accuracy": 0.3443790849673203,
|
61 |
+
"eval_loss": 3.7517521381378174,
|
62 |
+
"eval_runtime": 0.6571,
|
63 |
+
"eval_samples_per_second": 91.306,
|
64 |
+
"eval_steps_per_second": 7.609,
|
65 |
+
"step": 480
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 3.12,
|
69 |
+
"learning_rate": 3.28125e-06,
|
70 |
+
"loss": 3.1497,
|
71 |
+
"step": 500
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"epoch": 3.75,
|
75 |
+
"learning_rate": 9.375e-07,
|
76 |
+
"loss": 3.0989,
|
77 |
+
"step": 600
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"epoch": 4.0,
|
81 |
+
"eval_accuracy": 0.3435947712418301,
|
82 |
+
"eval_loss": 3.7601635456085205,
|
83 |
+
"eval_runtime": 0.6542,
|
84 |
+
"eval_samples_per_second": 91.721,
|
85 |
+
"eval_steps_per_second": 7.643,
|
86 |
+
"step": 640
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 4.0,
|
90 |
+
"step": 640,
|
91 |
+
"total_flos": 1783105333493760.0,
|
92 |
+
"train_loss": 3.228607414290309,
|
93 |
+
"train_runtime": 136.9037,
|
94 |
+
"train_samples_per_second": 28.049,
|
95 |
+
"train_steps_per_second": 4.675
|
96 |
+
}
|
97 |
+
],
|
98 |
+
"max_steps": 640,
|
99 |
+
"num_train_epochs": 4,
|
100 |
+
"total_flos": 1783105333493760.0,
|
101 |
+
"trial_name": null,
|
102 |
+
"trial_params": null
|
103 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:99542e16a7ecd60ffaa393cb4e2878b25ab1025ec072ac1e0070bd5995ead39e
|
3 |
+
size 3439
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|