ZinengTang commited on
Commit
2908f6a
1 Parent(s): 77c8e94

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +48 -6
config.json CHANGED
@@ -7,15 +7,57 @@
7
  "model_type": "blip-2",
8
  "num_query_tokens": 32,
9
  "qformer_config": {
10
- "model_type": "blip_2_qformer"
11
- },
12
- "text_config": {
13
- "model_type": "opt"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  },
15
  "torch_dtype": "float32",
16
  "transformers_version": "4.34.1",
17
- "use_decoder_only_language_model": true,
18
  "vision_config": {
19
- "model_type": "blip_2_vision_model"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
  }
 
7
  "model_type": "blip-2",
8
  "num_query_tokens": 32,
9
  "qformer_config": {
10
+ {
11
+ "architectures": [
12
+ "Blip2QFormerModel"
13
+ ],
14
+ "num_query_tokens": 32,
15
+ "attention_probs_dropout_prob": 0.1,
16
+ "classifier_dropout": null,
17
+ "cross_attention_frequency": 2,
18
+ "encoder_hidden_size": 1408,
19
+ "hidden_act": "gelu",
20
+ "hidden_dropout_prob": 0.1,
21
+ "hidden_size": 768,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "layer_norm_eps": 1e-12,
25
+ "max_position_embeddings": 512,
26
+ "model_type": "blip_2_qformer",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "pad_token_id": 0,
30
+ "position_embedding_type": "absolute",
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.34.1",
33
+ "vocab_size": 30522
34
+ }
35
  },
36
  "torch_dtype": "float32",
37
  "transformers_version": "4.34.1",
 
38
  "vision_config": {
39
+ {
40
+ "architectures": [
41
+ "Blip2VisionModel"
42
+ ],
43
+ "attention_dropout": 0.0,
44
+ "dropout": 0.0,
45
+ "hidden_act": "gelu",
46
+ "hidden_size": 1408,
47
+ "image_size": 224,
48
+ "initializer_factor": 1.0,
49
+ "initializer_range": 1e-10,
50
+ "intermediate_size": 6144,
51
+ "layer_norm_eps": 1e-06,
52
+ "model_type": "blip_2_vision_model",
53
+ "num_attention_heads": 16,
54
+ "num_channels": 3,
55
+ "num_hidden_layers": 39,
56
+ "patch_size": 14,
57
+ "projection_dim": 512,
58
+ "qkv_bias": true,
59
+ "torch_dtype": "float32",
60
+ "transformers_version": "4.34.1"
61
+ }
62
  }
63
  }