hf-transformers-bot commited on
Commit
807c1e4
·
verified ·
1 Parent(s): 69f736f

Update tiny models for UdopForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "UdopForConditionalGeneration"
5
+ ],
6
+ "bos_token_id": 0,
7
+ "d_ff": 37,
8
+ "d_kv": 8,
9
+ "d_model": 32,
10
+ "decoder_start_token_id": 0,
11
+ "dense_act_fn": "relu",
12
+ "dropout_rate": 0.1,
13
+ "dtype": "float32",
14
+ "eos_token_id": 1,
15
+ "feed_forward_proj": "relu",
16
+ "image_size": 224,
17
+ "initializer_factor": 0.002,
18
+ "is_decoder": false,
19
+ "is_encoder_decoder": true,
20
+ "is_gated_act": false,
21
+ "layer_norm_epsilon": 1e-06,
22
+ "max_2d_position_embeddings": 1024,
23
+ "model_type": "udop",
24
+ "num_channels": 3,
25
+ "num_decoder_layers": 2,
26
+ "num_heads": 4,
27
+ "num_layers": 2,
28
+ "pad_token_id": 0,
29
+ "patch_size": 16,
30
+ "relative_attention_max_distance": 128,
31
+ "relative_attention_num_buckets": 32,
32
+ "relative_bias_args": [
33
+ {
34
+ "type": "1d"
35
+ },
36
+ {
37
+ "type": "horizontal"
38
+ },
39
+ {
40
+ "type": "vertical"
41
+ }
42
+ ],
43
+ "tie_word_embeddings": true,
44
+ "transformers_version": "5.16.0.dev0",
45
+ "use_cache": true,
46
+ "vocab_size": 33201
47
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 0,
5
+ "eos_token_id": 1,
6
+ "output_attentions": false,
7
+ "output_hidden_states": false,
8
+ "pad_token_id": 0,
9
+ "transformers_version": "5.16.0.dev0",
10
+ "use_cache": true
11
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b55746d625f3627a0232f78790e9ed49b4feb8d1edd3f468d1cd6e646612f71
3
+ size 4855832
preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_ocr": true,
3
+ "crop_size": {
4
+ "height": 224,
5
+ "width": 224
6
+ },
7
+ "do_normalize": true,
8
+ "do_rescale": true,
9
+ "do_resize": true,
10
+ "image_mean": [
11
+ 0.5,
12
+ 0.5,
13
+ 0.5
14
+ ],
15
+ "image_processor_type": "LayoutLMv3ImageProcessor",
16
+ "image_std": [
17
+ 0.5,
18
+ 0.5,
19
+ 0.5
20
+ ],
21
+ "resample": 2,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "height": 224,
25
+ "width": 224
26
+ },
27
+ "tesseract_config": ""
28
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff