Upload 4 files
Browse files- README.md +219 -0
- adapter_config.json +26 -0
- config.json +256 -0
- pytorch_model.bin.index.json +0 -0
README.md
ADDED
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
base_model: ybelkada/blip2-opt-2.7b-fp16-sharded
|
4 |
+
---
|
5 |
+
|
6 |
+
# Model Card for Model ID
|
7 |
+
|
8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
## Model Details
|
13 |
+
|
14 |
+
### Model Description
|
15 |
+
|
16 |
+
<!-- Provide a longer summary of what this model is. -->
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
- **Developed by:** [More Information Needed]
|
21 |
+
- **Shared by [optional]:** [More Information Needed]
|
22 |
+
- **Model type:** [More Information Needed]
|
23 |
+
- **Language(s) (NLP):** [More Information Needed]
|
24 |
+
- **License:** [More Information Needed]
|
25 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
26 |
+
|
27 |
+
### Model Sources [optional]
|
28 |
+
|
29 |
+
<!-- Provide the basic links for the model. -->
|
30 |
+
|
31 |
+
- **Repository:** [More Information Needed]
|
32 |
+
- **Paper [optional]:** [More Information Needed]
|
33 |
+
- **Demo [optional]:** [More Information Needed]
|
34 |
+
|
35 |
+
## Uses
|
36 |
+
|
37 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
38 |
+
|
39 |
+
### Direct Use
|
40 |
+
|
41 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
42 |
+
|
43 |
+
[More Information Needed]
|
44 |
+
|
45 |
+
### Downstream Use [optional]
|
46 |
+
|
47 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
48 |
+
|
49 |
+
[More Information Needed]
|
50 |
+
|
51 |
+
### Out-of-Scope Use
|
52 |
+
|
53 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
54 |
+
|
55 |
+
[More Information Needed]
|
56 |
+
|
57 |
+
## Bias, Risks, and Limitations
|
58 |
+
|
59 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
60 |
+
|
61 |
+
[More Information Needed]
|
62 |
+
|
63 |
+
### Recommendations
|
64 |
+
|
65 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
66 |
+
|
67 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
68 |
+
|
69 |
+
## How to Get Started with the Model
|
70 |
+
|
71 |
+
Use the code below to get started with the model.
|
72 |
+
|
73 |
+
[More Information Needed]
|
74 |
+
|
75 |
+
## Training Details
|
76 |
+
|
77 |
+
### Training Data
|
78 |
+
|
79 |
+
<!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
80 |
+
|
81 |
+
[More Information Needed]
|
82 |
+
|
83 |
+
### Training Procedure
|
84 |
+
|
85 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
86 |
+
|
87 |
+
#### Preprocessing [optional]
|
88 |
+
|
89 |
+
[More Information Needed]
|
90 |
+
|
91 |
+
|
92 |
+
#### Training Hyperparameters
|
93 |
+
|
94 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
95 |
+
|
96 |
+
#### Speeds, Sizes, Times [optional]
|
97 |
+
|
98 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
99 |
+
|
100 |
+
[More Information Needed]
|
101 |
+
|
102 |
+
## Evaluation
|
103 |
+
|
104 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
105 |
+
|
106 |
+
### Testing Data, Factors & Metrics
|
107 |
+
|
108 |
+
#### Testing Data
|
109 |
+
|
110 |
+
<!-- This should link to a Data Card if possible. -->
|
111 |
+
|
112 |
+
[More Information Needed]
|
113 |
+
|
114 |
+
#### Factors
|
115 |
+
|
116 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
117 |
+
|
118 |
+
[More Information Needed]
|
119 |
+
|
120 |
+
#### Metrics
|
121 |
+
|
122 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
123 |
+
|
124 |
+
[More Information Needed]
|
125 |
+
|
126 |
+
### Results
|
127 |
+
|
128 |
+
[More Information Needed]
|
129 |
+
|
130 |
+
#### Summary
|
131 |
+
|
132 |
+
|
133 |
+
|
134 |
+
## Model Examination [optional]
|
135 |
+
|
136 |
+
<!-- Relevant interpretability work for the model goes here -->
|
137 |
+
|
138 |
+
[More Information Needed]
|
139 |
+
|
140 |
+
## Environmental Impact
|
141 |
+
|
142 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
143 |
+
|
144 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
145 |
+
|
146 |
+
- **Hardware Type:** [More Information Needed]
|
147 |
+
- **Hours used:** [More Information Needed]
|
148 |
+
- **Cloud Provider:** [More Information Needed]
|
149 |
+
- **Compute Region:** [More Information Needed]
|
150 |
+
- **Carbon Emitted:** [More Information Needed]
|
151 |
+
|
152 |
+
## Technical Specifications [optional]
|
153 |
+
|
154 |
+
### Model Architecture and Objective
|
155 |
+
|
156 |
+
[More Information Needed]
|
157 |
+
|
158 |
+
### Compute Infrastructure
|
159 |
+
|
160 |
+
[More Information Needed]
|
161 |
+
|
162 |
+
#### Hardware
|
163 |
+
|
164 |
+
[More Information Needed]
|
165 |
+
|
166 |
+
#### Software
|
167 |
+
|
168 |
+
[More Information Needed]
|
169 |
+
|
170 |
+
## Citation [optional]
|
171 |
+
|
172 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
173 |
+
|
174 |
+
**BibTeX:**
|
175 |
+
|
176 |
+
[More Information Needed]
|
177 |
+
|
178 |
+
**APA:**
|
179 |
+
|
180 |
+
[More Information Needed]
|
181 |
+
|
182 |
+
## Glossary [optional]
|
183 |
+
|
184 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
185 |
+
|
186 |
+
[More Information Needed]
|
187 |
+
|
188 |
+
## More Information [optional]
|
189 |
+
|
190 |
+
[More Information Needed]
|
191 |
+
|
192 |
+
## Model Card Authors [optional]
|
193 |
+
|
194 |
+
[More Information Needed]
|
195 |
+
|
196 |
+
## Model Card Contact
|
197 |
+
|
198 |
+
[More Information Needed]
|
199 |
+
|
200 |
+
|
201 |
+
## Training procedure
|
202 |
+
|
203 |
+
|
204 |
+
The following `bitsandbytes` quantization config was used during training:
|
205 |
+
- quant_method: bitsandbytes
|
206 |
+
- load_in_8bit: True
|
207 |
+
- load_in_4bit: False
|
208 |
+
- llm_int8_threshold: 6.0
|
209 |
+
- llm_int8_skip_modules: None
|
210 |
+
- llm_int8_enable_fp32_cpu_offload: False
|
211 |
+
- llm_int8_has_fp16_weight: False
|
212 |
+
- bnb_4bit_quant_type: fp4
|
213 |
+
- bnb_4bit_use_double_quant: False
|
214 |
+
- bnb_4bit_compute_dtype: float32
|
215 |
+
|
216 |
+
### Framework versions
|
217 |
+
|
218 |
+
|
219 |
+
- PEFT 0.6.3.dev0
|
adapter_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": {
|
4 |
+
"base_model_class": "Blip2ForConditionalGeneration",
|
5 |
+
"parent_library": "transformers.models.blip_2.modeling_blip_2"
|
6 |
+
},
|
7 |
+
"base_model_name_or_path": "ybelkada/blip2-opt-2.7b-fp16-sharded",
|
8 |
+
"bias": "none",
|
9 |
+
"fan_in_fan_out": false,
|
10 |
+
"inference_mode": true,
|
11 |
+
"init_lora_weights": true,
|
12 |
+
"layers_pattern": null,
|
13 |
+
"layers_to_transform": null,
|
14 |
+
"lora_alpha": 32,
|
15 |
+
"lora_dropout": 0.05,
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 16,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"k_proj",
|
23 |
+
"q_proj"
|
24 |
+
],
|
25 |
+
"task_type": null
|
26 |
+
}
|
config.json
ADDED
@@ -0,0 +1,256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_commit_hash": "56e1fe81e7e7c346e95e196ace7b442b3f8ff483",
|
3 |
+
"_name_or_path": "Salesforce/blip2-opt-2.7b",
|
4 |
+
"architectures": [
|
5 |
+
"Blip2ForConditionalGeneration"
|
6 |
+
],
|
7 |
+
"initializer_factor": 1.0,
|
8 |
+
"initializer_range": 0.02,
|
9 |
+
"model_type": "blip-2",
|
10 |
+
"num_query_tokens": 32,
|
11 |
+
"qformer_config": {
|
12 |
+
"_name_or_path": "",
|
13 |
+
"add_cross_attention": false,
|
14 |
+
"architectures": null,
|
15 |
+
"attention_probs_dropout_prob": 0.1,
|
16 |
+
"bad_words_ids": null,
|
17 |
+
"begin_suppress_tokens": null,
|
18 |
+
"bos_token_id": null,
|
19 |
+
"chunk_size_feed_forward": 0,
|
20 |
+
"classifier_dropout": null,
|
21 |
+
"cross_attention_frequency": 2,
|
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": 1408,
|
28 |
+
"encoder_no_repeat_ngram_size": 0,
|
29 |
+
"eos_token_id": null,
|
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.1,
|
36 |
+
"hidden_size": 768,
|
37 |
+
"id2label": {
|
38 |
+
"0": "LABEL_0",
|
39 |
+
"1": "LABEL_1"
|
40 |
+
},
|
41 |
+
"initializer_range": 0.02,
|
42 |
+
"intermediate_size": 3072,
|
43 |
+
"is_decoder": false,
|
44 |
+
"is_encoder_decoder": false,
|
45 |
+
"label2id": {
|
46 |
+
"LABEL_0": 0,
|
47 |
+
"LABEL_1": 1
|
48 |
+
},
|
49 |
+
"layer_norm_eps": 1e-12,
|
50 |
+
"length_penalty": 1.0,
|
51 |
+
"max_length": 20,
|
52 |
+
"max_position_embeddings": 512,
|
53 |
+
"min_length": 0,
|
54 |
+
"model_type": "blip_2_qformer",
|
55 |
+
"no_repeat_ngram_size": 0,
|
56 |
+
"num_attention_heads": 12,
|
57 |
+
"num_beam_groups": 1,
|
58 |
+
"num_beams": 1,
|
59 |
+
"num_hidden_layers": 12,
|
60 |
+
"num_return_sequences": 1,
|
61 |
+
"output_attentions": false,
|
62 |
+
"output_hidden_states": false,
|
63 |
+
"output_scores": false,
|
64 |
+
"pad_token_id": 0,
|
65 |
+
"position_embedding_type": "absolute",
|
66 |
+
"prefix": null,
|
67 |
+
"problem_type": null,
|
68 |
+
"pruned_heads": {},
|
69 |
+
"remove_invalid_values": false,
|
70 |
+
"repetition_penalty": 1.0,
|
71 |
+
"return_dict": true,
|
72 |
+
"return_dict_in_generate": false,
|
73 |
+
"sep_token_id": null,
|
74 |
+
"suppress_tokens": null,
|
75 |
+
"task_specific_params": null,
|
76 |
+
"temperature": 1.0,
|
77 |
+
"tf_legacy_loss": false,
|
78 |
+
"tie_encoder_decoder": false,
|
79 |
+
"tie_word_embeddings": true,
|
80 |
+
"tokenizer_class": null,
|
81 |
+
"top_k": 50,
|
82 |
+
"top_p": 1.0,
|
83 |
+
"torch_dtype": null,
|
84 |
+
"torchscript": false,
|
85 |
+
"transformers_version": "4.28.0.dev0",
|
86 |
+
"typical_p": 1.0,
|
87 |
+
"use_bfloat16": false,
|
88 |
+
"vocab_size": 30522
|
89 |
+
},
|
90 |
+
"text_config": {
|
91 |
+
"_name_or_path": "facebook/opt-2.7b",
|
92 |
+
"_remove_final_layer_norm": false,
|
93 |
+
"activation_dropout": 0.0,
|
94 |
+
"activation_function": "relu",
|
95 |
+
"add_cross_attention": false,
|
96 |
+
"architectures": [
|
97 |
+
"OPTForCausalLM"
|
98 |
+
],
|
99 |
+
"attention_dropout": 0.0,
|
100 |
+
"bad_words_ids": null,
|
101 |
+
"begin_suppress_tokens": null,
|
102 |
+
"bos_token_id": 2,
|
103 |
+
"chunk_size_feed_forward": 0,
|
104 |
+
"cross_attention_hidden_size": null,
|
105 |
+
"decoder_start_token_id": null,
|
106 |
+
"diversity_penalty": 0.0,
|
107 |
+
"do_layer_norm_before": true,
|
108 |
+
"do_sample": false,
|
109 |
+
"dropout": 0.1,
|
110 |
+
"early_stopping": false,
|
111 |
+
"enable_bias": true,
|
112 |
+
"encoder_no_repeat_ngram_size": 0,
|
113 |
+
"eos_token_id": 50118,
|
114 |
+
"exponential_decay_length_penalty": null,
|
115 |
+
"ffn_dim": 10240,
|
116 |
+
"finetuning_task": null,
|
117 |
+
"forced_bos_token_id": null,
|
118 |
+
"forced_eos_token_id": null,
|
119 |
+
"hidden_size": 2560,
|
120 |
+
"id2label": {
|
121 |
+
"0": "LABEL_0",
|
122 |
+
"1": "LABEL_1"
|
123 |
+
},
|
124 |
+
"init_std": 0.02,
|
125 |
+
"is_decoder": false,
|
126 |
+
"is_encoder_decoder": false,
|
127 |
+
"label2id": {
|
128 |
+
"LABEL_0": 0,
|
129 |
+
"LABEL_1": 1
|
130 |
+
},
|
131 |
+
"layer_norm_elementwise_affine": true,
|
132 |
+
"layerdrop": 0.0,
|
133 |
+
"length_penalty": 1.0,
|
134 |
+
"max_length": 20,
|
135 |
+
"max_position_embeddings": 2048,
|
136 |
+
"min_length": 0,
|
137 |
+
"model_type": "opt",
|
138 |
+
"no_repeat_ngram_size": 0,
|
139 |
+
"num_attention_heads": 32,
|
140 |
+
"num_beam_groups": 1,
|
141 |
+
"num_beams": 1,
|
142 |
+
"num_hidden_layers": 32,
|
143 |
+
"num_return_sequences": 1,
|
144 |
+
"output_attentions": false,
|
145 |
+
"output_hidden_states": false,
|
146 |
+
"output_scores": false,
|
147 |
+
"pad_token_id": 1,
|
148 |
+
"prefix": "</s>",
|
149 |
+
"problem_type": null,
|
150 |
+
"pruned_heads": {},
|
151 |
+
"remove_invalid_values": false,
|
152 |
+
"repetition_penalty": 1.0,
|
153 |
+
"return_dict": true,
|
154 |
+
"return_dict_in_generate": false,
|
155 |
+
"sep_token_id": null,
|
156 |
+
"suppress_tokens": null,
|
157 |
+
"task_specific_params": null,
|
158 |
+
"temperature": 1.0,
|
159 |
+
"tf_legacy_loss": false,
|
160 |
+
"tie_encoder_decoder": false,
|
161 |
+
"tie_word_embeddings": true,
|
162 |
+
"tokenizer_class": null,
|
163 |
+
"top_k": 50,
|
164 |
+
"top_p": 1.0,
|
165 |
+
"torch_dtype": "float16",
|
166 |
+
"torchscript": false,
|
167 |
+
"transformers_version": "4.28.0.dev0",
|
168 |
+
"typical_p": 1.0,
|
169 |
+
"use_bfloat16": false,
|
170 |
+
"use_cache": true,
|
171 |
+
"vocab_size": 50272,
|
172 |
+
"word_embed_proj_dim": 2560
|
173 |
+
},
|
174 |
+
"torch_dtype": "float16",
|
175 |
+
"transformers_version": null,
|
176 |
+
"use_decoder_only_language_model": true,
|
177 |
+
"vision_config": {
|
178 |
+
"_name_or_path": "",
|
179 |
+
"add_cross_attention": false,
|
180 |
+
"architectures": null,
|
181 |
+
"attention_dropout": 0.0,
|
182 |
+
"bad_words_ids": null,
|
183 |
+
"begin_suppress_tokens": null,
|
184 |
+
"bos_token_id": null,
|
185 |
+
"chunk_size_feed_forward": 0,
|
186 |
+
"cross_attention_hidden_size": null,
|
187 |
+
"decoder_start_token_id": null,
|
188 |
+
"diversity_penalty": 0.0,
|
189 |
+
"do_sample": false,
|
190 |
+
"dropout": 0.0,
|
191 |
+
"early_stopping": false,
|
192 |
+
"encoder_no_repeat_ngram_size": 0,
|
193 |
+
"eos_token_id": null,
|
194 |
+
"exponential_decay_length_penalty": null,
|
195 |
+
"finetuning_task": null,
|
196 |
+
"forced_bos_token_id": null,
|
197 |
+
"forced_eos_token_id": null,
|
198 |
+
"hidden_act": "gelu",
|
199 |
+
"hidden_size": 1408,
|
200 |
+
"id2label": {
|
201 |
+
"0": "LABEL_0",
|
202 |
+
"1": "LABEL_1"
|
203 |
+
},
|
204 |
+
"image_size": 224,
|
205 |
+
"initializer_factor": 1.0,
|
206 |
+
"initializer_range": 1e-10,
|
207 |
+
"intermediate_size": 6144,
|
208 |
+
"is_decoder": false,
|
209 |
+
"is_encoder_decoder": false,
|
210 |
+
"label2id": {
|
211 |
+
"LABEL_0": 0,
|
212 |
+
"LABEL_1": 1
|
213 |
+
},
|
214 |
+
"layer_norm_eps": 1e-05,
|
215 |
+
"length_penalty": 1.0,
|
216 |
+
"max_length": 20,
|
217 |
+
"min_length": 0,
|
218 |
+
"model_type": "blip_2_vision_model",
|
219 |
+
"no_repeat_ngram_size": 0,
|
220 |
+
"num_attention_heads": 16,
|
221 |
+
"num_beam_groups": 1,
|
222 |
+
"num_beams": 1,
|
223 |
+
"num_channels": 3,
|
224 |
+
"num_hidden_layers": 39,
|
225 |
+
"num_return_sequences": 1,
|
226 |
+
"output_attentions": false,
|
227 |
+
"output_hidden_states": false,
|
228 |
+
"output_scores": false,
|
229 |
+
"pad_token_id": null,
|
230 |
+
"patch_size": 14,
|
231 |
+
"prefix": null,
|
232 |
+
"problem_type": null,
|
233 |
+
"projection_dim": 512,
|
234 |
+
"pruned_heads": {},
|
235 |
+
"qkv_bias": true,
|
236 |
+
"remove_invalid_values": false,
|
237 |
+
"repetition_penalty": 1.0,
|
238 |
+
"return_dict": true,
|
239 |
+
"return_dict_in_generate": false,
|
240 |
+
"sep_token_id": null,
|
241 |
+
"suppress_tokens": null,
|
242 |
+
"task_specific_params": null,
|
243 |
+
"temperature": 1.0,
|
244 |
+
"tf_legacy_loss": false,
|
245 |
+
"tie_encoder_decoder": false,
|
246 |
+
"tie_word_embeddings": true,
|
247 |
+
"tokenizer_class": null,
|
248 |
+
"top_k": 50,
|
249 |
+
"top_p": 1.0,
|
250 |
+
"torch_dtype": null,
|
251 |
+
"torchscript": false,
|
252 |
+
"transformers_version": "4.28.0.dev0",
|
253 |
+
"typical_p": 1.0,
|
254 |
+
"use_bfloat16": false
|
255 |
+
}
|
256 |
+
}
|
pytorch_model.bin.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|