aipib commited on
Commit
9bb18de
1 Parent(s): 936c46b

Upload Florence2ForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +240 -0
  2. generation_config.json +13 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/Florence-2-base-ft",
3
+ "architectures": [
4
+ "Florence2ForConditionalGeneration"
5
+ ],
6
+ "auto_map": {
7
+ "AutoConfig": "microsoft/Florence-2-base-ft--configuration_florence2.Florence2Config",
8
+ "AutoModelForCausalLM": "microsoft/Florence-2-base-ft--modeling_florence2.Florence2ForConditionalGeneration"
9
+ },
10
+ "bos_token_id": 2,
11
+ "eos_token_id": 1,
12
+ "ignore_index": -100,
13
+ "is_encoder_decoder": true,
14
+ "model_type": "florence2",
15
+ "pad_token_id": 0,
16
+ "projection_dim": 768,
17
+ "text_config": {
18
+ "_attn_implementation_autoset": true,
19
+ "_name_or_path": "",
20
+ "activation_dropout": 0.1,
21
+ "activation_function": "gelu",
22
+ "add_bias_logits": false,
23
+ "add_cross_attention": false,
24
+ "add_final_layer_norm": false,
25
+ "architectures": null,
26
+ "attention_dropout": 0.1,
27
+ "bad_words_ids": null,
28
+ "begin_suppress_tokens": null,
29
+ "bos_token_id": 0,
30
+ "chunk_size_feed_forward": 0,
31
+ "classif_dropout": 0.1,
32
+ "classifier_dropout": 0.0,
33
+ "cross_attention_hidden_size": null,
34
+ "d_model": 768,
35
+ "decoder_attention_heads": 12,
36
+ "decoder_ffn_dim": 3072,
37
+ "decoder_layerdrop": 0.0,
38
+ "decoder_layers": 6,
39
+ "decoder_start_token_id": 2,
40
+ "diversity_penalty": 0.0,
41
+ "do_sample": false,
42
+ "dropout": 0.1,
43
+ "early_stopping": true,
44
+ "encoder_attention_heads": 12,
45
+ "encoder_ffn_dim": 3072,
46
+ "encoder_layerdrop": 0.0,
47
+ "encoder_layers": 6,
48
+ "encoder_no_repeat_ngram_size": 0,
49
+ "eos_token_id": 2,
50
+ "exponential_decay_length_penalty": null,
51
+ "finetuning_task": null,
52
+ "forced_bos_token_id": 0,
53
+ "forced_eos_token_id": 2,
54
+ "gradient_checkpointing": false,
55
+ "id2label": {
56
+ "0": "LABEL_0",
57
+ "1": "LABEL_1",
58
+ "2": "LABEL_2"
59
+ },
60
+ "init_std": 0.02,
61
+ "is_decoder": false,
62
+ "is_encoder_decoder": true,
63
+ "label2id": {
64
+ "LABEL_0": 0,
65
+ "LABEL_1": 1,
66
+ "LABEL_2": 2
67
+ },
68
+ "length_penalty": 1.0,
69
+ "max_length": 20,
70
+ "max_position_embeddings": 1024,
71
+ "min_length": 0,
72
+ "model_type": "florence2_language",
73
+ "no_repeat_ngram_size": 3,
74
+ "normalize_before": false,
75
+ "num_beam_groups": 1,
76
+ "num_beams": 3,
77
+ "num_hidden_layers": 6,
78
+ "num_return_sequences": 1,
79
+ "output_attentions": false,
80
+ "output_hidden_states": false,
81
+ "output_scores": false,
82
+ "pad_token_id": 1,
83
+ "prefix": null,
84
+ "problem_type": null,
85
+ "pruned_heads": {},
86
+ "remove_invalid_values": false,
87
+ "repetition_penalty": 1.0,
88
+ "return_dict": true,
89
+ "return_dict_in_generate": false,
90
+ "scale_embedding": false,
91
+ "sep_token_id": null,
92
+ "suppress_tokens": null,
93
+ "task_specific_params": null,
94
+ "temperature": 1.0,
95
+ "tf_legacy_loss": false,
96
+ "tie_encoder_decoder": false,
97
+ "tie_word_embeddings": true,
98
+ "tokenizer_class": null,
99
+ "top_k": 50,
100
+ "top_p": 1.0,
101
+ "torch_dtype": null,
102
+ "torchscript": false,
103
+ "typical_p": 1.0,
104
+ "use_bfloat16": false,
105
+ "use_cache": true,
106
+ "vocab_size": 1024
107
+ },
108
+ "torch_dtype": "float32",
109
+ "transformers_version": "4.46.3",
110
+ "use_cache": false,
111
+ "vision_config": {
112
+ "_attn_implementation_autoset": false,
113
+ "_name_or_path": "",
114
+ "add_cross_attention": false,
115
+ "architectures": null,
116
+ "bad_words_ids": null,
117
+ "begin_suppress_tokens": null,
118
+ "bos_token_id": null,
119
+ "chunk_size_feed_forward": 0,
120
+ "cross_attention_hidden_size": null,
121
+ "decoder_start_token_id": null,
122
+ "depths": [
123
+ 1,
124
+ 1,
125
+ 9,
126
+ 1
127
+ ],
128
+ "dim_embed": [
129
+ 128,
130
+ 256,
131
+ 512,
132
+ 1024
133
+ ],
134
+ "diversity_penalty": 0.0,
135
+ "do_sample": false,
136
+ "drop_path_rate": 0.1,
137
+ "early_stopping": false,
138
+ "enable_checkpoint": false,
139
+ "encoder_no_repeat_ngram_size": 0,
140
+ "eos_token_id": null,
141
+ "exponential_decay_length_penalty": null,
142
+ "finetuning_task": null,
143
+ "forced_bos_token_id": null,
144
+ "forced_eos_token_id": null,
145
+ "id2label": {
146
+ "0": "LABEL_0",
147
+ "1": "LABEL_1"
148
+ },
149
+ "image_feature_source": [
150
+ "spatial_avg_pool",
151
+ "temporal_avg_pool"
152
+ ],
153
+ "image_pos_embed": {
154
+ "max_pos_embeddings": 50,
155
+ "type": "learned_abs_2d"
156
+ },
157
+ "is_decoder": false,
158
+ "is_encoder_decoder": false,
159
+ "label2id": {
160
+ "LABEL_0": 0,
161
+ "LABEL_1": 1
162
+ },
163
+ "length_penalty": 1.0,
164
+ "max_length": 20,
165
+ "min_length": 0,
166
+ "model_type": "",
167
+ "no_repeat_ngram_size": 0,
168
+ "num_beam_groups": 1,
169
+ "num_beams": 1,
170
+ "num_groups": [
171
+ 4,
172
+ 8,
173
+ 16,
174
+ 32
175
+ ],
176
+ "num_heads": [
177
+ 4,
178
+ 8,
179
+ 16,
180
+ 32
181
+ ],
182
+ "num_return_sequences": 1,
183
+ "output_attentions": false,
184
+ "output_hidden_states": false,
185
+ "output_scores": false,
186
+ "pad_token_id": null,
187
+ "patch_padding": [
188
+ 3,
189
+ 1,
190
+ 1,
191
+ 1
192
+ ],
193
+ "patch_prenorm": [
194
+ false,
195
+ true,
196
+ true,
197
+ true
198
+ ],
199
+ "patch_size": [
200
+ 7,
201
+ 3,
202
+ 3,
203
+ 3
204
+ ],
205
+ "patch_stride": [
206
+ 4,
207
+ 2,
208
+ 2,
209
+ 2
210
+ ],
211
+ "prefix": null,
212
+ "problem_type": null,
213
+ "projection_dim": 768,
214
+ "pruned_heads": {},
215
+ "remove_invalid_values": false,
216
+ "repetition_penalty": 1.0,
217
+ "return_dict": true,
218
+ "return_dict_in_generate": false,
219
+ "sep_token_id": null,
220
+ "suppress_tokens": null,
221
+ "task_specific_params": null,
222
+ "temperature": 1.0,
223
+ "tf_legacy_loss": false,
224
+ "tie_encoder_decoder": false,
225
+ "tie_word_embeddings": true,
226
+ "tokenizer_class": null,
227
+ "top_k": 50,
228
+ "top_p": 1.0,
229
+ "torch_dtype": null,
230
+ "torchscript": false,
231
+ "typical_p": 1.0,
232
+ "use_bfloat16": false,
233
+ "visual_temporal_embedding": {
234
+ "max_temporal_embeddings": 100,
235
+ "type": "COSINE"
236
+ },
237
+ "window_size": 12
238
+ },
239
+ "vocab_size": 1024
240
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "decoder_start_token_id": 2,
5
+ "early_stopping": true,
6
+ "eos_token_id": 1,
7
+ "forced_bos_token_id": 0,
8
+ "forced_eos_token_id": 2,
9
+ "no_repeat_ngram_size": 3,
10
+ "num_beams": 3,
11
+ "pad_token_id": 0,
12
+ "transformers_version": "4.46.3"
13
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e71a82c2414610afc09c119fe69487b6e02279aefae85859ed66f354a40aac0
3
+ size 771741696