Upload Blip2ForConditionalGeneration
Browse files- config.json +45 -0
- generation_config.json +7 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +0 -0
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Salesforce/blip2-opt-2.7b",
|
3 |
+
"architectures": [
|
4 |
+
"Blip2ForConditionalGeneration"
|
5 |
+
],
|
6 |
+
"image_text_hidden_size": 256,
|
7 |
+
"image_token_index": 50265,
|
8 |
+
"initializer_factor": 1.0,
|
9 |
+
"initializer_range": 0.02,
|
10 |
+
"model_type": "blip-2",
|
11 |
+
"num_query_tokens": 32,
|
12 |
+
"qformer_config": {
|
13 |
+
"_attn_implementation_autoset": true,
|
14 |
+
"classifier_dropout": null,
|
15 |
+
"model_type": "blip_2_qformer"
|
16 |
+
},
|
17 |
+
"text_config": {
|
18 |
+
"_name_or_path": "facebook/opt-2.7b",
|
19 |
+
"activation_dropout": 0.0,
|
20 |
+
"architectures": [
|
21 |
+
"OPTForCausalLM"
|
22 |
+
],
|
23 |
+
"eos_token_id": 50118,
|
24 |
+
"ffn_dim": 10240,
|
25 |
+
"hidden_size": 2560,
|
26 |
+
"model_type": "opt",
|
27 |
+
"num_attention_heads": 32,
|
28 |
+
"num_hidden_layers": 32,
|
29 |
+
"prefix": "</s>",
|
30 |
+
"torch_dtype": "float16",
|
31 |
+
"vocab_size": 50304,
|
32 |
+
"word_embed_proj_dim": 2560
|
33 |
+
},
|
34 |
+
"torch_dtype": "float16",
|
35 |
+
"transformers_version": "4.46.3",
|
36 |
+
"use_decoder_only_language_model": true,
|
37 |
+
"vision_config": {
|
38 |
+
"_attn_implementation_autoset": true,
|
39 |
+
"dropout": 0.0,
|
40 |
+
"initializer_factor": 1.0,
|
41 |
+
"model_type": "blip_2_vision_model",
|
42 |
+
"num_channels": 3,
|
43 |
+
"projection_dim": 512
|
44 |
+
}
|
45 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 2,
|
4 |
+
"eos_token_id": 50118,
|
5 |
+
"pad_token_id": 1,
|
6 |
+
"transformers_version": "4.46.3"
|
7 |
+
}
|
model-00001-of-00002.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6fb714b1c34851a2a03571bff63f28c30d70bfbd92d61aa4417daba129f5d9d
|
3 |
+
size 4998227032
|
model-00002-of-00002.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:823b904aefee04a1e5111f75cfbd039f9b1c3fad33a4cedda69933d07ab70d7c
|
3 |
+
size 2491456200
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|