minwook commited on
Commit
5de2d03
1 Parent(s): bbd4fd3

Upload 9 files

Browse files
config.json ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": "41dc5c541480e2797e1646bcf568d654cbb107da",
3
+ "_name_or_path": "ddobokki/vision-encoder-decoder-vit-gpt2-coco-ko",
4
+ "architectures": [
5
+ "VisionEncoderDecoderModel"
6
+ ],
7
+ "decoder": {
8
+ "_name_or_path": "skt/kogpt2-base-v2",
9
+ "_num_labels": 1,
10
+ "activation_function": "gelu_new",
11
+ "add_cross_attention": true,
12
+ "architectures": [
13
+ "GPT2LMHeadModel"
14
+ ],
15
+ "attn_pdrop": 0.1,
16
+ "author": "Heewon Jeon([email protected])",
17
+ "bad_words_ids": null,
18
+ "begin_suppress_tokens": null,
19
+ "bos_token_id": 0,
20
+ "chunk_size_feed_forward": 0,
21
+ "created_date": "2021-04-28",
22
+ "cross_attention_hidden_size": null,
23
+ "decoder_start_token_id": null,
24
+ "diversity_penalty": 0.0,
25
+ "do_sample": false,
26
+ "early_stopping": false,
27
+ "embd_pdrop": 0.1,
28
+ "encoder_no_repeat_ngram_size": 0,
29
+ "eos_token_id": 1,
30
+ "exponential_decay_length_penalty": null,
31
+ "finetuning_task": null,
32
+ "forced_bos_token_id": null,
33
+ "forced_eos_token_id": null,
34
+ "gradient_checkpointing": false,
35
+ "id2label": {
36
+ "0": "LABEL_0"
37
+ },
38
+ "initializer_range": 0.02,
39
+ "is_decoder": true,
40
+ "is_encoder_decoder": false,
41
+ "label2id": {
42
+ "LABEL_0": 0
43
+ },
44
+ "layer_norm_epsilon": 1e-05,
45
+ "length_penalty": 1.0,
46
+ "license": "CC-BY-NC-SA 4.0",
47
+ "max_length": 20,
48
+ "min_length": 0,
49
+ "model_type": "gpt2",
50
+ "n_ctx": 1024,
51
+ "n_embd": 768,
52
+ "n_head": 12,
53
+ "n_inner": null,
54
+ "n_layer": 12,
55
+ "n_positions": 1024,
56
+ "no_repeat_ngram_size": 0,
57
+ "num_beam_groups": 1,
58
+ "num_beams": 1,
59
+ "num_return_sequences": 1,
60
+ "output_attentions": false,
61
+ "output_hidden_states": false,
62
+ "output_scores": false,
63
+ "pad_token_id": 3,
64
+ "prefix": null,
65
+ "problem_type": null,
66
+ "pruned_heads": {},
67
+ "remove_invalid_values": false,
68
+ "reorder_and_upcast_attn": false,
69
+ "repetition_penalty": 1.0,
70
+ "resid_pdrop": 0.1,
71
+ "return_dict": true,
72
+ "return_dict_in_generate": false,
73
+ "scale_attn_by_inverse_layer_idx": false,
74
+ "scale_attn_weights": true,
75
+ "sep_token_id": null,
76
+ "summary_activation": null,
77
+ "summary_first_dropout": 0.1,
78
+ "summary_proj_to_labels": true,
79
+ "summary_type": "cls_index",
80
+ "summary_use_proj": true,
81
+ "suppress_tokens": null,
82
+ "task_specific_params": {
83
+ "text-generation": {
84
+ "do_sample": true,
85
+ "max_length": 50
86
+ }
87
+ },
88
+ "temperature": 1.0,
89
+ "tf_legacy_loss": false,
90
+ "tie_encoder_decoder": false,
91
+ "tie_word_embeddings": true,
92
+ "tokenizer_class": null,
93
+ "top_k": 50,
94
+ "top_p": 1.0,
95
+ "torch_dtype": null,
96
+ "torchscript": false,
97
+ "transformers_version": "4.31.0",
98
+ "typical_p": 1.0,
99
+ "use_bfloat16": false,
100
+ "use_cache": true,
101
+ "vocab_size": 51200
102
+ },
103
+ "decoder_start_token_id": 0,
104
+ "encoder": {
105
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
106
+ "add_cross_attention": false,
107
+ "architectures": [
108
+ "ViTModel"
109
+ ],
110
+ "attention_probs_dropout_prob": 0.0,
111
+ "bad_words_ids": null,
112
+ "begin_suppress_tokens": null,
113
+ "bos_token_id": null,
114
+ "chunk_size_feed_forward": 0,
115
+ "cross_attention_hidden_size": null,
116
+ "decoder_start_token_id": null,
117
+ "diversity_penalty": 0.0,
118
+ "do_sample": false,
119
+ "early_stopping": false,
120
+ "encoder_no_repeat_ngram_size": 0,
121
+ "encoder_stride": 16,
122
+ "eos_token_id": null,
123
+ "exponential_decay_length_penalty": null,
124
+ "finetuning_task": null,
125
+ "forced_bos_token_id": null,
126
+ "forced_eos_token_id": null,
127
+ "hidden_act": "gelu",
128
+ "hidden_dropout_prob": 0.0,
129
+ "hidden_size": 768,
130
+ "id2label": {
131
+ "0": "LABEL_0",
132
+ "1": "LABEL_1"
133
+ },
134
+ "image_size": 224,
135
+ "initializer_range": 0.02,
136
+ "intermediate_size": 3072,
137
+ "is_decoder": false,
138
+ "is_encoder_decoder": false,
139
+ "label2id": {
140
+ "LABEL_0": 0,
141
+ "LABEL_1": 1
142
+ },
143
+ "layer_norm_eps": 1e-12,
144
+ "length_penalty": 1.0,
145
+ "max_length": 20,
146
+ "min_length": 0,
147
+ "model_type": "vit",
148
+ "no_repeat_ngram_size": 0,
149
+ "num_attention_heads": 12,
150
+ "num_beam_groups": 1,
151
+ "num_beams": 1,
152
+ "num_channels": 3,
153
+ "num_hidden_layers": 12,
154
+ "num_return_sequences": 1,
155
+ "output_attentions": false,
156
+ "output_hidden_states": false,
157
+ "output_scores": false,
158
+ "pad_token_id": null,
159
+ "patch_size": 16,
160
+ "prefix": null,
161
+ "problem_type": null,
162
+ "pruned_heads": {},
163
+ "qkv_bias": true,
164
+ "remove_invalid_values": false,
165
+ "repetition_penalty": 1.0,
166
+ "return_dict": true,
167
+ "return_dict_in_generate": false,
168
+ "sep_token_id": null,
169
+ "suppress_tokens": null,
170
+ "task_specific_params": null,
171
+ "temperature": 1.0,
172
+ "tf_legacy_loss": false,
173
+ "tie_encoder_decoder": false,
174
+ "tie_word_embeddings": true,
175
+ "tokenizer_class": null,
176
+ "top_k": 50,
177
+ "top_p": 1.0,
178
+ "torch_dtype": null,
179
+ "torchscript": false,
180
+ "transformers_version": "4.31.0",
181
+ "typical_p": 1.0,
182
+ "use_bfloat16": false
183
+ },
184
+ "is_encoder_decoder": true,
185
+ "model_type": "vision-encoder-decoder",
186
+ "pad_token_id": 3,
187
+ "tie_word_embeddings": false,
188
+ "torch_dtype": "float32",
189
+ "transformers_version": null,
190
+ "vocab_size": 51200
191
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 3,
6
+ "transformers_version": "4.31.0"
7
+ }
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6baa56c40bb4280645884e7354d2465f8b06bc2f1416d0d418289d1a4374a136
3
+ size 1914896005
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "feature_extractor_type": "ViTFeatureExtractor",
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "ViTFeatureExtractor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 224,
21
+ "width": 224
22
+ }
23
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eddabb62c00ac708f3d283317448f41b6fdda4d3b7ebe3241e6b4248e65170e6
3
+ size 959832189
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eefff6b5331441ab32274d2ea9ed815ef52f4ce1ee5787d6111a75ec30c6143f
3
+ size 14575
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa5ec4d7eee65cfda55298f9bc43bb7c10fe09839a7c114a00d8a04fb1cc9d08
3
+ size 627
trainer_state.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.013348984052090439,
3
+ "best_model_checkpoint": "./novelImgcaption/checkpoint-500",
4
+ "epoch": 0.024948854847562495,
5
+ "global_step": 1000,
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": 4.9875505214310666e-05,
13
+ "loss": 1.5851,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.01,
18
+ "eval_bleu4": 0.013348984052090439,
19
+ "eval_loss": 1.4344794750213623,
20
+ "eval_runtime": 166299.0493,
21
+ "eval_samples_per_second": 0.107,
22
+ "eval_steps_per_second": 0.027,
23
+ "step": 500
24
+ },
25
+ {
26
+ "epoch": 0.02,
27
+ "learning_rate": 4.975076094007286e-05,
28
+ "loss": 1.4209,
29
+ "step": 1000
30
+ },
31
+ {
32
+ "epoch": 0.02,
33
+ "eval_bleu4": 0.012171030703652613,
34
+ "eval_loss": 1.3528523445129395,
35
+ "eval_runtime": 168925.5463,
36
+ "eval_samples_per_second": 0.105,
37
+ "eval_steps_per_second": 0.026,
38
+ "step": 1000
39
+ }
40
+ ],
41
+ "max_steps": 200410,
42
+ "num_train_epochs": 5,
43
+ "total_flos": 7.21855564480512e+17,
44
+ "trial_name": null,
45
+ "trial_params": null
46
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84585326ab3d07aa40079269a3fc131393288f6648fc611e4820cf9b1d9169ae
3
+ size 4091