Commit
·
f04feb8
1
Parent(s):
5dc99ab
[fix] update model
Browse files- config.json +6 -4
- generation_config.json +1 -1
- model.safetensors +2 -2
- preprocessor_config.json +2 -20
- tokenizer.json +0 -0
- tokenizer_config.json +2 -1
config.json
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
"VisionEncoderDecoderModel"
|
4 |
],
|
5 |
"decoder": {
|
|
|
6 |
"_name_or_path": "",
|
7 |
"activation_dropout": 0.0,
|
8 |
"activation_function": "gelu",
|
@@ -87,6 +88,7 @@
|
|
87 |
"vocab_size": 73921
|
88 |
},
|
89 |
"encoder": {
|
|
|
90 |
"_name_or_path": "",
|
91 |
"add_cross_attention": false,
|
92 |
"architectures": null,
|
@@ -122,8 +124,8 @@
|
|
122 |
"1": "LABEL_1"
|
123 |
},
|
124 |
"image_size": [
|
125 |
-
|
126 |
-
|
127 |
],
|
128 |
"initializer_range": 0.02,
|
129 |
"is_decoder": false,
|
@@ -178,11 +180,11 @@
|
|
178 |
"typical_p": 1.0,
|
179 |
"use_absolute_embeddings": false,
|
180 |
"use_bfloat16": false,
|
181 |
-
"window_size":
|
182 |
},
|
183 |
"is_encoder_decoder": true,
|
184 |
"model_type": "vision-encoder-decoder",
|
185 |
"tie_word_embeddings": false,
|
186 |
"torch_dtype": "float16",
|
187 |
-
"transformers_version": "4.
|
188 |
}
|
|
|
3 |
"VisionEncoderDecoderModel"
|
4 |
],
|
5 |
"decoder": {
|
6 |
+
"_attn_implementation_autoset": true,
|
7 |
"_name_or_path": "",
|
8 |
"activation_dropout": 0.0,
|
9 |
"activation_function": "gelu",
|
|
|
88 |
"vocab_size": 73921
|
89 |
},
|
90 |
"encoder": {
|
91 |
+
"_attn_implementation_autoset": true,
|
92 |
"_name_or_path": "",
|
93 |
"add_cross_attention": false,
|
94 |
"architectures": null,
|
|
|
124 |
"1": "LABEL_1"
|
125 |
},
|
126 |
"image_size": [
|
127 |
+
896,
|
128 |
+
896
|
129 |
],
|
130 |
"initializer_range": 0.02,
|
131 |
"is_decoder": false,
|
|
|
180 |
"typical_p": 1.0,
|
181 |
"use_absolute_embeddings": false,
|
182 |
"use_bfloat16": false,
|
183 |
+
"window_size": 7
|
184 |
},
|
185 |
"is_encoder_decoder": true,
|
186 |
"model_type": "vision-encoder-decoder",
|
187 |
"tie_word_embeddings": false,
|
188 |
"torch_dtype": "float16",
|
189 |
+
"transformers_version": "4.47.0"
|
190 |
}
|
generation_config.json
CHANGED
@@ -4,5 +4,5 @@
|
|
4 |
"eos_token_id": 2,
|
5 |
"forced_eos_token_id": 2,
|
6 |
"pad_token_id": 1,
|
7 |
-
"transformers_version": "4.
|
8 |
}
|
|
|
4 |
"eos_token_id": 2,
|
5 |
"forced_eos_token_id": 2,
|
6 |
"pad_token_id": 1,
|
7 |
+
"transformers_version": "4.47.0"
|
8 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0374fcfc30395cbb321c916535c8b3d66046921f57c3453c4bc6887803d8509a
|
3 |
+
size 795822904
|
preprocessor_config.json
CHANGED
@@ -1,22 +1,4 @@
|
|
1 |
{
|
2 |
-
"_valid_processor_keys": [
|
3 |
-
"images",
|
4 |
-
"do_resize",
|
5 |
-
"size",
|
6 |
-
"resample",
|
7 |
-
"do_thumbnail",
|
8 |
-
"do_align_long_axis",
|
9 |
-
"do_pad",
|
10 |
-
"random_padding",
|
11 |
-
"do_rescale",
|
12 |
-
"rescale_factor",
|
13 |
-
"do_normalize",
|
14 |
-
"image_mean",
|
15 |
-
"image_std",
|
16 |
-
"return_tensors",
|
17 |
-
"data_format",
|
18 |
-
"input_data_format"
|
19 |
-
],
|
20 |
"do_align_long_axis": true,
|
21 |
"do_crop_margin": false,
|
22 |
"do_normalize": true,
|
@@ -39,7 +21,7 @@
|
|
39 |
"resample": 2,
|
40 |
"rescale_factor": 0.00392156862745098,
|
41 |
"size": {
|
42 |
-
"height":
|
43 |
-
"width":
|
44 |
}
|
45 |
}
|
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
"do_align_long_axis": true,
|
3 |
"do_crop_margin": false,
|
4 |
"do_normalize": true,
|
|
|
21 |
"resample": 2,
|
22 |
"rescale_factor": 0.00392156862745098,
|
23 |
"size": {
|
24 |
+
"height": 896,
|
25 |
+
"width": 896
|
26 |
}
|
27 |
}
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -191557,8 +191557,9 @@
|
|
191557 |
" <Answer/>"
|
191558 |
],
|
191559 |
"bos_token": "<s>",
|
191560 |
-
"clean_up_tokenization_spaces":
|
191561 |
"eos_token": "</s>",
|
|
|
191562 |
"model_max_length": 1000000000000000019884624838656,
|
191563 |
"pad_token": "<pad>",
|
191564 |
"processor_class": "DonutProcessor",
|
|
|
191557 |
" <Answer/>"
|
191558 |
],
|
191559 |
"bos_token": "<s>",
|
191560 |
+
"clean_up_tokenization_spaces": false,
|
191561 |
"eos_token": "</s>",
|
191562 |
+
"extra_special_tokens": {},
|
191563 |
"model_max_length": 1000000000000000019884624838656,
|
191564 |
"pad_token": "<pad>",
|
191565 |
"processor_class": "DonutProcessor",
|