MiaoshouAI
commited on
Upload config.json
Browse files- config.json +94 -42
config.json
CHANGED
@@ -1,55 +1,107 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"Florence2ForConditionalGeneration"
|
5 |
],
|
6 |
"bos_token_id": 0,
|
7 |
"eos_token_id": 2,
|
8 |
"ignore_index": -100,
|
|
|
9 |
"model_type": "florence2",
|
10 |
"pad_token_id": 1,
|
11 |
"projection_dim": 768,
|
12 |
"text_config": {
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
"
|
51 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
},
|
|
|
|
|
53 |
"vision_config": {
|
54 |
"model_type": "davit",
|
55 |
"drop_path_rate": 0.1,
|
@@ -75,7 +127,7 @@
|
|
75 |
"image_feature_source": ["spatial_avg_pool", "temporal_avg_pool"]
|
76 |
},
|
77 |
"vocab_size": 51289,
|
78 |
-
"torch_dtype": "
|
79 |
"transformers_version": "4.41.0.dev0",
|
80 |
"is_encoder_decoder": true
|
81 |
-
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "microsoft/Florence-2-base-ft",
|
3 |
"architectures": [
|
4 |
"Florence2ForConditionalGeneration"
|
5 |
],
|
6 |
"bos_token_id": 0,
|
7 |
"eos_token_id": 2,
|
8 |
"ignore_index": -100,
|
9 |
+
"is_encoder_decoder": true,
|
10 |
"model_type": "florence2",
|
11 |
"pad_token_id": 1,
|
12 |
"projection_dim": 768,
|
13 |
"text_config": {
|
14 |
+
"_name_or_path": "",
|
15 |
+
"activation_dropout": 0.1,
|
16 |
+
"activation_function": "gelu",
|
17 |
+
"add_bias_logits": false,
|
18 |
+
"add_cross_attention": false,
|
19 |
+
"add_final_layer_norm": false,
|
20 |
+
"architectures": null,
|
21 |
+
"attention_dropout": 0.1,
|
22 |
+
"bad_words_ids": null,
|
23 |
+
"begin_suppress_tokens": null,
|
24 |
+
"bos_token_id": 0,
|
25 |
+
"chunk_size_feed_forward": 0,
|
26 |
+
"classif_dropout": 0.1,
|
27 |
+
"classifier_dropout": 0.0,
|
28 |
+
"cross_attention_hidden_size": null,
|
29 |
+
"d_model": 768,
|
30 |
+
"decoder_attention_heads": 12,
|
31 |
+
"decoder_ffn_dim": 3072,
|
32 |
+
"decoder_layerdrop": 0.0,
|
33 |
+
"decoder_layers": 6,
|
34 |
+
"decoder_start_token_id": 2,
|
35 |
+
"diversity_penalty": 0.0,
|
36 |
+
"do_sample": false,
|
37 |
+
"dropout": 0.1,
|
38 |
+
"early_stopping": true,
|
39 |
+
"encoder_attention_heads": 12,
|
40 |
+
"encoder_ffn_dim": 3072,
|
41 |
+
"encoder_layerdrop": 0.0,
|
42 |
+
"encoder_layers": 6,
|
43 |
+
"encoder_no_repeat_ngram_size": 0,
|
44 |
+
"eos_token_id": 2,
|
45 |
+
"exponential_decay_length_penalty": null,
|
46 |
+
"finetuning_task": null,
|
47 |
+
"forced_bos_token_id": 0,
|
48 |
+
"forced_eos_token_id": 2,
|
49 |
+
"gradient_checkpointing": false,
|
50 |
+
"id2label": {
|
51 |
+
"0": "LABEL_0",
|
52 |
+
"1": "LABEL_1",
|
53 |
+
"2": "LABEL_2"
|
54 |
+
},
|
55 |
+
"init_std": 0.02,
|
56 |
+
"is_decoder": false,
|
57 |
+
"is_encoder_decoder": true,
|
58 |
+
"label2id": {
|
59 |
+
"LABEL_0": 0,
|
60 |
+
"LABEL_1": 1,
|
61 |
+
"LABEL_2": 2
|
62 |
+
},
|
63 |
+
"length_penalty": 1.0,
|
64 |
+
"max_length": 20,
|
65 |
+
"max_position_embeddings": 1024,
|
66 |
+
"min_length": 0,
|
67 |
+
"model_type": "florence2_language",
|
68 |
+
"no_repeat_ngram_size": 3,
|
69 |
+
"normalize_before": false,
|
70 |
+
"num_beam_groups": 1,
|
71 |
+
"num_beams": 3,
|
72 |
+
"num_hidden_layers": 6,
|
73 |
+
"num_return_sequences": 1,
|
74 |
+
"output_attentions": false,
|
75 |
+
"output_hidden_states": false,
|
76 |
+
"output_scores": false,
|
77 |
+
"pad_token_id": 1,
|
78 |
+
"prefix": null,
|
79 |
+
"problem_type": null,
|
80 |
+
"pruned_heads": {},
|
81 |
+
"remove_invalid_values": false,
|
82 |
+
"repetition_penalty": 1.0,
|
83 |
+
"return_dict": true,
|
84 |
+
"return_dict_in_generate": false,
|
85 |
+
"scale_embedding": false,
|
86 |
+
"sep_token_id": null,
|
87 |
+
"suppress_tokens": null,
|
88 |
+
"task_specific_params": null,
|
89 |
+
"temperature": 1.0,
|
90 |
+
"tf_legacy_loss": false,
|
91 |
+
"tie_encoder_decoder": false,
|
92 |
+
"tie_word_embeddings": true,
|
93 |
+
"tokenizer_class": null,
|
94 |
+
"top_k": 50,
|
95 |
+
"top_p": 1.0,
|
96 |
+
"torch_dtype": null,
|
97 |
+
"torchscript": false,
|
98 |
+
"typical_p": 1.0,
|
99 |
+
"use_bfloat16": false,
|
100 |
+
"use_cache": true,
|
101 |
+
"vocab_size": 51289
|
102 |
},
|
103 |
+
"torch_dtype": "float32",
|
104 |
+
"transformers_version": "4.44.2",
|
105 |
"vision_config": {
|
106 |
"model_type": "davit",
|
107 |
"drop_path_rate": 0.1,
|
|
|
127 |
"image_feature_source": ["spatial_avg_pool", "temporal_avg_pool"]
|
128 |
},
|
129 |
"vocab_size": 51289,
|
130 |
+
"torch_dtype": "float16",
|
131 |
"transformers_version": "4.41.0.dev0",
|
132 |
"is_encoder_decoder": true
|
133 |
+
}
|