ndr01 commited on
Commit
2458570
·
verified ·
1 Parent(s): 5fe77ce

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +85 -0
config.json CHANGED
@@ -32,4 +32,89 @@
32
  "task_type": "CAUSAL_LM",
33
  "use_dora": false,
34
  "use_rslora": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
 
32
  "task_type": "CAUSAL_LM",
33
  "use_dora": false,
34
  "use_rslora": true
35
+ }
36
+ {
37
+ "_name_or_path": "florence2",
38
+ "architectures": [
39
+ "Florence2ForConditionalGeneration"
40
+ ],
41
+ "auto_map": {
42
+ "AutoConfig": "configuration_florence2.Florence2Config",
43
+ "AutoModelForCausalLM": "modeling_florence2.Florence2ForConditionalGeneration"
44
+ },
45
+ "bos_token_id": 0,
46
+ "eos_token_id": 2,
47
+ "ignore_index": -100,
48
+ "model_type": "florence2",
49
+ "pad_token_id": 1,
50
+ "projection_dim": 768,
51
+ "text_config": {
52
+ "vocab_size": 51289,
53
+ "activation_dropout": 0.1,
54
+ "activation_function": "gelu",
55
+ "add_bias_logits": false,
56
+ "add_final_layer_norm": false,
57
+ "attention_dropout": 0.1,
58
+ "bos_token_id": 0,
59
+ "classif_dropout": 0.1,
60
+ "classifier_dropout": 0.0,
61
+ "d_model": 768,
62
+ "decoder_attention_heads": 12,
63
+ "decoder_ffn_dim": 3072,
64
+ "decoder_layerdrop": 0.0,
65
+ "decoder_layers": 6,
66
+ "decoder_start_token_id": 2,
67
+ "dropout": 0.1,
68
+ "early_stopping": true,
69
+ "encoder_attention_heads": 12,
70
+ "encoder_ffn_dim": 3072,
71
+ "encoder_layerdrop": 0.0,
72
+ "encoder_layers": 6,
73
+ "eos_token_id": 2,
74
+ "forced_eos_token_id": 2,
75
+ "forced_bos_token_id": 0,
76
+ "gradient_checkpointing": false,
77
+ "init_std": 0.02,
78
+ "is_encoder_decoder": true,
79
+ "label2id": {
80
+ "LABEL_0": 0,
81
+ "LABEL_1": 1,
82
+ "LABEL_2": 2
83
+ },
84
+ "max_position_embeddings": 1024,
85
+ "no_repeat_ngram_size": 3,
86
+ "normalize_before": false,
87
+ "num_hidden_layers": 6,
88
+ "pad_token_id": 1,
89
+ "scale_embedding": false,
90
+ "num_beams": 3
91
+ },
92
+ "vision_config": {
93
+ "model_type": "davit",
94
+ "drop_path_rate": 0.1,
95
+ "patch_size": [7, 3, 3, 3],
96
+ "patch_stride": [4, 2, 2, 2],
97
+ "patch_padding": [3, 1, 1, 1],
98
+ "patch_prenorm": [false, true, true, true],
99
+ "enable_checkpoint": false,
100
+ "dim_embed": [128, 256, 512, 1024],
101
+ "num_heads": [4, 8, 16, 32],
102
+ "num_groups": [4, 8, 16, 32],
103
+ "depths": [1, 1, 9, 1],
104
+ "window_size": 12,
105
+ "projection_dim": 768,
106
+ "visual_temporal_embedding": {
107
+ "type": "COSINE",
108
+ "max_temporal_embeddings": 100
109
+ },
110
+ "image_pos_embed": {
111
+ "type": "learned_abs_2d",
112
+ "max_pos_embeddings": 50
113
+ },
114
+ "image_feature_source": ["spatial_avg_pool", "temporal_avg_pool"]
115
+ },
116
+ "vocab_size": 51289,
117
+ "torch_dtype": "float16",
118
+ "transformers_version": "4.41.0.dev0",
119
+ "is_encoder_decoder": true
120
  }