hanyoonsang
commited on
Commit
•
4f285bb
1
Parent(s):
2d1be3f
End of training
Browse files- .gitignore +1 -0
- README.md +48 -0
- added_tokens.json +17 -0
- config.json +195 -0
- generation_config.json +8 -0
- preprocessor_config.json +26 -0
- pytorch_model.bin +3 -0
- runs/Jul25_16-56-56_DESKTOP-L6ROKP0/events.out.tfevents.1690272276.DESKTOP-L6ROKP0.21600.0 +3 -0
- runs/Jul25_17-21-48_DESKTOP-L6ROKP0/events.out.tfevents.1690273313.DESKTOP-L6ROKP0.23284.0 +3 -0
- runs/Jul25_17-28-30_DESKTOP-L6ROKP0/events.out.tfevents.1690273715.DESKTOP-L6ROKP0.7968.0 +3 -0
- runs/Jul25_17-40-07_DESKTOP-L6ROKP0/events.out.tfevents.1690274426.DESKTOP-L6ROKP0.16996.0 +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +31 -0
- tokenizer.json +0 -0
- tokenizer_config.json +21 -0
- training_args.bin +3 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
README.md
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: naver-clova-ix/donut-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: donut-base-hangul
|
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 |
+
# donut-base-hangul
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [naver-clova-ix/donut-base](https://huggingface.co/naver-clova-ix/donut-base) on an unknown dataset.
|
17 |
+
|
18 |
+
## Model description
|
19 |
+
|
20 |
+
More information needed
|
21 |
+
|
22 |
+
## Intended uses & limitations
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Training and evaluation data
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training procedure
|
31 |
+
|
32 |
+
### Training hyperparameters
|
33 |
+
|
34 |
+
The following hyperparameters were used during training:
|
35 |
+
- learning_rate: 2e-05
|
36 |
+
- train_batch_size: 8
|
37 |
+
- eval_batch_size: 8
|
38 |
+
- seed: 42
|
39 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
40 |
+
- lr_scheduler_type: linear
|
41 |
+
- num_epochs: 50
|
42 |
+
|
43 |
+
### Framework versions
|
44 |
+
|
45 |
+
- Transformers 4.31.0
|
46 |
+
- Pytorch 1.11.0+cu113
|
47 |
+
- Datasets 2.13.1
|
48 |
+
- Tokenizers 0.13.3
|
added_tokens.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s_r_address>": 57536,
|
3 |
+
"</s_r_name>": 57534,
|
4 |
+
"</s_r_pnumber>": 57532,
|
5 |
+
"</s_s_address>": 57530,
|
6 |
+
"</s_s_name>": 57528,
|
7 |
+
"</s_s_pnumber>": 57526,
|
8 |
+
"<s_iitcdip>": 57523,
|
9 |
+
"<s_r_address>": 57535,
|
10 |
+
"<s_r_name>": 57533,
|
11 |
+
"<s_r_pnumber>": 57531,
|
12 |
+
"<s_s_address>": 57529,
|
13 |
+
"<s_s_name>": 57527,
|
14 |
+
"<s_s_pnumber>": 57525,
|
15 |
+
"<s_synthdog>": 57524,
|
16 |
+
"<sep/>": 57522
|
17 |
+
}
|
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.31.0",
|
87 |
+
"typical_p": 1.0,
|
88 |
+
"use_bfloat16": false,
|
89 |
+
"use_cache": true,
|
90 |
+
"vocab_size": 57537
|
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.31.0",
|
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.31.0"
|
8 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_align_long_axis": false,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_pad": true,
|
5 |
+
"do_rescale": true,
|
6 |
+
"do_resize": true,
|
7 |
+
"do_thumbnail": true,
|
8 |
+
"image_mean": [
|
9 |
+
0.5,
|
10 |
+
0.5,
|
11 |
+
0.5
|
12 |
+
],
|
13 |
+
"image_processor_type": "DonutImageProcessor",
|
14 |
+
"image_std": [
|
15 |
+
0.5,
|
16 |
+
0.5,
|
17 |
+
0.5
|
18 |
+
],
|
19 |
+
"processor_class": "DonutProcessor",
|
20 |
+
"resample": 2,
|
21 |
+
"rescale_factor": 0.00392156862745098,
|
22 |
+
"size": [
|
23 |
+
720,
|
24 |
+
960
|
25 |
+
]
|
26 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ea5767b8f2f2ffb78f1f3678bc7f34ab736bd3e06c1133da8a9e1b9a881817f
|
3 |
+
size 809224571
|
runs/Jul25_16-56-56_DESKTOP-L6ROKP0/events.out.tfevents.1690272276.DESKTOP-L6ROKP0.21600.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e41da91130866231c952299426b2d15c7f99210caa145a9c96872841bd442e8c
|
3 |
+
size 8592
|
runs/Jul25_17-21-48_DESKTOP-L6ROKP0/events.out.tfevents.1690273313.DESKTOP-L6ROKP0.23284.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bff871a6b1bc9d55d99cbb2ce32934938a7ceff39c030e0fd4facb9e144d0a91
|
3 |
+
size 8592
|
runs/Jul25_17-28-30_DESKTOP-L6ROKP0/events.out.tfevents.1690273715.DESKTOP-L6ROKP0.7968.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fec7d417c87794c94a877389c05dd8e73ea9f5dd531f343bccffa8cd16743cfd
|
3 |
+
size 8592
|
runs/Jul25_17-40-07_DESKTOP-L6ROKP0/events.out.tfevents.1690274426.DESKTOP-L6ROKP0.16996.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1438229313f6a63b35ecf20558b667e6321d88920222116ff0d8557fd3eb4e1
|
3 |
+
size 8592
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb9e3dce4c326195d08fc3dd0f7e2eee1da8595c847bf4c1a9c78b7a82d47e2d
|
3 |
+
size 1296245
|
special_tokens_map.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<s_s_pnumber>",
|
4 |
+
"</s_s_pnumber>",
|
5 |
+
"<s_s_name>",
|
6 |
+
"</s_s_name>",
|
7 |
+
"<s_s_address>",
|
8 |
+
"</s_s_address>",
|
9 |
+
"<s_r_pnumber>",
|
10 |
+
"</s_r_pnumber>",
|
11 |
+
"<s_r_name>",
|
12 |
+
"</s_r_name>",
|
13 |
+
"<s_r_address>",
|
14 |
+
"</s_r_address>",
|
15 |
+
"<s>",
|
16 |
+
"</s>"
|
17 |
+
],
|
18 |
+
"bos_token": "<s>",
|
19 |
+
"cls_token": "<s>",
|
20 |
+
"eos_token": "</s>",
|
21 |
+
"mask_token": {
|
22 |
+
"content": "<mask>",
|
23 |
+
"lstrip": true,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false
|
27 |
+
},
|
28 |
+
"pad_token": "<pad>",
|
29 |
+
"sep_token": "</s>",
|
30 |
+
"unk_token": "<unk>"
|
31 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"clean_up_tokenization_spaces": true,
|
4 |
+
"cls_token": "<s>",
|
5 |
+
"eos_token": "</s>",
|
6 |
+
"mask_token": {
|
7 |
+
"__type": "AddedToken",
|
8 |
+
"content": "<mask>",
|
9 |
+
"lstrip": true,
|
10 |
+
"normalized": true,
|
11 |
+
"rstrip": false,
|
12 |
+
"single_word": false
|
13 |
+
},
|
14 |
+
"model_max_length": 1000000000000000019884624838656,
|
15 |
+
"pad_token": "<pad>",
|
16 |
+
"processor_class": "DonutProcessor",
|
17 |
+
"sep_token": "</s>",
|
18 |
+
"sp_model_kwargs": {},
|
19 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
20 |
+
"unk_token": "<unk>"
|
21 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39156f99e7f3e285f59361fd0725626ce7db3c9dd6425e7b789c4d968884c3c6
|
3 |
+
size 4143
|