smokxy commited on
Commit
88b6523
1 Parent(s): c26133e

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +60 -60
config.json CHANGED
@@ -1,86 +1,86 @@
1
  {
2
- "vision_config": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "_name_or_path": "",
 
 
 
4
  "add_cross_attention": false,
5
- "architectures": null,
 
6
  "bad_words_ids": null,
7
- "begin_suppress_tokens": null,
8
- "bos_token_id": null,
9
  "chunk_size_feed_forward": 0,
 
 
10
  "cross_attention_hidden_size": null,
11
- "decoder_start_token_id": null,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  "depths": [1, 1, 9, 1],
13
  "dim_embed": [128, 256, 512, 1024],
14
- "diversity_penalty": 0.0,
15
- "do_sample": false,
16
  "drop_path_rate": 0.1,
17
- "early_stopping": false,
18
- "enable_checkpoint": false,
19
- "encoder_no_repeat_ngram_size": 0,
20
- "eos_token_id": null,
21
- "exponential_decay_length_penalty": null,
22
- "finetuning_task": null,
23
- "forced_bos_token_id": null,
24
- "forced_eos_token_id": null,
25
- "id2label": {
26
- "0": "LABEL_0",
27
- "1": "LABEL_1"
28
- },
29
  "image_feature_source": ["spatial_avg_pool", "temporal_avg_pool"],
30
  "image_pos_embed": {
31
  "max_pos_embeddings": 50,
32
  "type": "learned_abs_2d"
33
  },
34
- "is_decoder": false,
35
- "is_encoder_decoder": false,
36
- "label2id": {
37
- "LABEL_0": 0,
38
- "LABEL_1": 1
39
- },
40
- "length_penalty": 1.0,
41
- "max_length": 20,
42
- "min_length": 0,
43
- "model_type": "davit", // <--- Add this line
44
- "no_repeat_ngram_size": 0,
45
- "num_beam_groups": 1,
46
- "num_beams": 1,
47
  "num_groups": [4, 8, 16, 32],
48
  "num_heads": [4, 8, 16, 32],
49
- "num_return_sequences": 1,
50
- "output_attentions": false,
51
- "output_hidden_states": false,
52
- "output_scores": false,
53
- "pad_token_id": null,
54
  "patch_padding": [3, 1, 1, 1],
55
- "patch_prenorm": [false, true, true, true],
56
  "patch_size": [7, 3, 3, 3],
57
  "patch_stride": [4, 2, 2, 2],
58
- "prefix": null,
59
- "problem_type": null,
60
  "projection_dim": 768,
61
- "pruned_heads": {},
62
- "remove_invalid_values": false,
63
- "repetition_penalty": 1.0,
64
- "return_dict": true,
65
- "return_dict_in_generate": false,
66
- "sep_token_id": null,
67
- "suppress_tokens": null,
68
- "task_specific_params": null,
69
- "temperature": 1.0,
70
- "tf_legacy_loss": false,
71
- "tie_encoder_decoder": false,
72
- "tie_word_embeddings": true,
73
- "tokenizer_class": null,
74
- "top_k": 50,
75
- "top_p": 1.0,
76
- "torch_dtype": null,
77
- "torchscript": false,
78
- "typical_p": 1.0,
79
- "use_bfloat16": false,
80
  "visual_temporal_embedding": {
81
  "max_temporal_embeddings": 100,
82
  "type": "COSINE"
83
  },
84
  "window_size": 12
85
- }
 
86
  }
 
1
  {
2
+ "_name_or_path": "microsoft/Florence-2-base",
3
+ "architectures": [
4
+ "Florence2ForConditionalGeneration"
5
+ ],
6
+ "auto_map": {
7
+ "AutoConfig": "microsoft/Florence-2-base--configuration_florence2.Florence2Config",
8
+ "AutoModelForCausalLM": "microsoft/Florence-2-base--modeling_florence2.Florence2ForConditionalGeneration"
9
+ },
10
+ "bos_token_id": 0,
11
+ "eos_token_id": 2,
12
+ "ignore_index": -100,
13
+ "is_encoder_decoder": true,
14
+ "model_type": "florence2",
15
+ "pad_token_id": 1,
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
+ "attention_dropout": 0.1,
25
  "bad_words_ids": null,
26
+ "bos_token_id": 0,
 
27
  "chunk_size_feed_forward": 0,
28
+ "classif_dropout": 0.1,
29
+ "classifier_dropout": 0.0,
30
  "cross_attention_hidden_size": null,
31
+ "d_model": 768,
32
+ "decoder_attention_heads": 12,
33
+ "decoder_ffn_dim": 3072,
34
+ "decoder_layerdrop": 0.0,
35
+ "decoder_layers": 6,
36
+ "decoder_start_token_id": 2,
37
+ "dropout": 0.1,
38
+ "encoder_attention_heads": 12,
39
+ "encoder_ffn_dim": 3072,
40
+ "encoder_layers": 6,
41
+ "is_decoder": false,
42
+ "is_encoder_decoder": true,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1,
46
+ "LABEL_2": 2
47
+ },
48
+ "length_penalty": 1.0,
49
+ "max_length": 20,
50
+ "max_position_embeddings": 1024,
51
+ "model_type": "florence2_language",
52
+ "no_repeat_ngram_size": 3,
53
+ "num_beam_groups": 1,
54
+ "num_beams": 3,
55
+ "num_hidden_layers": 6,
56
+ "pad_token_id": 1,
57
+ "return_dict": true
58
+ },
59
+ "torch_dtype": "float32",
60
+ "transformers_version": "4.45.2",
61
+ "vision_config": {
62
+ "add_cross_attention": false,
63
+ "architectures": null,
64
  "depths": [1, 1, 9, 1],
65
  "dim_embed": [128, 256, 512, 1024],
 
 
66
  "drop_path_rate": 0.1,
 
 
 
 
 
 
 
 
 
 
 
 
67
  "image_feature_source": ["spatial_avg_pool", "temporal_avg_pool"],
68
  "image_pos_embed": {
69
  "max_pos_embeddings": 50,
70
  "type": "learned_abs_2d"
71
  },
72
+ "model_type": "davit", // This is the required change
 
 
 
 
 
 
 
 
 
 
 
 
73
  "num_groups": [4, 8, 16, 32],
74
  "num_heads": [4, 8, 16, 32],
 
 
 
 
 
75
  "patch_padding": [3, 1, 1, 1],
 
76
  "patch_size": [7, 3, 3, 3],
77
  "patch_stride": [4, 2, 2, 2],
 
 
78
  "projection_dim": 768,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  "visual_temporal_embedding": {
80
  "max_temporal_embeddings": 100,
81
  "type": "COSINE"
82
  },
83
  "window_size": 12
84
+ },
85
+ "vocab_size": 51289
86
  }