ZeZanZiet commited on
Commit
3b00907
1 Parent(s): 4b0f13e

Upload config

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