Upload folder using huggingface_hub
Browse files- config.json +59 -0
- generation_config.json +7 -0
- 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": true,
|
| 19 |
+
"_load_in_8bit": false,
|
| 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": true,
|
| 29 |
+
"load_in_8bit": false,
|
| 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:547c3dee737cd4e78678aa83e8502d6b5214f6911764a264516ebf5b4b285508
|
| 3 |
+
size 2303900992
|