danielhanchen commited on
Commit
a6008ca
·
verified ·
1 Parent(s): 2a045ba

Upload folder using huggingface_hub

Browse files
config.json CHANGED
@@ -1,10 +1,12 @@
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,
@@ -14,22 +16,18 @@
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,
@@ -52,54 +50,16 @@
52
  93,
53
  98
54
  ],
55
- "decoder_start_token_id": null,
56
- "diversity_penalty": 0.0,
57
- "do_sample": false,
58
  "dropout": 0,
59
- "early_stopping": false,
60
- "encoder_no_repeat_ngram_size": 0,
61
- "eos_token_id": 128001,
62
- "exponential_decay_length_penalty": null,
63
- "finetuning_task": null,
64
- "forced_bos_token_id": null,
65
- "forced_eos_token_id": null,
66
  "hidden_act": "silu",
67
  "hidden_size": 8192,
68
- "id2label": {
69
- "0": "LABEL_0",
70
- "1": "LABEL_1"
71
- },
72
  "initializer_range": 0.02,
73
  "intermediate_size": 28672,
74
- "is_decoder": false,
75
- "is_encoder_decoder": false,
76
- "label2id": {
77
- "LABEL_0": 0,
78
- "LABEL_1": 1
79
- },
80
- "length_penalty": 1.0,
81
- "max_length": 20,
82
  "max_position_embeddings": 131072,
83
- "min_length": 0,
84
  "model_type": "mllama_text_model",
85
- "no_repeat_ngram_size": 0,
86
  "num_attention_heads": 64,
87
- "num_beam_groups": 1,
88
- "num_beams": 1,
89
  "num_hidden_layers": 100,
90
  "num_key_value_heads": 8,
91
- "num_return_sequences": 1,
92
- "output_attentions": false,
93
- "output_hidden_states": false,
94
- "output_scores": false,
95
- "pad_token_id": 128004,
96
- "prefix": null,
97
- "problem_type": null,
98
- "pruned_heads": {},
99
- "remove_invalid_values": false,
100
- "repetition_penalty": 1.0,
101
- "return_dict": true,
102
- "return_dict_in_generate": false,
103
  "rms_norm_eps": 1e-05,
104
  "rope_scaling": {
105
  "factor": 8.0,
@@ -109,53 +69,17 @@
109
  "rope_type": "llama3"
110
  },
111
  "rope_theta": 500000.0,
112
- "sep_token_id": null,
113
- "suppress_tokens": null,
114
- "task_specific_params": null,
115
- "temperature": 1.0,
116
- "tf_legacy_loss": false,
117
- "tie_encoder_decoder": false,
118
- "tie_word_embeddings": false,
119
- "tokenizer_class": null,
120
- "top_k": 50,
121
- "top_p": 1.0,
122
  "torch_dtype": "bfloat16",
123
- "torchscript": false,
124
- "typical_p": 1.0,
125
- "use_bfloat16": false,
126
  "use_cache": true,
127
  "vocab_size": 128256
128
  },
129
  "torch_dtype": "bfloat16",
130
- "transformers_version": "4.46.3",
131
  "unsloth_fixed": true,
132
  "vision_config": {
133
- "_attn_implementation_autoset": false,
134
- "_name_or_path": "",
135
- "add_cross_attention": false,
136
- "architectures": null,
137
  "attention_heads": 16,
138
- "bad_words_ids": null,
139
- "begin_suppress_tokens": null,
140
- "bos_token_id": null,
141
- "chunk_size_feed_forward": 0,
142
- "cross_attention_hidden_size": null,
143
- "decoder_start_token_id": null,
144
- "diversity_penalty": 0.0,
145
- "do_sample": false,
146
- "early_stopping": false,
147
- "encoder_no_repeat_ngram_size": 0,
148
- "eos_token_id": null,
149
- "exponential_decay_length_penalty": null,
150
- "finetuning_task": null,
151
- "forced_bos_token_id": null,
152
- "forced_eos_token_id": null,
153
  "hidden_act": "gelu",
154
  "hidden_size": 1280,
155
- "id2label": {
156
- "0": "LABEL_0",
157
- "1": "LABEL_1"
158
- },
159
  "image_size": 560,
160
  "initializer_range": 0.02,
161
  "intermediate_layers_indices": [
@@ -166,38 +90,13 @@
166
  30
167
  ],
168
  "intermediate_size": 5120,
169
- "is_decoder": false,
170
- "is_encoder_decoder": false,
171
- "label2id": {
172
- "LABEL_0": 0,
173
- "LABEL_1": 1
174
- },
175
- "length_penalty": 1.0,
176
- "max_length": 20,
177
  "max_num_tiles": 4,
178
- "min_length": 0,
179
  "model_type": "mllama_vision_model",
180
- "no_repeat_ngram_size": 0,
181
  "norm_eps": 1e-05,
182
- "num_beam_groups": 1,
183
- "num_beams": 1,
184
  "num_channels": 3,
185
  "num_global_layers": 8,
186
  "num_hidden_layers": 32,
187
- "num_return_sequences": 1,
188
- "output_attentions": false,
189
- "output_hidden_states": false,
190
- "output_scores": false,
191
- "pad_token_id": null,
192
  "patch_size": 14,
193
- "prefix": null,
194
- "problem_type": null,
195
- "pruned_heads": {},
196
- "remove_invalid_values": false,
197
- "repetition_penalty": 1.0,
198
- "return_dict": true,
199
- "return_dict_in_generate": false,
200
- "sep_token_id": null,
201
  "supported_aspect_ratios": [
202
  [
203
  1,
@@ -232,19 +131,7 @@
232
  1
233
  ]
234
  ],
235
- "suppress_tokens": null,
236
- "task_specific_params": null,
237
- "temperature": 1.0,
238
- "tf_legacy_loss": false,
239
- "tie_encoder_decoder": false,
240
- "tie_word_embeddings": true,
241
- "tokenizer_class": null,
242
- "top_k": 50,
243
- "top_p": 1.0,
244
  "torch_dtype": "bfloat16",
245
- "torchscript": false,
246
- "typical_p": 1.0,
247
- "use_bfloat16": false,
248
  "vision_output_dim": 7680
249
  }
250
  }
 
1
  {
 
2
  "architectures": [
3
  "MllamaForConditionalGeneration"
4
  ],
5
+ "bos_token_id": 128000,
6
+ "eos_token_id": 128001,
7
  "image_token_index": 128256,
8
  "model_type": "mllama",
9
+ "pad_token_id": 128004,
10
  "quantization_config": {
11
  "_load_in_4bit": true,
12
  "_load_in_8bit": false,
 
16
  "bnb_4bit_use_double_quant": true,
17
  "llm_int8_enable_fp32_cpu_offload": false,
18
  "llm_int8_has_fp16_weight": false,
19
+ "llm_int8_skip_modules": [
20
+ "lm_head",
21
+ "multi_modal_projector",
22
+ "merger",
23
+ "modality_projection"
24
+ ],
25
  "llm_int8_threshold": 6.0,
26
  "load_in_4bit": true,
27
  "load_in_8bit": false,
28
  "quant_method": "bitsandbytes"
29
  },
30
  "text_config": {
 
 
 
 
 
 
 
 
 
31
  "cross_attention_layers": [
32
  3,
33
  8,
 
50
  93,
51
  98
52
  ],
 
 
 
53
  "dropout": 0,
 
 
 
 
 
 
 
54
  "hidden_act": "silu",
55
  "hidden_size": 8192,
 
 
 
 
56
  "initializer_range": 0.02,
57
  "intermediate_size": 28672,
 
 
 
 
 
 
 
 
58
  "max_position_embeddings": 131072,
 
59
  "model_type": "mllama_text_model",
 
60
  "num_attention_heads": 64,
 
 
61
  "num_hidden_layers": 100,
62
  "num_key_value_heads": 8,
 
 
 
 
 
 
 
 
 
 
 
 
63
  "rms_norm_eps": 1e-05,
64
  "rope_scaling": {
65
  "factor": 8.0,
 
69
  "rope_type": "llama3"
70
  },
71
  "rope_theta": 500000.0,
 
 
 
 
 
 
 
 
 
 
72
  "torch_dtype": "bfloat16",
 
 
 
73
  "use_cache": true,
74
  "vocab_size": 128256
75
  },
76
  "torch_dtype": "bfloat16",
77
+ "transformers_version": "4.52.4",
78
  "unsloth_fixed": true,
79
  "vision_config": {
 
 
 
 
80
  "attention_heads": 16,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  "hidden_act": "gelu",
82
  "hidden_size": 1280,
 
 
 
 
83
  "image_size": 560,
84
  "initializer_range": 0.02,
85
  "intermediate_layers_indices": [
 
90
  30
91
  ],
92
  "intermediate_size": 5120,
 
 
 
 
 
 
 
 
93
  "max_num_tiles": 4,
 
94
  "model_type": "mllama_vision_model",
 
95
  "norm_eps": 1e-05,
 
 
96
  "num_channels": 3,
97
  "num_global_layers": 8,
98
  "num_hidden_layers": 32,
 
 
 
 
 
99
  "patch_size": 14,
 
 
 
 
 
 
 
 
100
  "supported_aspect_ratios": [
101
  [
102
  1,
 
131
  1
132
  ]
133
  ],
 
 
 
 
 
 
 
 
 
134
  "torch_dtype": "bfloat16",
 
 
 
135
  "vision_output_dim": 7680
136
  }
137
  }
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.3"
7
  }
 
3
  "bos_token_id": 128000,
4
  "eos_token_id": 128001,
5
  "pad_token_id": 128004,
6
+ "transformers_version": "4.52.4"
7
  }
model-00010-of-00010.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bc77a781427aa2512d631f8100a21891f67ef8bf44eaba1fc97a9460f48c4f82
3
- size 4263159969
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3038a5ec5cd083f93f3ccd8e840828979d2bb9c6f9450d73c5720dea77c01dc1
3
+ size 4356531589
model.safetensors.index.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "metadata": {
3
- "total_size": 48939476902
4
  },
5
  "weight_map": {
6
  "language_model.lm_head.weight": "model-00010-of-00010.safetensors",
@@ -4488,11 +4488,6 @@
4488
  "language_model.model.norm.weight": "model-00010-of-00010.safetensors",
4489
  "multi_modal_projector.bias": "model-00010-of-00010.safetensors",
4490
  "multi_modal_projector.weight": "model-00010-of-00010.safetensors",
4491
- "multi_modal_projector.weight.absmax": "model-00010-of-00010.safetensors",
4492
- "multi_modal_projector.weight.nested_absmax": "model-00010-of-00010.safetensors",
4493
- "multi_modal_projector.weight.nested_quant_map": "model-00010-of-00010.safetensors",
4494
- "multi_modal_projector.weight.quant_map": "model-00010-of-00010.safetensors",
4495
- "multi_modal_projector.weight.quant_state.bitsandbytes__nf4": "model-00010-of-00010.safetensors",
4496
  "vision_model.class_embedding": "model-00001-of-00010.safetensors",
4497
  "vision_model.gated_positional_embedding.embedding": "model-00001-of-00010.safetensors",
4498
  "vision_model.gated_positional_embedding.gate": "model-00001-of-00010.safetensors",
 
1
  {
2
  "metadata": {
3
+ "total_size": 49032849082
4
  },
5
  "weight_map": {
6
  "language_model.lm_head.weight": "model-00010-of-00010.safetensors",
 
4488
  "language_model.model.norm.weight": "model-00010-of-00010.safetensors",
4489
  "multi_modal_projector.bias": "model-00010-of-00010.safetensors",
4490
  "multi_modal_projector.weight": "model-00010-of-00010.safetensors",
 
 
 
 
 
4491
  "vision_model.class_embedding": "model-00001-of-00010.safetensors",
4492
  "vision_model.gated_positional_embedding.embedding": "model-00001-of-00010.safetensors",
4493
  "vision_model.gated_positional_embedding.gate": "model-00001-of-00010.safetensors",
tokenizer_config.json CHANGED
@@ -1,4 +1,5 @@
1
  {
 
2
  "added_tokens_decoder": {
3
  "128000": {
4
  "content": "<|begin_of_text|>",
@@ -2060,6 +2061,7 @@
2060
  "bos_token": "<|begin_of_text|>",
2061
  "clean_up_tokenization_spaces": true,
2062
  "eos_token": "<|end_of_text|>",
 
2063
  "model_input_names": [
2064
  "input_ids",
2065
  "attention_mask"
@@ -2068,6 +2070,6 @@
2068
  "pad_token": "<|finetune_right_pad_id|>",
2069
  "padding_side": "left",
2070
  "processor_class": "MllamaProcessor",
2071
- "tokenizer_class": "PreTrainedTokenizerFast",
2072
  "unk_token": null
2073
- }
 
1
  {
2
+ "add_bos_token": true,
3
  "added_tokens_decoder": {
4
  "128000": {
5
  "content": "<|begin_of_text|>",
 
2061
  "bos_token": "<|begin_of_text|>",
2062
  "clean_up_tokenization_spaces": true,
2063
  "eos_token": "<|end_of_text|>",
2064
+ "extra_special_tokens": {},
2065
  "model_input_names": [
2066
  "input_ids",
2067
  "attention_mask"
 
2070
  "pad_token": "<|finetune_right_pad_id|>",
2071
  "padding_side": "left",
2072
  "processor_class": "MllamaProcessor",
2073
+ "tokenizer_class": "PreTrainedTokenizer",
2074
  "unk_token": null
2075
+ }