sunnyfangfangguo commited on
Commit
f5eae26
1 Parent(s): bda26c2

Upload MllamaForConditionalGeneration

Browse files
README.md ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags:
4
+ - trl
5
+ - sft
6
+ ---
7
+
8
+ # Model Card for Model ID
9
+
10
+ <!-- Provide a quick summary of what the model is/does. -->
11
+
12
+
13
+
14
+ ## Model Details
15
+
16
+ ### Model Description
17
+
18
+ <!-- Provide a longer summary of what this model is. -->
19
+
20
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
21
+
22
+ - **Developed by:** [More Information Needed]
23
+ - **Funded by [optional]:** [More Information Needed]
24
+ - **Shared by [optional]:** [More Information Needed]
25
+ - **Model type:** [More Information Needed]
26
+ - **Language(s) (NLP):** [More Information Needed]
27
+ - **License:** [More Information Needed]
28
+ - **Finetuned from model [optional]:** [More Information Needed]
29
+
30
+ ### Model Sources [optional]
31
+
32
+ <!-- Provide the basic links for the model. -->
33
+
34
+ - **Repository:** [More Information Needed]
35
+ - **Paper [optional]:** [More Information Needed]
36
+ - **Demo [optional]:** [More Information Needed]
37
+
38
+ ## Uses
39
+
40
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
41
+
42
+ ### Direct Use
43
+
44
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
45
+
46
+ [More Information Needed]
47
+
48
+ ### Downstream Use [optional]
49
+
50
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
51
+
52
+ [More Information Needed]
53
+
54
+ ### Out-of-Scope Use
55
+
56
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
57
+
58
+ [More Information Needed]
59
+
60
+ ## Bias, Risks, and Limitations
61
+
62
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
63
+
64
+ [More Information Needed]
65
+
66
+ ### Recommendations
67
+
68
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
69
+
70
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
71
+
72
+ ## How to Get Started with the Model
73
+
74
+ Use the code below to get started with the model.
75
+
76
+ [More Information Needed]
77
+
78
+ ## Training Details
79
+
80
+ ### Training Data
81
+
82
+ <!-- This should link to a Dataset 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. -->
83
+
84
+ [More Information Needed]
85
+
86
+ ### Training Procedure
87
+
88
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
89
+
90
+ #### Preprocessing [optional]
91
+
92
+ [More Information Needed]
93
+
94
+
95
+ #### Training Hyperparameters
96
+
97
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
98
+
99
+ #### Speeds, Sizes, Times [optional]
100
+
101
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
102
+
103
+ [More Information Needed]
104
+
105
+ ## Evaluation
106
+
107
+ <!-- This section describes the evaluation protocols and provides the results. -->
108
+
109
+ ### Testing Data, Factors & Metrics
110
+
111
+ #### Testing Data
112
+
113
+ <!-- This should link to a Dataset Card if possible. -->
114
+
115
+ [More Information Needed]
116
+
117
+ #### Factors
118
+
119
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
120
+
121
+ [More Information Needed]
122
+
123
+ #### Metrics
124
+
125
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
126
+
127
+ [More Information Needed]
128
+
129
+ ### Results
130
+
131
+ [More Information Needed]
132
+
133
+ #### Summary
134
+
135
+
136
+
137
+ ## Model Examination [optional]
138
+
139
+ <!-- Relevant interpretability work for the model goes here -->
140
+
141
+ [More Information Needed]
142
+
143
+ ## Environmental Impact
144
+
145
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
146
+
147
+ 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).
148
+
149
+ - **Hardware Type:** [More Information Needed]
150
+ - **Hours used:** [More Information Needed]
151
+ - **Cloud Provider:** [More Information Needed]
152
+ - **Compute Region:** [More Information Needed]
153
+ - **Carbon Emitted:** [More Information Needed]
154
+
155
+ ## Technical Specifications [optional]
156
+
157
+ ### Model Architecture and Objective
158
+
159
+ [More Information Needed]
160
+
161
+ ### Compute Infrastructure
162
+
163
+ [More Information Needed]
164
+
165
+ #### Hardware
166
+
167
+ [More Information Needed]
168
+
169
+ #### Software
170
+
171
+ [More Information Needed]
172
+
173
+ ## Citation [optional]
174
+
175
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
176
+
177
+ **BibTeX:**
178
+
179
+ [More Information Needed]
180
+
181
+ **APA:**
182
+
183
+ [More Information Needed]
184
+
185
+ ## Glossary [optional]
186
+
187
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
188
+
189
+ [More Information Needed]
190
+
191
+ ## More Information [optional]
192
+
193
+ [More Information Needed]
194
+
195
+ ## Model Card Authors [optional]
196
+
197
+ [More Information Needed]
198
+
199
+ ## Model Card Contact
200
+
201
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "unsloth/Llama-3.2-11B-Vision-Instruct-bnb-4bit",
3
+ "architectures": [
4
+ "MllamaForConditionalGeneration"
5
+ ],
6
+ "image_token_index": 128256,
7
+ "model_type": "mllama",
8
+ "quantization_config": {
9
+ "_load_in_4bit": true,
10
+ "_load_in_8bit": false,
11
+ "bnb_4bit_compute_dtype": "bfloat16",
12
+ "bnb_4bit_quant_storage": "uint8",
13
+ "bnb_4bit_quant_type": "nf4",
14
+ "bnb_4bit_use_double_quant": true,
15
+ "llm_int8_enable_fp32_cpu_offload": false,
16
+ "llm_int8_has_fp16_weight": false,
17
+ "llm_int8_skip_modules": null,
18
+ "llm_int8_threshold": 6.0,
19
+ "load_in_4bit": true,
20
+ "load_in_8bit": false,
21
+ "quant_method": "bitsandbytes"
22
+ },
23
+ "text_config": {
24
+ "_attn_implementation_autoset": false,
25
+ "_name_or_path": "",
26
+ "add_cross_attention": false,
27
+ "architectures": null,
28
+ "bad_words_ids": null,
29
+ "begin_suppress_tokens": null,
30
+ "bos_token_id": 128000,
31
+ "chunk_size_feed_forward": 0,
32
+ "cross_attention_hidden_size": null,
33
+ "cross_attention_layers": [
34
+ 3,
35
+ 8,
36
+ 13,
37
+ 18,
38
+ 23,
39
+ 28,
40
+ 33,
41
+ 38
42
+ ],
43
+ "decoder_start_token_id": null,
44
+ "diversity_penalty": 0.0,
45
+ "do_sample": false,
46
+ "dropout": 0,
47
+ "early_stopping": false,
48
+ "encoder_no_repeat_ngram_size": 0,
49
+ "eos_token_id": [
50
+ 128001,
51
+ 128008,
52
+ 128009
53
+ ],
54
+ "exponential_decay_length_penalty": null,
55
+ "finetuning_task": null,
56
+ "forced_bos_token_id": null,
57
+ "forced_eos_token_id": null,
58
+ "hidden_act": "silu",
59
+ "hidden_size": 4096,
60
+ "id2label": {
61
+ "0": "LABEL_0",
62
+ "1": "LABEL_1"
63
+ },
64
+ "initializer_range": 0.02,
65
+ "intermediate_size": 14336,
66
+ "is_decoder": false,
67
+ "is_encoder_decoder": false,
68
+ "label2id": {
69
+ "LABEL_0": 0,
70
+ "LABEL_1": 1
71
+ },
72
+ "length_penalty": 1.0,
73
+ "max_length": 20,
74
+ "max_position_embeddings": 131072,
75
+ "min_length": 0,
76
+ "model_type": "mllama_text_model",
77
+ "no_repeat_ngram_size": 0,
78
+ "num_attention_heads": 32,
79
+ "num_beam_groups": 1,
80
+ "num_beams": 1,
81
+ "num_hidden_layers": 40,
82
+ "num_key_value_heads": 8,
83
+ "num_return_sequences": 1,
84
+ "output_attentions": false,
85
+ "output_hidden_states": false,
86
+ "output_scores": false,
87
+ "pad_token_id": 128004,
88
+ "prefix": null,
89
+ "problem_type": null,
90
+ "pruned_heads": {},
91
+ "remove_invalid_values": false,
92
+ "repetition_penalty": 1.0,
93
+ "return_dict": true,
94
+ "return_dict_in_generate": false,
95
+ "rms_norm_eps": 1e-05,
96
+ "rope_scaling": {
97
+ "factor": 8.0,
98
+ "high_freq_factor": 4.0,
99
+ "low_freq_factor": 1.0,
100
+ "original_max_position_embeddings": 8192,
101
+ "rope_type": "llama3"
102
+ },
103
+ "rope_theta": 500000.0,
104
+ "sep_token_id": null,
105
+ "suppress_tokens": null,
106
+ "task_specific_params": null,
107
+ "temperature": 1.0,
108
+ "tf_legacy_loss": false,
109
+ "tie_encoder_decoder": false,
110
+ "tie_word_embeddings": false,
111
+ "tokenizer_class": null,
112
+ "top_k": 50,
113
+ "top_p": 1.0,
114
+ "torch_dtype": "bfloat16",
115
+ "torchscript": false,
116
+ "typical_p": 1.0,
117
+ "use_bfloat16": false,
118
+ "use_cache": true,
119
+ "vocab_size": 128256
120
+ },
121
+ "torch_dtype": "float32",
122
+ "transformers_version": "4.46.1",
123
+ "vision_config": {
124
+ "_attn_implementation_autoset": false,
125
+ "_name_or_path": "",
126
+ "add_cross_attention": false,
127
+ "architectures": null,
128
+ "attention_heads": 16,
129
+ "bad_words_ids": null,
130
+ "begin_suppress_tokens": null,
131
+ "bos_token_id": null,
132
+ "chunk_size_feed_forward": 0,
133
+ "cross_attention_hidden_size": null,
134
+ "decoder_start_token_id": null,
135
+ "diversity_penalty": 0.0,
136
+ "do_sample": false,
137
+ "early_stopping": false,
138
+ "encoder_no_repeat_ngram_size": 0,
139
+ "eos_token_id": null,
140
+ "exponential_decay_length_penalty": null,
141
+ "finetuning_task": null,
142
+ "forced_bos_token_id": null,
143
+ "forced_eos_token_id": null,
144
+ "hidden_act": "gelu",
145
+ "hidden_size": 1280,
146
+ "id2label": {
147
+ "0": "LABEL_0",
148
+ "1": "LABEL_1"
149
+ },
150
+ "image_size": 560,
151
+ "initializer_range": 0.02,
152
+ "intermediate_layers_indices": [
153
+ 3,
154
+ 7,
155
+ 15,
156
+ 23,
157
+ 30
158
+ ],
159
+ "intermediate_size": 5120,
160
+ "is_decoder": false,
161
+ "is_encoder_decoder": false,
162
+ "label2id": {
163
+ "LABEL_0": 0,
164
+ "LABEL_1": 1
165
+ },
166
+ "length_penalty": 1.0,
167
+ "max_length": 20,
168
+ "max_num_tiles": 4,
169
+ "min_length": 0,
170
+ "model_type": "mllama_vision_model",
171
+ "no_repeat_ngram_size": 0,
172
+ "norm_eps": 1e-05,
173
+ "num_beam_groups": 1,
174
+ "num_beams": 1,
175
+ "num_channels": 3,
176
+ "num_global_layers": 8,
177
+ "num_hidden_layers": 32,
178
+ "num_return_sequences": 1,
179
+ "output_attentions": false,
180
+ "output_hidden_states": false,
181
+ "output_scores": false,
182
+ "pad_token_id": null,
183
+ "patch_size": 14,
184
+ "prefix": null,
185
+ "problem_type": null,
186
+ "pruned_heads": {},
187
+ "remove_invalid_values": false,
188
+ "repetition_penalty": 1.0,
189
+ "return_dict": true,
190
+ "return_dict_in_generate": false,
191
+ "sep_token_id": null,
192
+ "supported_aspect_ratios": [
193
+ [
194
+ 1,
195
+ 1
196
+ ],
197
+ [
198
+ 1,
199
+ 2
200
+ ],
201
+ [
202
+ 1,
203
+ 3
204
+ ],
205
+ [
206
+ 1,
207
+ 4
208
+ ],
209
+ [
210
+ 2,
211
+ 1
212
+ ],
213
+ [
214
+ 2,
215
+ 2
216
+ ],
217
+ [
218
+ 3,
219
+ 1
220
+ ],
221
+ [
222
+ 4,
223
+ 1
224
+ ]
225
+ ],
226
+ "suppress_tokens": null,
227
+ "task_specific_params": null,
228
+ "temperature": 1.0,
229
+ "tf_legacy_loss": false,
230
+ "tie_encoder_decoder": false,
231
+ "tie_word_embeddings": true,
232
+ "tokenizer_class": null,
233
+ "top_k": 50,
234
+ "top_p": 1.0,
235
+ "torch_dtype": "bfloat16",
236
+ "torchscript": false,
237
+ "typical_p": 1.0,
238
+ "use_bfloat16": false,
239
+ "vision_output_dim": 7680
240
+ }
241
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 128000,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 128001,
6
+ 128008,
7
+ 128009
8
+ ],
9
+ "pad_token_id": 128004,
10
+ "temperature": 0.6,
11
+ "top_p": 0.9,
12
+ "transformers_version": "4.46.1"
13
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8fd85100eaa8a13aabb4d1c18513e80f47f463bcb8c23b1457adf7282c5c914
3
+ size 4988131500
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08daa7e3490c3d8ebd3ad825b933893b1a23f7f7a7cc234e6c2b1b0db696148e
3
+ size 2370402923
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff