Awarebeyond commited on
Commit
9170107
·
verified ·
1 Parent(s): 1a4ded0

Upload model

Browse files
Files changed (3) hide show
  1. config.json +142 -0
  2. generation_config.json +30 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "VisionEncoderDecoderModel"
4
+ ],
5
+ "decoder": {
6
+ "_name_or_path": "",
7
+ "activation_dropout": 0.0,
8
+ "activation_function": "gelu",
9
+ "add_cross_attention": true,
10
+ "add_final_layer_norm": true,
11
+ "architectures": null,
12
+ "attention_dropout": 0.0,
13
+ "bos_token_id": 0,
14
+ "chunk_size_feed_forward": 0,
15
+ "classifier_dropout": 0.0,
16
+ "cross_attention_hidden_size": null,
17
+ "d_model": 1024,
18
+ "decoder_attention_heads": 16,
19
+ "decoder_ffn_dim": 4096,
20
+ "decoder_layerdrop": 0.0,
21
+ "decoder_layers": 4,
22
+ "decoder_start_token_id": null,
23
+ "dropout": 0.1,
24
+ "dtype": "float32",
25
+ "encoder_attention_heads": 16,
26
+ "encoder_ffn_dim": 4096,
27
+ "encoder_layerdrop": 0.0,
28
+ "encoder_layers": 12,
29
+ "eos_token_id": 2,
30
+ "finetuning_task": null,
31
+ "forced_eos_token_id": 2,
32
+ "id2label": {
33
+ "0": "LABEL_0",
34
+ "1": "LABEL_1"
35
+ },
36
+ "init_std": 0.02,
37
+ "is_decoder": true,
38
+ "is_encoder_decoder": false,
39
+ "label2id": {
40
+ "LABEL_0": 0,
41
+ "LABEL_1": 1
42
+ },
43
+ "max_position_embeddings": 768,
44
+ "model_type": "mbart",
45
+ "output_attentions": false,
46
+ "output_hidden_states": false,
47
+ "pad_token_id": 1,
48
+ "prefix": null,
49
+ "problem_type": null,
50
+ "pruned_heads": {},
51
+ "return_dict": true,
52
+ "scale_embedding": true,
53
+ "sep_token_id": null,
54
+ "task_specific_params": null,
55
+ "tf_legacy_loss": false,
56
+ "tie_encoder_decoder": false,
57
+ "tie_word_embeddings": true,
58
+ "tokenizer_class": null,
59
+ "torchscript": false,
60
+ "use_bfloat16": false,
61
+ "use_cache": true,
62
+ "vocab_size": 57580
63
+ },
64
+ "decoder_start_token_id": 0,
65
+ "dtype": "float32",
66
+ "encoder": {
67
+ "_name_or_path": "",
68
+ "add_cross_attention": false,
69
+ "architectures": null,
70
+ "attention_probs_dropout_prob": 0.0,
71
+ "bos_token_id": null,
72
+ "chunk_size_feed_forward": 0,
73
+ "cross_attention_hidden_size": null,
74
+ "decoder_start_token_id": null,
75
+ "depths": [
76
+ 2,
77
+ 2,
78
+ 14,
79
+ 2
80
+ ],
81
+ "drop_path_rate": 0.1,
82
+ "dtype": "float32",
83
+ "embed_dim": 128,
84
+ "eos_token_id": null,
85
+ "finetuning_task": null,
86
+ "hidden_act": "gelu",
87
+ "hidden_dropout_prob": 0.0,
88
+ "hidden_size": 1024,
89
+ "id2label": {
90
+ "0": "LABEL_0",
91
+ "1": "LABEL_1"
92
+ },
93
+ "image_size": [
94
+ 1280,
95
+ 960
96
+ ],
97
+ "initializer_range": 0.02,
98
+ "is_decoder": false,
99
+ "is_encoder_decoder": false,
100
+ "label2id": {
101
+ "LABEL_0": 0,
102
+ "LABEL_1": 1
103
+ },
104
+ "layer_norm_eps": 1e-05,
105
+ "mlp_ratio": 4.0,
106
+ "model_type": "donut-swin",
107
+ "num_channels": 3,
108
+ "num_heads": [
109
+ 4,
110
+ 8,
111
+ 16,
112
+ 32
113
+ ],
114
+ "num_layers": 4,
115
+ "output_attentions": false,
116
+ "output_hidden_states": false,
117
+ "pad_token_id": null,
118
+ "patch_size": 4,
119
+ "path_norm": true,
120
+ "prefix": null,
121
+ "problem_type": null,
122
+ "pruned_heads": {},
123
+ "qkv_bias": true,
124
+ "return_dict": true,
125
+ "sep_token_id": null,
126
+ "task_specific_params": null,
127
+ "tf_legacy_loss": false,
128
+ "tie_encoder_decoder": false,
129
+ "tie_word_embeddings": true,
130
+ "tokenizer_class": null,
131
+ "torchscript": false,
132
+ "use_absolute_embeddings": false,
133
+ "use_bfloat16": false,
134
+ "window_size": 10
135
+ },
136
+ "eos_token_id": 2,
137
+ "is_encoder_decoder": true,
138
+ "model_type": "vision-encoder-decoder",
139
+ "pad_token_id": 1,
140
+ "tie_word_embeddings": false,
141
+ "transformers_version": "5.8.0"
142
+ }
generation_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "diversity_penalty": 0.0,
5
+ "do_sample": false,
6
+ "early_stopping": false,
7
+ "encoder_no_repeat_ngram_size": 0,
8
+ "eos_token_id": 2,
9
+ "forced_eos_token_id": 2,
10
+ "length_penalty": 1.0,
11
+ "max_length": 20,
12
+ "min_length": 0,
13
+ "no_repeat_ngram_size": 0,
14
+ "num_beam_groups": 1,
15
+ "num_beams": 1,
16
+ "num_return_sequences": 1,
17
+ "output_attentions": false,
18
+ "output_hidden_states": false,
19
+ "output_scores": false,
20
+ "pad_token_id": 1,
21
+ "remove_invalid_values": false,
22
+ "repetition_penalty": 1.0,
23
+ "return_dict_in_generate": false,
24
+ "temperature": 1.0,
25
+ "top_k": 50,
26
+ "top_p": 1.0,
27
+ "transformers_version": "5.8.0",
28
+ "typical_p": 1.0,
29
+ "use_cache": true
30
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d291437fabbd3adbee68d8bc71749f17d123c4b9f66cbcc02e26f363ef4f4ab
3
+ size 806150296