danielhanchen commited on
Commit
e02d208
1 Parent(s): 85d32b0

Upload MllamaForConditionalGeneration

Browse files
config.json CHANGED
@@ -1,42 +1,10 @@
1
  {
 
2
  "architectures": [
3
- "MllamaForCausalLM"
4
  ],
5
- "bos_token_id": 128000,
6
- "cross_attention_layers": [
7
- 3,
8
- 8,
9
- 13,
10
- 18,
11
- 23,
12
- 28,
13
- 33,
14
- 38,
15
- 43,
16
- 48,
17
- 53,
18
- 58,
19
- 63,
20
- 68,
21
- 73,
22
- 78,
23
- 83,
24
- 88,
25
- 93,
26
- 98
27
- ],
28
- "dropout": 0,
29
- "eos_token_id": 128001,
30
- "hidden_act": "silu",
31
- "hidden_size": 8192,
32
- "initializer_range": 0.02,
33
- "intermediate_size": 28672,
34
- "max_position_embeddings": 131072,
35
- "model_type": "mllama_text_model",
36
- "num_attention_heads": 64,
37
- "num_hidden_layers": 100,
38
- "num_key_value_heads": 8,
39
- "pad_token_id": 128004,
40
  "quantization_config": {
41
  "_load_in_4bit": true,
42
  "_load_in_8bit": false,
@@ -52,18 +20,228 @@
52
  "load_in_8bit": false,
53
  "quant_method": "bitsandbytes"
54
  },
55
- "rms_norm_eps": 1e-05,
56
- "rope_scaling": {
57
- "factor": 8.0,
58
- "high_freq_factor": 4.0,
59
- "low_freq_factor": 1.0,
60
- "original_max_position_embeddings": 8192,
61
- "rope_type": "llama3"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  },
63
- "rope_theta": 500000.0,
64
- "tie_word_embeddings": false,
65
  "torch_dtype": "bfloat16",
66
- "transformers_version": "4.46.0.dev0",
67
- "use_cache": true,
68
- "vocab_size": 128256
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
 
1
  {
2
+ "_name_or_path": "meta-llama/Llama-3.2-90B-Vision",
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,
 
20
  "load_in_8bit": false,
21
  "quant_method": "bitsandbytes"
22
  },
23
+ "text_config": {
24
+ "_name_or_path": "",
25
+ "add_cross_attention": false,
26
+ "architectures": null,
27
+ "bad_words_ids": null,
28
+ "begin_suppress_tokens": null,
29
+ "bos_token_id": 128000,
30
+ "chunk_size_feed_forward": 0,
31
+ "cross_attention_hidden_size": null,
32
+ "cross_attention_layers": [
33
+ 3,
34
+ 8,
35
+ 13,
36
+ 18,
37
+ 23,
38
+ 28,
39
+ 33,
40
+ 38,
41
+ 43,
42
+ 48,
43
+ 53,
44
+ 58,
45
+ 63,
46
+ 68,
47
+ 73,
48
+ 78,
49
+ 83,
50
+ 88,
51
+ 93,
52
+ 98
53
+ ],
54
+ "decoder_start_token_id": null,
55
+ "diversity_penalty": 0.0,
56
+ "do_sample": false,
57
+ "dropout": 0,
58
+ "early_stopping": false,
59
+ "encoder_no_repeat_ngram_size": 0,
60
+ "eos_token_id": 128001,
61
+ "exponential_decay_length_penalty": null,
62
+ "finetuning_task": null,
63
+ "forced_bos_token_id": null,
64
+ "forced_eos_token_id": null,
65
+ "hidden_act": "silu",
66
+ "hidden_size": 8192,
67
+ "id2label": {
68
+ "0": "LABEL_0",
69
+ "1": "LABEL_1"
70
+ },
71
+ "initializer_range": 0.02,
72
+ "intermediate_size": 28672,
73
+ "is_decoder": false,
74
+ "is_encoder_decoder": false,
75
+ "label2id": {
76
+ "LABEL_0": 0,
77
+ "LABEL_1": 1
78
+ },
79
+ "length_penalty": 1.0,
80
+ "max_length": 20,
81
+ "max_position_embeddings": 131072,
82
+ "min_length": 0,
83
+ "model_type": "mllama_text_model",
84
+ "no_repeat_ngram_size": 0,
85
+ "num_attention_heads": 64,
86
+ "num_beam_groups": 1,
87
+ "num_beams": 1,
88
+ "num_hidden_layers": 100,
89
+ "num_key_value_heads": 8,
90
+ "num_return_sequences": 1,
91
+ "output_attentions": false,
92
+ "output_hidden_states": false,
93
+ "output_scores": false,
94
+ "pad_token_id": 128004,
95
+ "prefix": null,
96
+ "problem_type": null,
97
+ "pruned_heads": {},
98
+ "remove_invalid_values": false,
99
+ "repetition_penalty": 1.0,
100
+ "return_dict": true,
101
+ "return_dict_in_generate": false,
102
+ "rms_norm_eps": 1e-05,
103
+ "rope_scaling": {
104
+ "factor": 8.0,
105
+ "high_freq_factor": 4.0,
106
+ "low_freq_factor": 1.0,
107
+ "original_max_position_embeddings": 8192,
108
+ "rope_type": "llama3"
109
+ },
110
+ "rope_theta": 500000.0,
111
+ "sep_token_id": null,
112
+ "suppress_tokens": null,
113
+ "task_specific_params": null,
114
+ "temperature": 1.0,
115
+ "tf_legacy_loss": false,
116
+ "tie_encoder_decoder": false,
117
+ "tie_word_embeddings": false,
118
+ "tokenizer_class": null,
119
+ "top_k": 50,
120
+ "top_p": 1.0,
121
+ "torch_dtype": "bfloat16",
122
+ "torchscript": false,
123
+ "typical_p": 1.0,
124
+ "use_bfloat16": false,
125
+ "use_cache": true,
126
+ "vocab_size": 128256
127
  },
 
 
128
  "torch_dtype": "bfloat16",
129
+ "transformers_version": "4.45.0",
130
+ "vision_config": {
131
+ "_name_or_path": "",
132
+ "add_cross_attention": false,
133
+ "architectures": null,
134
+ "attention_heads": 16,
135
+ "bad_words_ids": null,
136
+ "begin_suppress_tokens": null,
137
+ "bos_token_id": null,
138
+ "chunk_size_feed_forward": 0,
139
+ "cross_attention_hidden_size": null,
140
+ "decoder_start_token_id": null,
141
+ "diversity_penalty": 0.0,
142
+ "do_sample": false,
143
+ "early_stopping": false,
144
+ "encoder_no_repeat_ngram_size": 0,
145
+ "eos_token_id": null,
146
+ "exponential_decay_length_penalty": null,
147
+ "finetuning_task": null,
148
+ "forced_bos_token_id": null,
149
+ "forced_eos_token_id": null,
150
+ "hidden_act": "gelu",
151
+ "hidden_size": 1280,
152
+ "id2label": {
153
+ "0": "LABEL_0",
154
+ "1": "LABEL_1"
155
+ },
156
+ "image_size": 560,
157
+ "initializer_range": 0.02,
158
+ "intermediate_layers_indices": [
159
+ 3,
160
+ 7,
161
+ 15,
162
+ 23,
163
+ 30
164
+ ],
165
+ "intermediate_size": 5120,
166
+ "is_decoder": false,
167
+ "is_encoder_decoder": false,
168
+ "label2id": {
169
+ "LABEL_0": 0,
170
+ "LABEL_1": 1
171
+ },
172
+ "length_penalty": 1.0,
173
+ "max_length": 20,
174
+ "max_num_tiles": 4,
175
+ "min_length": 0,
176
+ "model_type": "mllama_vision_model",
177
+ "no_repeat_ngram_size": 0,
178
+ "norm_eps": 1e-05,
179
+ "num_beam_groups": 1,
180
+ "num_beams": 1,
181
+ "num_channels": 3,
182
+ "num_global_layers": 8,
183
+ "num_hidden_layers": 32,
184
+ "num_return_sequences": 1,
185
+ "output_attentions": false,
186
+ "output_hidden_states": false,
187
+ "output_scores": false,
188
+ "pad_token_id": null,
189
+ "patch_size": 14,
190
+ "prefix": null,
191
+ "problem_type": null,
192
+ "pruned_heads": {},
193
+ "remove_invalid_values": false,
194
+ "repetition_penalty": 1.0,
195
+ "return_dict": true,
196
+ "return_dict_in_generate": false,
197
+ "sep_token_id": null,
198
+ "supported_aspect_ratios": [
199
+ [
200
+ 1,
201
+ 1
202
+ ],
203
+ [
204
+ 1,
205
+ 2
206
+ ],
207
+ [
208
+ 1,
209
+ 3
210
+ ],
211
+ [
212
+ 1,
213
+ 4
214
+ ],
215
+ [
216
+ 2,
217
+ 1
218
+ ],
219
+ [
220
+ 2,
221
+ 2
222
+ ],
223
+ [
224
+ 3,
225
+ 1
226
+ ],
227
+ [
228
+ 4,
229
+ 1
230
+ ]
231
+ ],
232
+ "suppress_tokens": null,
233
+ "task_specific_params": null,
234
+ "temperature": 1.0,
235
+ "tf_legacy_loss": false,
236
+ "tie_encoder_decoder": false,
237
+ "tie_word_embeddings": true,
238
+ "tokenizer_class": null,
239
+ "top_k": 50,
240
+ "top_p": 1.0,
241
+ "torch_dtype": "bfloat16",
242
+ "torchscript": false,
243
+ "typical_p": 1.0,
244
+ "use_bfloat16": false,
245
+ "vision_output_dim": 7680
246
+ }
247
  }
generation_config.json CHANGED
@@ -3,5 +3,5 @@
3
  "bos_token_id": 128000,
4
  "eos_token_id": 128001,
5
  "pad_token_id": 128004,
6
- "transformers_version": "4.46.0.dev0"
7
  }
 
3
  "bos_token_id": 128000,
4
  "eos_token_id": 128001,
5
  "pad_token_id": 128004,
6
+ "transformers_version": "4.45.0"
7
  }
model-00001-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:774a2c2132673d5fff22bb1d4d0f2a99b79700e4bd3ca0cc302ae0f4e4e4314c
3
- size 4949214341
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:650c83289f75bc2a94392020f4e08af0d7506060e5bce93cf44786582dce0636
3
+ size 4947107668
model-00002-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:781d95215ed339242a2f234380a4c419f8012968906b6d18c4acc5cfb1e27093
3
- size 4977056847
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18e5c46b8eedcee0601cb9d7e82ee5e7cba955320f62a422c66bdc88069601bf
3
+ size 4977064275
model-00003-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:290f0c8c9a3c9e16956676d3ce7eb0528405c745d7ce24032adf1634ed5adf93
3
- size 4977090920
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0ce49d0d5e5a39cd48319d7342dc0a9696502635e49f6764dcac17fced44b66
3
+ size 4977064457
model-00004-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:98ca25c9b536aced3325b890c3a3ab6ef645e196bb9bd7371122c3db62b03cc8
3
- size 4933788727
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe3877119333def8ac635bda019a948d71dd6bea414e8b762896a426adc66e28
3
+ size 4977098481
model-00005-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:493d614295ff52254bc18c164258e25093667adf7e243ecaa49a46ca847f7dba
3
- size 4977057042
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e25f18c284437a34d7f23009810241f5206a122d4c9a6b84b6c077eafce4b639
3
+ size 4933796472
model-00006-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f7fb6dc2ede8961d6144ad5a9914da8b88da7be122090cc6407b281f725ada97
3
- size 4977056984
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76839275d021157fac0cabbd9268a967d773cbd1812f373868df191d61fe145a
3
+ size 4977064511
model-00007-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d0dd28a2d392a138de23ad9caa3c55be064bbbc8daa70beefdf01d69f4858150
3
- size 4977090913
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04baa35520390768a11cc24bcef62e2c09feee44db3e07bb5a39b304b9ebd87c
3
+ size 4977064451
model-00008-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e6232e968997b9b374c1eef945c34d056d2c4bb2a1f91129e7375296051cb7df
3
- size 4933788729
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5db190966344fabd62fbc653d53aa6150bc2d4b9d2f7da7f376b15520c09c290
3
+ size 4977098474
model-00009-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:83ed7f9dd9d7c1dc8b45a75a29d70e18d690e41683c78d7b1b77536e05f582c0
3
- size 4977057020
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f07a2eda5aa9585bac1498cde97455d60c82e020beeae95908b8971d0e546719
3
+ size 4933796461
model-00010-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:04e836bbf317955e75261bd18af3e5ade3a0583a77ec11eb95923ee3a9b7c34f
3
- size 3668068871
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d49c1260afdadaaa9c457099340ebe47dece62a0ff5c1eb4f1b257991b80818
3
+ size 4263159968
model.safetensors.index.json CHANGED
The diff for this file is too large to render. See raw diff