eduardo-bolognini commited on
Commit
390dd1b
·
verified ·
1 Parent(s): 7ff4766

Upload BlipForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +3 -26
  2. generation_config.json +1 -1
  3. model.safetensors +2 -2
config.json CHANGED
@@ -1,4 +1,5 @@
1
  {
 
2
  "architectures": [
3
  "BlipForConditionalGeneration"
4
  ],
@@ -11,44 +12,20 @@
11
  "projection_dim": 512,
12
  "text_config": {
13
  "_attn_implementation_autoset": true,
14
- "attention_probs_dropout_prob": 0.0,
15
- "encoder_hidden_size": 1024,
16
- "hidden_act": "gelu",
17
- "hidden_dropout_prob": 0.0,
18
- "hidden_size": 768,
19
  "initializer_factor": 1.0,
20
- "initializer_range": 0.02,
21
- "intermediate_size": 3072,
22
- "label_smoothing": 0.0,
23
- "layer_norm_eps": 1e-12,
24
- "max_position_embeddings": 512,
25
  "model_type": "blip_text_model",
26
  "num_attention_heads": 12,
27
- "num_hidden_layers": 12,
28
- "projection_dim": 768,
29
- "torch_dtype": "float32",
30
- "use_cache": true,
31
- "vocab_size": 30524
32
  },
33
  "torch_dtype": "float32",
34
- "transformers_version": "4.51.3",
35
  "vision_config": {
36
  "_attn_implementation_autoset": true,
37
- "attention_dropout": 0.0,
38
  "dropout": 0.0,
39
- "hidden_act": "gelu",
40
- "hidden_size": 1024,
41
- "image_size": 384,
42
  "initializer_factor": 1.0,
43
  "initializer_range": 0.02,
44
- "intermediate_size": 4096,
45
- "layer_norm_eps": 1e-05,
46
  "model_type": "blip_vision_model",
47
- "num_attention_heads": 16,
48
  "num_channels": 3,
49
- "num_hidden_layers": 24,
50
- "patch_size": 16,
51
- "projection_dim": 512,
52
  "torch_dtype": "float32"
53
  }
54
  }
 
1
  {
2
+ "_name_or_path": "Salesforce/blip-image-captioning-base",
3
  "architectures": [
4
  "BlipForConditionalGeneration"
5
  ],
 
12
  "projection_dim": 512,
13
  "text_config": {
14
  "_attn_implementation_autoset": true,
 
 
 
 
 
15
  "initializer_factor": 1.0,
 
 
 
 
 
16
  "model_type": "blip_text_model",
17
  "num_attention_heads": 12,
18
+ "torch_dtype": "float32"
 
 
 
 
19
  },
20
  "torch_dtype": "float32",
21
+ "transformers_version": "4.49.0",
22
  "vision_config": {
23
  "_attn_implementation_autoset": true,
 
24
  "dropout": 0.0,
 
 
 
25
  "initializer_factor": 1.0,
26
  "initializer_range": 0.02,
 
 
27
  "model_type": "blip_vision_model",
 
28
  "num_channels": 3,
 
 
 
29
  "torch_dtype": "float32"
30
  }
31
  }
generation_config.json CHANGED
@@ -3,5 +3,5 @@
3
  "bos_token_id": 30522,
4
  "eos_token_id": 2,
5
  "pad_token_id": 0,
6
- "transformers_version": "4.51.3"
7
  }
 
3
  "bos_token_id": 30522,
4
  "eos_token_id": 2,
5
  "pad_token_id": 0,
6
+ "transformers_version": "4.49.0"
7
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c8c3b1652dc8f86c76f28d5e5a4e0c37843a2a5b1d276ca415da7a90d2a87a31
3
- size 1879010480
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a15d7be1e58f6164212464b637f70c82260908ff005bb9964f988e4d523ec70c
3
+ size 989717056