Upload 8 files
Browse files- config.json +195 -0
- generation_config.json +8 -0
- optimizer.pt +3 -0
- pytorch_model.bin +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- trainer_state.json +94 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_commit_hash": "a959cf33c20e09215873e338299c900f57047c61",
|
| 3 |
+
"_name_or_path": "naver-clova-ix/donut-base",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"VisionEncoderDecoderModel"
|
| 6 |
+
],
|
| 7 |
+
"decoder": {
|
| 8 |
+
"_name_or_path": "",
|
| 9 |
+
"activation_dropout": 0.0,
|
| 10 |
+
"activation_function": "gelu",
|
| 11 |
+
"add_cross_attention": true,
|
| 12 |
+
"add_final_layer_norm": true,
|
| 13 |
+
"architectures": null,
|
| 14 |
+
"attention_dropout": 0.0,
|
| 15 |
+
"bad_words_ids": null,
|
| 16 |
+
"begin_suppress_tokens": null,
|
| 17 |
+
"bos_token_id": 0,
|
| 18 |
+
"chunk_size_feed_forward": 0,
|
| 19 |
+
"classifier_dropout": 0.0,
|
| 20 |
+
"cross_attention_hidden_size": null,
|
| 21 |
+
"d_model": 1024,
|
| 22 |
+
"decoder_attention_heads": 16,
|
| 23 |
+
"decoder_ffn_dim": 4096,
|
| 24 |
+
"decoder_layerdrop": 0.0,
|
| 25 |
+
"decoder_layers": 4,
|
| 26 |
+
"decoder_start_token_id": null,
|
| 27 |
+
"diversity_penalty": 0.0,
|
| 28 |
+
"do_sample": false,
|
| 29 |
+
"dropout": 0.1,
|
| 30 |
+
"early_stopping": false,
|
| 31 |
+
"encoder_attention_heads": 16,
|
| 32 |
+
"encoder_ffn_dim": 4096,
|
| 33 |
+
"encoder_layerdrop": 0.0,
|
| 34 |
+
"encoder_layers": 12,
|
| 35 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 36 |
+
"eos_token_id": 2,
|
| 37 |
+
"exponential_decay_length_penalty": null,
|
| 38 |
+
"finetuning_task": null,
|
| 39 |
+
"forced_bos_token_id": null,
|
| 40 |
+
"forced_eos_token_id": 2,
|
| 41 |
+
"id2label": {
|
| 42 |
+
"0": "LABEL_0",
|
| 43 |
+
"1": "LABEL_1"
|
| 44 |
+
},
|
| 45 |
+
"init_std": 0.02,
|
| 46 |
+
"is_decoder": true,
|
| 47 |
+
"is_encoder_decoder": false,
|
| 48 |
+
"label2id": {
|
| 49 |
+
"LABEL_0": 0,
|
| 50 |
+
"LABEL_1": 1
|
| 51 |
+
},
|
| 52 |
+
"length_penalty": 1.0,
|
| 53 |
+
"max_length": 512,
|
| 54 |
+
"max_position_embeddings": 1536,
|
| 55 |
+
"min_length": 0,
|
| 56 |
+
"model_type": "mbart",
|
| 57 |
+
"no_repeat_ngram_size": 0,
|
| 58 |
+
"num_beam_groups": 1,
|
| 59 |
+
"num_beams": 1,
|
| 60 |
+
"num_hidden_layers": 12,
|
| 61 |
+
"num_return_sequences": 1,
|
| 62 |
+
"output_attentions": false,
|
| 63 |
+
"output_hidden_states": false,
|
| 64 |
+
"output_scores": false,
|
| 65 |
+
"pad_token_id": 1,
|
| 66 |
+
"prefix": null,
|
| 67 |
+
"problem_type": null,
|
| 68 |
+
"pruned_heads": {},
|
| 69 |
+
"remove_invalid_values": false,
|
| 70 |
+
"repetition_penalty": 1.0,
|
| 71 |
+
"return_dict": true,
|
| 72 |
+
"return_dict_in_generate": false,
|
| 73 |
+
"scale_embedding": true,
|
| 74 |
+
"sep_token_id": null,
|
| 75 |
+
"suppress_tokens": null,
|
| 76 |
+
"task_specific_params": null,
|
| 77 |
+
"temperature": 1.0,
|
| 78 |
+
"tf_legacy_loss": false,
|
| 79 |
+
"tie_encoder_decoder": false,
|
| 80 |
+
"tie_word_embeddings": true,
|
| 81 |
+
"tokenizer_class": null,
|
| 82 |
+
"top_k": 50,
|
| 83 |
+
"top_p": 1.0,
|
| 84 |
+
"torch_dtype": null,
|
| 85 |
+
"torchscript": false,
|
| 86 |
+
"transformers_version": "4.30.2",
|
| 87 |
+
"typical_p": 1.0,
|
| 88 |
+
"use_bfloat16": false,
|
| 89 |
+
"use_cache": true,
|
| 90 |
+
"vocab_size": 57525
|
| 91 |
+
},
|
| 92 |
+
"decoder_start_token_id": 0,
|
| 93 |
+
"encoder": {
|
| 94 |
+
"_name_or_path": "",
|
| 95 |
+
"add_cross_attention": false,
|
| 96 |
+
"architectures": null,
|
| 97 |
+
"attention_probs_dropout_prob": 0.0,
|
| 98 |
+
"bad_words_ids": null,
|
| 99 |
+
"begin_suppress_tokens": null,
|
| 100 |
+
"bos_token_id": null,
|
| 101 |
+
"chunk_size_feed_forward": 0,
|
| 102 |
+
"cross_attention_hidden_size": null,
|
| 103 |
+
"decoder_start_token_id": null,
|
| 104 |
+
"depths": [
|
| 105 |
+
2,
|
| 106 |
+
2,
|
| 107 |
+
14,
|
| 108 |
+
2
|
| 109 |
+
],
|
| 110 |
+
"diversity_penalty": 0.0,
|
| 111 |
+
"do_sample": false,
|
| 112 |
+
"drop_path_rate": 0.1,
|
| 113 |
+
"early_stopping": false,
|
| 114 |
+
"embed_dim": 128,
|
| 115 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 116 |
+
"eos_token_id": null,
|
| 117 |
+
"exponential_decay_length_penalty": null,
|
| 118 |
+
"finetuning_task": null,
|
| 119 |
+
"forced_bos_token_id": null,
|
| 120 |
+
"forced_eos_token_id": null,
|
| 121 |
+
"hidden_act": "gelu",
|
| 122 |
+
"hidden_dropout_prob": 0.0,
|
| 123 |
+
"hidden_size": 1024,
|
| 124 |
+
"id2label": {
|
| 125 |
+
"0": "LABEL_0",
|
| 126 |
+
"1": "LABEL_1"
|
| 127 |
+
},
|
| 128 |
+
"image_size": [
|
| 129 |
+
960,
|
| 130 |
+
720
|
| 131 |
+
],
|
| 132 |
+
"initializer_range": 0.02,
|
| 133 |
+
"is_decoder": false,
|
| 134 |
+
"is_encoder_decoder": false,
|
| 135 |
+
"label2id": {
|
| 136 |
+
"LABEL_0": 0,
|
| 137 |
+
"LABEL_1": 1
|
| 138 |
+
},
|
| 139 |
+
"layer_norm_eps": 1e-05,
|
| 140 |
+
"length_penalty": 1.0,
|
| 141 |
+
"max_length": 20,
|
| 142 |
+
"min_length": 0,
|
| 143 |
+
"mlp_ratio": 4.0,
|
| 144 |
+
"model_type": "donut-swin",
|
| 145 |
+
"no_repeat_ngram_size": 0,
|
| 146 |
+
"num_beam_groups": 1,
|
| 147 |
+
"num_beams": 1,
|
| 148 |
+
"num_channels": 3,
|
| 149 |
+
"num_heads": [
|
| 150 |
+
4,
|
| 151 |
+
8,
|
| 152 |
+
16,
|
| 153 |
+
32
|
| 154 |
+
],
|
| 155 |
+
"num_layers": 4,
|
| 156 |
+
"num_return_sequences": 1,
|
| 157 |
+
"output_attentions": false,
|
| 158 |
+
"output_hidden_states": false,
|
| 159 |
+
"output_scores": false,
|
| 160 |
+
"pad_token_id": null,
|
| 161 |
+
"patch_size": 4,
|
| 162 |
+
"path_norm": true,
|
| 163 |
+
"prefix": null,
|
| 164 |
+
"problem_type": null,
|
| 165 |
+
"pruned_heads": {},
|
| 166 |
+
"qkv_bias": true,
|
| 167 |
+
"remove_invalid_values": false,
|
| 168 |
+
"repetition_penalty": 1.0,
|
| 169 |
+
"return_dict": true,
|
| 170 |
+
"return_dict_in_generate": false,
|
| 171 |
+
"sep_token_id": null,
|
| 172 |
+
"suppress_tokens": null,
|
| 173 |
+
"task_specific_params": null,
|
| 174 |
+
"temperature": 1.0,
|
| 175 |
+
"tf_legacy_loss": false,
|
| 176 |
+
"tie_encoder_decoder": false,
|
| 177 |
+
"tie_word_embeddings": true,
|
| 178 |
+
"tokenizer_class": null,
|
| 179 |
+
"top_k": 50,
|
| 180 |
+
"top_p": 1.0,
|
| 181 |
+
"torch_dtype": null,
|
| 182 |
+
"torchscript": false,
|
| 183 |
+
"transformers_version": "4.30.2",
|
| 184 |
+
"typical_p": 1.0,
|
| 185 |
+
"use_absolute_embeddings": false,
|
| 186 |
+
"use_bfloat16": false,
|
| 187 |
+
"window_size": 10
|
| 188 |
+
},
|
| 189 |
+
"is_encoder_decoder": true,
|
| 190 |
+
"model_type": "vision-encoder-decoder",
|
| 191 |
+
"pad_token_id": 1,
|
| 192 |
+
"tie_word_embeddings": false,
|
| 193 |
+
"torch_dtype": "float32",
|
| 194 |
+
"transformers_version": null
|
| 195 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"forced_eos_token_id": 2,
|
| 6 |
+
"pad_token_id": 1,
|
| 7 |
+
"transformers_version": "4.30.2"
|
| 8 |
+
}
|
optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0937e6c23efa7c1fd05e6dcb7e5229e840f9460300129abe154ca930d08c6ee0
|
| 3 |
+
size 1615075077
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e81f0697e049ea1c7c9693315c49413d2d9f9ba5b2b15555eafdb8d605da7873
|
| 3 |
+
size 809172185
|
rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a84009a7fb1dad1595e188728cebd6352c94068ab7ab167a87f9ca4378c52d4e
|
| 3 |
+
size 13553
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d0fbb060e1015d78de1304a66169eb1a7c411bbc0e550f48487e69623ef83fc
|
| 3 |
+
size 627
|
trainer_state.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 5.0,
|
| 5 |
+
"global_step": 1350,
|
| 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.37,
|
| 12 |
+
"learning_rate": 1.851851851851852e-05,
|
| 13 |
+
"loss": 1.2952,
|
| 14 |
+
"step": 100
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"epoch": 0.74,
|
| 18 |
+
"learning_rate": 1.7037037037037038e-05,
|
| 19 |
+
"loss": 0.1678,
|
| 20 |
+
"step": 200
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"epoch": 1.11,
|
| 24 |
+
"learning_rate": 1.555555555555556e-05,
|
| 25 |
+
"loss": 0.0855,
|
| 26 |
+
"step": 300
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"epoch": 1.48,
|
| 30 |
+
"learning_rate": 1.4074074074074075e-05,
|
| 31 |
+
"loss": 0.0415,
|
| 32 |
+
"step": 400
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"epoch": 1.85,
|
| 36 |
+
"learning_rate": 1.2592592592592593e-05,
|
| 37 |
+
"loss": 0.0338,
|
| 38 |
+
"step": 500
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 2.22,
|
| 42 |
+
"learning_rate": 1.1111111111111113e-05,
|
| 43 |
+
"loss": 0.0263,
|
| 44 |
+
"step": 600
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 2.59,
|
| 48 |
+
"learning_rate": 9.62962962962963e-06,
|
| 49 |
+
"loss": 0.0154,
|
| 50 |
+
"step": 700
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"epoch": 2.96,
|
| 54 |
+
"learning_rate": 8.148148148148148e-06,
|
| 55 |
+
"loss": 0.0126,
|
| 56 |
+
"step": 800
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"epoch": 3.33,
|
| 60 |
+
"learning_rate": 6.666666666666667e-06,
|
| 61 |
+
"loss": 0.0168,
|
| 62 |
+
"step": 900
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"epoch": 3.7,
|
| 66 |
+
"learning_rate": 5.185185185185185e-06,
|
| 67 |
+
"loss": 0.0096,
|
| 68 |
+
"step": 1000
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"epoch": 4.07,
|
| 72 |
+
"learning_rate": 3.7037037037037037e-06,
|
| 73 |
+
"loss": 0.0091,
|
| 74 |
+
"step": 1100
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"epoch": 4.44,
|
| 78 |
+
"learning_rate": 2.222222222222222e-06,
|
| 79 |
+
"loss": 0.0144,
|
| 80 |
+
"step": 1200
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 4.81,
|
| 84 |
+
"learning_rate": 7.407407407407407e-07,
|
| 85 |
+
"loss": 0.0059,
|
| 86 |
+
"step": 1300
|
| 87 |
+
}
|
| 88 |
+
],
|
| 89 |
+
"max_steps": 1350,
|
| 90 |
+
"num_train_epochs": 5,
|
| 91 |
+
"total_flos": 4.74899706998784e+18,
|
| 92 |
+
"trial_name": null,
|
| 93 |
+
"trial_params": null
|
| 94 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57674c55990338e4c3224be1d569ba36b5b3e5f7c59a643e124d014d76652d13
|
| 3 |
+
size 4091
|