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