ronmasas commited on
Commit
6ae79cb
1 Parent(s): 68df09f

Upload folder using huggingface_hub

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