ChirathD commited on
Commit
4a4accf
1 Parent(s): 1d6a64d

Upload Blip2ForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +53 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "bnb_4bit_compute_dtype": "float32",
16
+ "bnb_4bit_quant_type": "fp4",
17
+ "bnb_4bit_use_double_quant": false,
18
+ "llm_int8_enable_fp32_cpu_offload": false,
19
+ "llm_int8_has_fp16_weight": false,
20
+ "llm_int8_skip_modules": null,
21
+ "llm_int8_threshold": 6.0,
22
+ "load_in_4bit": false,
23
+ "load_in_8bit": true,
24
+ "quant_method": "bitsandbytes"
25
+ },
26
+ "text_config": {
27
+ "_name_or_path": "facebook/opt-2.7b",
28
+ "activation_dropout": 0.0,
29
+ "architectures": [
30
+ "OPTForCausalLM"
31
+ ],
32
+ "eos_token_id": 50118,
33
+ "ffn_dim": 10240,
34
+ "hidden_size": 2560,
35
+ "model_type": "opt",
36
+ "num_attention_heads": 32,
37
+ "num_hidden_layers": 32,
38
+ "prefix": "</s>",
39
+ "torch_dtype": "float16",
40
+ "word_embed_proj_dim": 2560
41
+ },
42
+ "torch_dtype": "float16",
43
+ "transformers_version": "4.35.2",
44
+ "use_decoder_only_language_model": true,
45
+ "vision_config": {
46
+ "dropout": 0.0,
47
+ "initializer_factor": 1.0,
48
+ "layer_norm_eps": 1e-05,
49
+ "model_type": "blip_2_vision_model",
50
+ "num_channels": 3,
51
+ "projection_dim": 512
52
+ }
53
+ }
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.35.2"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b16f8f2da25bf1cf4ffc0a7e1f7112dfc84666abee11febd548b55be7023263
3
+ size 3887431352