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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_commit_hash": "5998e9fb69b1a7bb90bf60b629f5d81c9e72076e",
|
| 3 |
+
"_name_or_path": "naver-clova-ix/donut-base-finetuned-rvlcdip",
|
| 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 |
+
"bos_token_id": 0,
|
| 17 |
+
"chunk_size_feed_forward": 0,
|
| 18 |
+
"classifier_dropout": 0.0,
|
| 19 |
+
"cross_attention_hidden_size": null,
|
| 20 |
+
"d_model": 1024,
|
| 21 |
+
"decoder_attention_heads": 16,
|
| 22 |
+
"decoder_ffn_dim": 4096,
|
| 23 |
+
"decoder_layerdrop": 0.0,
|
| 24 |
+
"decoder_layers": 4,
|
| 25 |
+
"decoder_start_token_id": null,
|
| 26 |
+
"diversity_penalty": 0.0,
|
| 27 |
+
"do_sample": false,
|
| 28 |
+
"dropout": 0.1,
|
| 29 |
+
"early_stopping": false,
|
| 30 |
+
"encoder_attention_heads": 16,
|
| 31 |
+
"encoder_ffn_dim": 4096,
|
| 32 |
+
"encoder_layerdrop": 0.0,
|
| 33 |
+
"encoder_layers": 12,
|
| 34 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 35 |
+
"eos_token_id": 2,
|
| 36 |
+
"exponential_decay_length_penalty": null,
|
| 37 |
+
"finetuning_task": null,
|
| 38 |
+
"forced_bos_token_id": null,
|
| 39 |
+
"forced_eos_token_id": 2,
|
| 40 |
+
"id2label": {
|
| 41 |
+
"0": "LABEL_0",
|
| 42 |
+
"1": "LABEL_1"
|
| 43 |
+
},
|
| 44 |
+
"init_std": 0.02,
|
| 45 |
+
"is_decoder": true,
|
| 46 |
+
"is_encoder_decoder": false,
|
| 47 |
+
"label2id": {
|
| 48 |
+
"LABEL_0": 0,
|
| 49 |
+
"LABEL_1": 1
|
| 50 |
+
},
|
| 51 |
+
"length_penalty": 1.0,
|
| 52 |
+
"max_length": 8,
|
| 53 |
+
"max_position_embeddings": 8,
|
| 54 |
+
"min_length": 0,
|
| 55 |
+
"model_type": "mbart",
|
| 56 |
+
"no_repeat_ngram_size": 0,
|
| 57 |
+
"num_beam_groups": 1,
|
| 58 |
+
"num_beams": 1,
|
| 59 |
+
"num_hidden_layers": 12,
|
| 60 |
+
"num_return_sequences": 1,
|
| 61 |
+
"output_attentions": false,
|
| 62 |
+
"output_hidden_states": false,
|
| 63 |
+
"output_scores": false,
|
| 64 |
+
"pad_token_id": 1,
|
| 65 |
+
"prefix": null,
|
| 66 |
+
"problem_type": null,
|
| 67 |
+
"pruned_heads": {},
|
| 68 |
+
"remove_invalid_values": false,
|
| 69 |
+
"repetition_penalty": 1.0,
|
| 70 |
+
"return_dict": true,
|
| 71 |
+
"return_dict_in_generate": false,
|
| 72 |
+
"scale_embedding": true,
|
| 73 |
+
"sep_token_id": null,
|
| 74 |
+
"task_specific_params": null,
|
| 75 |
+
"temperature": 1.0,
|
| 76 |
+
"tf_legacy_loss": false,
|
| 77 |
+
"tie_encoder_decoder": false,
|
| 78 |
+
"tie_word_embeddings": true,
|
| 79 |
+
"tokenizer_class": null,
|
| 80 |
+
"top_k": 50,
|
| 81 |
+
"top_p": 1.0,
|
| 82 |
+
"torch_dtype": null,
|
| 83 |
+
"torchscript": false,
|
| 84 |
+
"transformers_version": "4.22.0.dev0",
|
| 85 |
+
"typical_p": 1.0,
|
| 86 |
+
"use_bfloat16": false,
|
| 87 |
+
"use_cache": true,
|
| 88 |
+
"vocab_size": 57550
|
| 89 |
+
},
|
| 90 |
+
"decoder_start_token_id": 57539,
|
| 91 |
+
"encoder": {
|
| 92 |
+
"_name_or_path": "",
|
| 93 |
+
"add_cross_attention": false,
|
| 94 |
+
"architectures": null,
|
| 95 |
+
"attention_probs_dropout_prob": 0.0,
|
| 96 |
+
"bad_words_ids": null,
|
| 97 |
+
"bos_token_id": null,
|
| 98 |
+
"chunk_size_feed_forward": 0,
|
| 99 |
+
"cross_attention_hidden_size": null,
|
| 100 |
+
"decoder_start_token_id": null,
|
| 101 |
+
"depths": [
|
| 102 |
+
2,
|
| 103 |
+
2,
|
| 104 |
+
14,
|
| 105 |
+
2
|
| 106 |
+
],
|
| 107 |
+
"diversity_penalty": 0.0,
|
| 108 |
+
"do_sample": false,
|
| 109 |
+
"drop_path_rate": 0.1,
|
| 110 |
+
"early_stopping": false,
|
| 111 |
+
"embed_dim": 128,
|
| 112 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 113 |
+
"eos_token_id": null,
|
| 114 |
+
"exponential_decay_length_penalty": null,
|
| 115 |
+
"finetuning_task": null,
|
| 116 |
+
"forced_bos_token_id": null,
|
| 117 |
+
"forced_eos_token_id": null,
|
| 118 |
+
"hidden_act": "gelu",
|
| 119 |
+
"hidden_dropout_prob": 0.0,
|
| 120 |
+
"hidden_size": 1024,
|
| 121 |
+
"id2label": {
|
| 122 |
+
"0": "LABEL_0",
|
| 123 |
+
"1": "LABEL_1"
|
| 124 |
+
},
|
| 125 |
+
"image_size": [
|
| 126 |
+
1280,
|
| 127 |
+
960
|
| 128 |
+
],
|
| 129 |
+
"initializer_range": 0.02,
|
| 130 |
+
"is_decoder": false,
|
| 131 |
+
"is_encoder_decoder": false,
|
| 132 |
+
"label2id": {
|
| 133 |
+
"LABEL_0": 0,
|
| 134 |
+
"LABEL_1": 1
|
| 135 |
+
},
|
| 136 |
+
"layer_norm_eps": 1e-05,
|
| 137 |
+
"length_penalty": 1.0,
|
| 138 |
+
"max_length": 20,
|
| 139 |
+
"min_length": 0,
|
| 140 |
+
"mlp_ratio": 4.0,
|
| 141 |
+
"model_type": "donut-swin",
|
| 142 |
+
"no_repeat_ngram_size": 0,
|
| 143 |
+
"num_beam_groups": 1,
|
| 144 |
+
"num_beams": 1,
|
| 145 |
+
"num_channels": 3,
|
| 146 |
+
"num_heads": [
|
| 147 |
+
4,
|
| 148 |
+
8,
|
| 149 |
+
16,
|
| 150 |
+
32
|
| 151 |
+
],
|
| 152 |
+
"num_layers": 4,
|
| 153 |
+
"num_return_sequences": 1,
|
| 154 |
+
"output_attentions": false,
|
| 155 |
+
"output_hidden_states": false,
|
| 156 |
+
"output_scores": false,
|
| 157 |
+
"pad_token_id": null,
|
| 158 |
+
"patch_size": 4,
|
| 159 |
+
"path_norm": true,
|
| 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 |
+
"task_specific_params": null,
|
| 170 |
+
"temperature": 1.0,
|
| 171 |
+
"tf_legacy_loss": false,
|
| 172 |
+
"tie_encoder_decoder": false,
|
| 173 |
+
"tie_word_embeddings": true,
|
| 174 |
+
"tokenizer_class": null,
|
| 175 |
+
"top_k": 50,
|
| 176 |
+
"top_p": 1.0,
|
| 177 |
+
"torch_dtype": null,
|
| 178 |
+
"torchscript": false,
|
| 179 |
+
"transformers_version": "4.22.0.dev0",
|
| 180 |
+
"typical_p": 1.0,
|
| 181 |
+
"use_absolute_embeddings": false,
|
| 182 |
+
"use_bfloat16": false,
|
| 183 |
+
"window_size": 10
|
| 184 |
+
},
|
| 185 |
+
"is_encoder_decoder": true,
|
| 186 |
+
"model_type": "vision-encoder-decoder",
|
| 187 |
+
"pad_token_id": 1,
|
| 188 |
+
"tie_word_embeddings": false,
|
| 189 |
+
"torch_dtype": "float32",
|
| 190 |
+
"transformers_version": null
|
| 191 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e7cdf258d6c9b62b02d27c2441184f9430635a4347502e810e56badc3602c4a
|
| 3 |
+
size 803019131
|