Upload Blip2ForConditionalGeneration
Browse files- config.json +56 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "ybelkada/blip2-opt-2.7b-fp16-sharded",
|
3 |
+
"architectures": [
|
4 |
+
"Blip2ForConditionalGeneration"
|
5 |
+
],
|
6 |
+
"initializer_factor": 1.0,
|
7 |
+
"initializer_range": 0.02,
|
8 |
+
"model_type": "blip-2",
|
9 |
+
"num_query_tokens": 32,
|
10 |
+
"qformer_config": {
|
11 |
+
"classifier_dropout": null,
|
12 |
+
"model_type": "blip_2_qformer"
|
13 |
+
},
|
14 |
+
"quantization_config": {
|
15 |
+
"_load_in_4bit": false,
|
16 |
+
"_load_in_8bit": true,
|
17 |
+
"bnb_4bit_compute_dtype": "float32",
|
18 |
+
"bnb_4bit_quant_storage": "uint8",
|
19 |
+
"bnb_4bit_quant_type": "fp4",
|
20 |
+
"bnb_4bit_use_double_quant": false,
|
21 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
22 |
+
"llm_int8_has_fp16_weight": false,
|
23 |
+
"llm_int8_skip_modules": null,
|
24 |
+
"llm_int8_threshold": 6.0,
|
25 |
+
"load_in_4bit": false,
|
26 |
+
"load_in_8bit": true,
|
27 |
+
"quant_method": "bitsandbytes"
|
28 |
+
},
|
29 |
+
"text_config": {
|
30 |
+
"_name_or_path": "facebook/opt-2.7b",
|
31 |
+
"activation_dropout": 0.0,
|
32 |
+
"architectures": [
|
33 |
+
"OPTForCausalLM"
|
34 |
+
],
|
35 |
+
"eos_token_id": 50118,
|
36 |
+
"ffn_dim": 10240,
|
37 |
+
"hidden_size": 2560,
|
38 |
+
"model_type": "opt",
|
39 |
+
"num_attention_heads": 32,
|
40 |
+
"num_hidden_layers": 32,
|
41 |
+
"prefix": "</s>",
|
42 |
+
"torch_dtype": "float16",
|
43 |
+
"word_embed_proj_dim": 2560
|
44 |
+
},
|
45 |
+
"torch_dtype": "float16",
|
46 |
+
"transformers_version": "4.44.2",
|
47 |
+
"use_decoder_only_language_model": true,
|
48 |
+
"vision_config": {
|
49 |
+
"dropout": 0.0,
|
50 |
+
"initializer_factor": 1.0,
|
51 |
+
"layer_norm_eps": 1e-05,
|
52 |
+
"model_type": "blip_2_vision_model",
|
53 |
+
"num_channels": 3,
|
54 |
+
"projection_dim": 512
|
55 |
+
}
|
56 |
+
}
|
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.44.2"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc966c6c88617ce8038ed6657d4649b11ed7f6511b09dad2df3b9a7b2cb9ecc
|
3 |
+
size 3887489325
|