Shresthadev403
commited on
Commit
•
7e18d7a
1
Parent(s):
fcd4b4d
End of training
Browse files- README.md +59 -0
- added_tokens.json +15 -0
- config.json +39 -0
- generation_config.json +6 -0
- logs/events.out.tfevents.1702135689.62a1e4c74a80.18125.1 +3 -0
- logs/events.out.tfevents.1702136019.62a1e4c74a80.27684.0 +3 -0
- logs/events.out.tfevents.1702136233.62a1e4c74a80.28401.0 +3 -0
- logs/events.out.tfevents.1702136512.62a1e4c74a80.28401.1 +3 -0
- logs/events.out.tfevents.1702136802.62a1e4c74a80.28401.2 +3 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +24 -0
- tokenizer_config.json +126 -0
- trainer_state.json +70 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: gpt2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: bert-base-banking77-pt2
|
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 |
+
# bert-base-banking77-pt2
|
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: 3.2330
|
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: 5e-05
|
38 |
+
- train_batch_size: 1
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
+
- lr_scheduler_type: linear
|
43 |
+
- num_epochs: 3.0
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
49 |
+
| 19.3915 | 1.0 | 10 | 4.2030 |
|
50 |
+
| 3.99 | 2.0 | 20 | 3.7262 |
|
51 |
+
| 3.2015 | 3.0 | 30 | 3.2330 |
|
52 |
+
|
53 |
+
|
54 |
+
### Framework versions
|
55 |
+
|
56 |
+
- Transformers 4.35.2
|
57 |
+
- Pytorch 2.1.0+cu118
|
58 |
+
- Datasets 2.15.0
|
59 |
+
- Tokenizers 0.15.0
|
added_tokens.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<INGR_END>": 50264,
|
3 |
+
"<INGR_START>": 50262,
|
4 |
+
"<INPUT_END>": 50259,
|
5 |
+
"<INPUT_START>": 50257,
|
6 |
+
"<INSTR_END>": 50267,
|
7 |
+
"<INSTR_START>": 50265,
|
8 |
+
"<NEXT_INGR>": 50263,
|
9 |
+
"<NEXT_INPUT>": 50258,
|
10 |
+
"<NEXT_STEP>": 50266,
|
11 |
+
"<RECIPE_END>": 50269,
|
12 |
+
"<RECIPE_START>": 50268,
|
13 |
+
"<TITLE_END>": 50261,
|
14 |
+
"<TITLE_START>": 50260
|
15 |
+
}
|
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": 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": 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.35.2",
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 50270
|
39 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50256,
|
4 |
+
"eos_token_id": 50256,
|
5 |
+
"transformers_version": "4.35.2"
|
6 |
+
}
|
logs/events.out.tfevents.1702135689.62a1e4c74a80.18125.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eef68f5c33606a80a51f360015dec3111cf6673e85a459e3f2959a3239fc92c0
|
3 |
+
size 4607
|
logs/events.out.tfevents.1702136019.62a1e4c74a80.27684.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb2da1fc21c725f7094b82ec13d944fe8cb3e25473ad372257aadeafdb0eb2bd
|
3 |
+
size 4606
|
logs/events.out.tfevents.1702136233.62a1e4c74a80.28401.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f02fcaae7b8f2bc495bfced5b15e254f734eb33a73f14777b63914c57fb379ed
|
3 |
+
size 8806
|
logs/events.out.tfevents.1702136512.62a1e4c74a80.28401.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b66631c802141a6210f8b52fb9b1f1333002f5d61f578d19a4b2293dae7cbe23
|
3 |
+
size 8388
|
logs/events.out.tfevents.1702136802.62a1e4c74a80.28401.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5204396018d2ba3e29ea854b35753a904ac5dcfbd678ed4a965f48b9f2514e1b
|
3 |
+
size 6062
|
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:f88ed9b657a61945ca24ea5091d4c155db10756fe037cc5b74535e0209d21b87
|
3 |
+
size 497814144
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"pad_token": "<|endoftext|>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<|endoftext|>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": true,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"50256": {
|
6 |
+
"content": "<|endoftext|>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"50257": {
|
14 |
+
"content": "<INPUT_START>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": false
|
20 |
+
},
|
21 |
+
"50258": {
|
22 |
+
"content": "<NEXT_INPUT>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": false
|
28 |
+
},
|
29 |
+
"50259": {
|
30 |
+
"content": "<INPUT_END>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": true,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": false
|
36 |
+
},
|
37 |
+
"50260": {
|
38 |
+
"content": "<TITLE_START>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": false
|
44 |
+
},
|
45 |
+
"50261": {
|
46 |
+
"content": "<TITLE_END>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": true,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": false
|
52 |
+
},
|
53 |
+
"50262": {
|
54 |
+
"content": "<INGR_START>",
|
55 |
+
"lstrip": false,
|
56 |
+
"normalized": true,
|
57 |
+
"rstrip": false,
|
58 |
+
"single_word": false,
|
59 |
+
"special": false
|
60 |
+
},
|
61 |
+
"50263": {
|
62 |
+
"content": "<NEXT_INGR>",
|
63 |
+
"lstrip": false,
|
64 |
+
"normalized": true,
|
65 |
+
"rstrip": false,
|
66 |
+
"single_word": false,
|
67 |
+
"special": false
|
68 |
+
},
|
69 |
+
"50264": {
|
70 |
+
"content": "<INGR_END>",
|
71 |
+
"lstrip": false,
|
72 |
+
"normalized": true,
|
73 |
+
"rstrip": false,
|
74 |
+
"single_word": false,
|
75 |
+
"special": false
|
76 |
+
},
|
77 |
+
"50265": {
|
78 |
+
"content": "<INSTR_START>",
|
79 |
+
"lstrip": false,
|
80 |
+
"normalized": true,
|
81 |
+
"rstrip": false,
|
82 |
+
"single_word": false,
|
83 |
+
"special": false
|
84 |
+
},
|
85 |
+
"50266": {
|
86 |
+
"content": "<NEXT_STEP>",
|
87 |
+
"lstrip": false,
|
88 |
+
"normalized": true,
|
89 |
+
"rstrip": false,
|
90 |
+
"single_word": false,
|
91 |
+
"special": false
|
92 |
+
},
|
93 |
+
"50267": {
|
94 |
+
"content": "<INSTR_END>",
|
95 |
+
"lstrip": false,
|
96 |
+
"normalized": true,
|
97 |
+
"rstrip": false,
|
98 |
+
"single_word": false,
|
99 |
+
"special": false
|
100 |
+
},
|
101 |
+
"50268": {
|
102 |
+
"content": "<RECIPE_START>",
|
103 |
+
"lstrip": false,
|
104 |
+
"normalized": true,
|
105 |
+
"rstrip": false,
|
106 |
+
"single_word": false,
|
107 |
+
"special": false
|
108 |
+
},
|
109 |
+
"50269": {
|
110 |
+
"content": "<RECIPE_END>",
|
111 |
+
"lstrip": false,
|
112 |
+
"normalized": true,
|
113 |
+
"rstrip": false,
|
114 |
+
"single_word": false,
|
115 |
+
"special": false
|
116 |
+
}
|
117 |
+
},
|
118 |
+
"bos_token": "<|endoftext|>",
|
119 |
+
"clean_up_tokenization_spaces": true,
|
120 |
+
"eos_token": "<|endoftext|>",
|
121 |
+
"errors": "replace",
|
122 |
+
"model_max_length": 1024,
|
123 |
+
"pad_token": "<|endoftext|>",
|
124 |
+
"tokenizer_class": "GPT2Tokenizer",
|
125 |
+
"unk_token": "<|endoftext|>"
|
126 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 3.2330009937286377,
|
3 |
+
"best_model_checkpoint": "bert-base-banking77-pt2/checkpoint-30",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 10,
|
6 |
+
"global_step": 30,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 1.0,
|
13 |
+
"learning_rate": 3.3333333333333335e-05,
|
14 |
+
"loss": 19.3915,
|
15 |
+
"step": 10
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 1.0,
|
19 |
+
"eval_loss": 4.202950954437256,
|
20 |
+
"eval_runtime": 0.2436,
|
21 |
+
"eval_samples_per_second": 41.048,
|
22 |
+
"eval_steps_per_second": 8.21,
|
23 |
+
"step": 10
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 2.0,
|
27 |
+
"learning_rate": 1.6666666666666667e-05,
|
28 |
+
"loss": 3.99,
|
29 |
+
"step": 20
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"epoch": 2.0,
|
33 |
+
"eval_loss": 3.726235866546631,
|
34 |
+
"eval_runtime": 0.2518,
|
35 |
+
"eval_samples_per_second": 39.71,
|
36 |
+
"eval_steps_per_second": 7.942,
|
37 |
+
"step": 20
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 3.0,
|
41 |
+
"learning_rate": 0.0,
|
42 |
+
"loss": 3.2015,
|
43 |
+
"step": 30
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"epoch": 3.0,
|
47 |
+
"eval_loss": 3.2330009937286377,
|
48 |
+
"eval_runtime": 0.1321,
|
49 |
+
"eval_samples_per_second": 75.687,
|
50 |
+
"eval_steps_per_second": 15.137,
|
51 |
+
"step": 30
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 3.0,
|
55 |
+
"step": 30,
|
56 |
+
"total_flos": 1959690240000.0,
|
57 |
+
"train_loss": 8.860979080200195,
|
58 |
+
"train_runtime": 31.0574,
|
59 |
+
"train_samples_per_second": 0.966,
|
60 |
+
"train_steps_per_second": 0.966
|
61 |
+
}
|
62 |
+
],
|
63 |
+
"logging_steps": 10,
|
64 |
+
"max_steps": 30,
|
65 |
+
"num_train_epochs": 3,
|
66 |
+
"save_steps": 10,
|
67 |
+
"total_flos": 1959690240000.0,
|
68 |
+
"trial_name": null,
|
69 |
+
"trial_params": null
|
70 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7970c7cd0327b87b79a84430af71446e02fdc5a4b54a72df844b541e577b729e
|
3 |
+
size 4600
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|