danielhanchen commited on
Commit
25b294a
·
verified ·
1 Parent(s): aa7b60f

Upload MllamaForConditionalGeneration

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