JEILDLWLRMA
commited on
Commit
•
f9d35e0
1
Parent(s):
ae561fb
Upload BlipForQuestionAnswering
Browse files- config.json +91 -26
- pytorch_model.bin +2 -2
config.json
CHANGED
@@ -1,30 +1,96 @@
|
|
1 |
{
|
2 |
-
"_commit_hash": "
|
3 |
-
"_name_or_path": "
|
4 |
"architectures": [
|
5 |
-
"
|
6 |
],
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"classifier_dropout": null,
|
10 |
-
"eos_token_id": 102,
|
11 |
-
"hidden_act": "gelu",
|
12 |
-
"hidden_dropout_prob": 0.1,
|
13 |
-
"hidden_size": 768,
|
14 |
"initializer_range": 0.02,
|
15 |
-
"
|
16 |
-
"
|
17 |
-
"
|
18 |
-
"
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
"torch_dtype": "float32",
|
26 |
"transformers_version": null,
|
27 |
-
"use_cache": true,
|
28 |
"vision_config": {
|
29 |
"_name_or_path": "",
|
30 |
"add_cross_attention": false,
|
@@ -46,13 +112,13 @@
|
|
46 |
"finetuning_task": null,
|
47 |
"forced_bos_token_id": null,
|
48 |
"forced_eos_token_id": null,
|
49 |
-
"hidden_act": "
|
50 |
"hidden_size": 768,
|
51 |
"id2label": {
|
52 |
"0": "LABEL_0",
|
53 |
"1": "LABEL_1"
|
54 |
},
|
55 |
-
"image_size":
|
56 |
"initializer_factor": 1.0,
|
57 |
"initializer_range": 0.02,
|
58 |
"intermediate_size": 3072,
|
@@ -66,7 +132,7 @@
|
|
66 |
"length_penalty": 1.0,
|
67 |
"max_length": 20,
|
68 |
"min_length": 0,
|
69 |
-
"model_type": "
|
70 |
"no_repeat_ngram_size": 0,
|
71 |
"num_attention_heads": 12,
|
72 |
"num_beam_groups": 1,
|
@@ -102,6 +168,5 @@
|
|
102 |
"transformers_version": "4.31.0",
|
103 |
"typical_p": 1.0,
|
104 |
"use_bfloat16": false
|
105 |
-
}
|
106 |
-
"vocab_size": 30522
|
107 |
}
|
|
|
1 |
{
|
2 |
+
"_commit_hash": "99909119248dc49e49cd698ad685b3b646595a38",
|
3 |
+
"_name_or_path": "Salesforce/blip-vqa-base",
|
4 |
"architectures": [
|
5 |
+
"BlipForQuestionAnswering"
|
6 |
],
|
7 |
+
"image_text_hidden_size": 256,
|
8 |
+
"initializer_factor": 1.0,
|
|
|
|
|
|
|
|
|
|
|
9 |
"initializer_range": 0.02,
|
10 |
+
"logit_scale_init_value": 2.6592,
|
11 |
+
"model_type": "blip",
|
12 |
+
"projection_dim": 512,
|
13 |
+
"text_config": {
|
14 |
+
"_name_or_path": "",
|
15 |
+
"add_cross_attention": false,
|
16 |
+
"architectures": null,
|
17 |
+
"attention_probs_dropout_prob": 0.0,
|
18 |
+
"bad_words_ids": null,
|
19 |
+
"begin_suppress_tokens": null,
|
20 |
+
"bos_token_id": 30522,
|
21 |
+
"chunk_size_feed_forward": 0,
|
22 |
+
"cross_attention_hidden_size": null,
|
23 |
+
"decoder_start_token_id": null,
|
24 |
+
"diversity_penalty": 0.0,
|
25 |
+
"do_sample": false,
|
26 |
+
"early_stopping": false,
|
27 |
+
"encoder_hidden_size": 768,
|
28 |
+
"encoder_no_repeat_ngram_size": 0,
|
29 |
+
"eos_token_id": 2,
|
30 |
+
"exponential_decay_length_penalty": null,
|
31 |
+
"finetuning_task": null,
|
32 |
+
"forced_bos_token_id": null,
|
33 |
+
"forced_eos_token_id": null,
|
34 |
+
"hidden_act": "gelu",
|
35 |
+
"hidden_dropout_prob": 0.0,
|
36 |
+
"hidden_size": 768,
|
37 |
+
"id2label": {
|
38 |
+
"0": "LABEL_0",
|
39 |
+
"1": "LABEL_1"
|
40 |
+
},
|
41 |
+
"initializer_factor": 1.0,
|
42 |
+
"initializer_range": 0.02,
|
43 |
+
"intermediate_size": 3072,
|
44 |
+
"is_decoder": true,
|
45 |
+
"is_encoder_decoder": false,
|
46 |
+
"label2id": {
|
47 |
+
"LABEL_0": 0,
|
48 |
+
"LABEL_1": 1
|
49 |
+
},
|
50 |
+
"layer_norm_eps": 1e-12,
|
51 |
+
"length_penalty": 1.0,
|
52 |
+
"max_length": 20,
|
53 |
+
"max_position_embeddings": 512,
|
54 |
+
"min_length": 0,
|
55 |
+
"model_type": "blip_text_model",
|
56 |
+
"no_repeat_ngram_size": 0,
|
57 |
+
"num_attention_heads": 12,
|
58 |
+
"num_beam_groups": 1,
|
59 |
+
"num_beams": 1,
|
60 |
+
"num_hidden_layers": 12,
|
61 |
+
"num_return_sequences": 1,
|
62 |
+
"output_attentions": false,
|
63 |
+
"output_hidden_states": false,
|
64 |
+
"output_scores": false,
|
65 |
+
"pad_token_id": 0,
|
66 |
+
"prefix": null,
|
67 |
+
"problem_type": null,
|
68 |
+
"projection_dim": 768,
|
69 |
+
"pruned_heads": {},
|
70 |
+
"remove_invalid_values": false,
|
71 |
+
"repetition_penalty": 1.0,
|
72 |
+
"return_dict": true,
|
73 |
+
"return_dict_in_generate": false,
|
74 |
+
"sep_token_id": 102,
|
75 |
+
"suppress_tokens": null,
|
76 |
+
"task_specific_params": null,
|
77 |
+
"temperature": 1.0,
|
78 |
+
"tf_legacy_loss": false,
|
79 |
+
"tie_encoder_decoder": false,
|
80 |
+
"tie_word_embeddings": true,
|
81 |
+
"tokenizer_class": null,
|
82 |
+
"top_k": 50,
|
83 |
+
"top_p": 1.0,
|
84 |
+
"torch_dtype": null,
|
85 |
+
"torchscript": false,
|
86 |
+
"transformers_version": "4.31.0",
|
87 |
+
"typical_p": 1.0,
|
88 |
+
"use_bfloat16": false,
|
89 |
+
"use_cache": true,
|
90 |
+
"vocab_size": 30524
|
91 |
+
},
|
92 |
"torch_dtype": "float32",
|
93 |
"transformers_version": null,
|
|
|
94 |
"vision_config": {
|
95 |
"_name_or_path": "",
|
96 |
"add_cross_attention": false,
|
|
|
112 |
"finetuning_task": null,
|
113 |
"forced_bos_token_id": null,
|
114 |
"forced_eos_token_id": null,
|
115 |
+
"hidden_act": "gelu",
|
116 |
"hidden_size": 768,
|
117 |
"id2label": {
|
118 |
"0": "LABEL_0",
|
119 |
"1": "LABEL_1"
|
120 |
},
|
121 |
+
"image_size": 384,
|
122 |
"initializer_factor": 1.0,
|
123 |
"initializer_range": 0.02,
|
124 |
"intermediate_size": 3072,
|
|
|
132 |
"length_penalty": 1.0,
|
133 |
"max_length": 20,
|
134 |
"min_length": 0,
|
135 |
+
"model_type": "blip_vision_model",
|
136 |
"no_repeat_ngram_size": 0,
|
137 |
"num_attention_heads": 12,
|
138 |
"num_beam_groups": 1,
|
|
|
168 |
"transformers_version": "4.31.0",
|
169 |
"typical_p": 1.0,
|
170 |
"use_bfloat16": false
|
171 |
+
}
|
|
|
172 |
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ee21eba38a5fe5a707d537ac6327523f458285ac538210c0e15dc735c0546642
|
3 |
+
size 1538963481
|