AdrianBZG commited on
Commit
a74bcfe
1 Parent(s): 7a1a4f8

Upload MultimodalLlamaForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./model_checkpoints/04-23_18-53-28/final_model/",
3
+ "architectures": [
4
+ "MultimodalLlamaForConditionalGeneration"
5
+ ],
6
+ "freeze_language_model": false,
7
+ "freeze_multimodal_projector": false,
8
+ "freeze_vision_model": true,
9
+ "ignore_index": -100,
10
+ "load_in_4bit": false,
11
+ "lora_config": {
12
+ "bias": "none",
13
+ "lora_alpha": 256,
14
+ "lora_dropout": 0.1,
15
+ "r": 128,
16
+ "target_modules": "all-linear",
17
+ "use_dora": true
18
+ },
19
+ "model_type": "multimodal_llama",
20
+ "projector_hidden_act": "gelu",
21
+ "text_config": {
22
+ "_name_or_path": "meta-llama/Meta-Llama-3-8B-Instruct",
23
+ "add_cross_attention": false,
24
+ "architectures": [
25
+ "LlamaForCausalLM"
26
+ ],
27
+ "attention_bias": false,
28
+ "attention_dropout": 0.0,
29
+ "bad_words_ids": null,
30
+ "begin_suppress_tokens": null,
31
+ "bos_token_id": 128000,
32
+ "chunk_size_feed_forward": 0,
33
+ "cross_attention_hidden_size": null,
34
+ "decoder_start_token_id": null,
35
+ "diversity_penalty": 0.0,
36
+ "do_sample": false,
37
+ "early_stopping": false,
38
+ "encoder_no_repeat_ngram_size": 0,
39
+ "eos_token_id": 128001,
40
+ "exponential_decay_length_penalty": null,
41
+ "finetuning_task": null,
42
+ "forced_bos_token_id": null,
43
+ "forced_eos_token_id": null,
44
+ "hidden_act": "silu",
45
+ "hidden_size": 4096,
46
+ "id2label": {
47
+ "0": "LABEL_0",
48
+ "1": "LABEL_1"
49
+ },
50
+ "initializer_range": 0.02,
51
+ "intermediate_size": 14336,
52
+ "is_decoder": false,
53
+ "is_encoder_decoder": false,
54
+ "label2id": {
55
+ "LABEL_0": 0,
56
+ "LABEL_1": 1
57
+ },
58
+ "length_penalty": 1.0,
59
+ "max_length": 20,
60
+ "max_position_embeddings": 8192,
61
+ "min_length": 0,
62
+ "model_type": "llama",
63
+ "no_repeat_ngram_size": 0,
64
+ "num_attention_heads": 32,
65
+ "num_beam_groups": 1,
66
+ "num_beams": 1,
67
+ "num_hidden_layers": 32,
68
+ "num_key_value_heads": 8,
69
+ "num_return_sequences": 1,
70
+ "output_attentions": false,
71
+ "output_hidden_states": false,
72
+ "output_scores": false,
73
+ "pad_token_id": null,
74
+ "prefix": null,
75
+ "pretraining_tp": 1,
76
+ "problem_type": null,
77
+ "pruned_heads": {},
78
+ "remove_invalid_values": false,
79
+ "repetition_penalty": 1.0,
80
+ "return_dict": true,
81
+ "return_dict_in_generate": false,
82
+ "rms_norm_eps": 1e-05,
83
+ "rope_scaling": null,
84
+ "rope_theta": 500000.0,
85
+ "sep_token_id": null,
86
+ "suppress_tokens": null,
87
+ "task_specific_params": null,
88
+ "temperature": 1.0,
89
+ "tf_legacy_loss": false,
90
+ "tie_encoder_decoder": false,
91
+ "tie_word_embeddings": false,
92
+ "tokenizer_class": null,
93
+ "top_k": 50,
94
+ "top_p": 1.0,
95
+ "torch_dtype": "bfloat16",
96
+ "torchscript": false,
97
+ "typical_p": 1.0,
98
+ "use_bfloat16": false,
99
+ "use_cache": true,
100
+ "vocab_size": 128258
101
+ },
102
+ "text_model_id": "meta-llama/Meta-Llama-3-8B-Instruct",
103
+ "tokenizer_len": 128258,
104
+ "torch_dtype": "bfloat16",
105
+ "transformers_version": "4.40.0",
106
+ "vision_config": {
107
+ "_name_or_path": "",
108
+ "add_cross_attention": false,
109
+ "architectures": null,
110
+ "attention_dropout": 0.0,
111
+ "bad_words_ids": null,
112
+ "begin_suppress_tokens": null,
113
+ "bos_token_id": null,
114
+ "chunk_size_feed_forward": 0,
115
+ "cross_attention_hidden_size": null,
116
+ "decoder_start_token_id": null,
117
+ "diversity_penalty": 0.0,
118
+ "do_sample": false,
119
+ "dropout": 0.0,
120
+ "early_stopping": false,
121
+ "encoder_no_repeat_ngram_size": 0,
122
+ "eos_token_id": null,
123
+ "exponential_decay_length_penalty": null,
124
+ "finetuning_task": null,
125
+ "forced_bos_token_id": null,
126
+ "forced_eos_token_id": null,
127
+ "hidden_act": "quick_gelu",
128
+ "hidden_size": 1024,
129
+ "id2label": {
130
+ "0": "LABEL_0",
131
+ "1": "LABEL_1"
132
+ },
133
+ "image_size": 224,
134
+ "initializer_factor": 1.0,
135
+ "initializer_range": 0.02,
136
+ "intermediate_size": 4096,
137
+ "is_decoder": false,
138
+ "is_encoder_decoder": false,
139
+ "label2id": {
140
+ "LABEL_0": 0,
141
+ "LABEL_1": 1
142
+ },
143
+ "layer_norm_eps": 1e-05,
144
+ "length_penalty": 1.0,
145
+ "max_length": 20,
146
+ "min_length": 0,
147
+ "model_type": "clip_vision_model",
148
+ "no_repeat_ngram_size": 0,
149
+ "num_attention_heads": 16,
150
+ "num_beam_groups": 1,
151
+ "num_beams": 1,
152
+ "num_channels": 3,
153
+ "num_hidden_layers": 24,
154
+ "num_return_sequences": 1,
155
+ "output_attentions": false,
156
+ "output_hidden_states": false,
157
+ "output_scores": false,
158
+ "pad_token_id": null,
159
+ "patch_size": 14,
160
+ "prefix": null,
161
+ "problem_type": null,
162
+ "projection_dim": 768,
163
+ "pruned_heads": {},
164
+ "remove_invalid_values": false,
165
+ "repetition_penalty": 1.0,
166
+ "return_dict": true,
167
+ "return_dict_in_generate": false,
168
+ "sep_token_id": null,
169
+ "suppress_tokens": null,
170
+ "task_specific_params": null,
171
+ "temperature": 1.0,
172
+ "tf_legacy_loss": false,
173
+ "tie_encoder_decoder": false,
174
+ "tie_word_embeddings": true,
175
+ "tokenizer_class": null,
176
+ "top_k": 50,
177
+ "top_p": 1.0,
178
+ "torch_dtype": null,
179
+ "torchscript": false,
180
+ "typical_p": 1.0,
181
+ "use_bfloat16": false
182
+ },
183
+ "vision_feature_layer": -2,
184
+ "vision_feature_select_strategy": "default",
185
+ "vision_model_id": "openai/clip-vit-large-patch14"
186
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 128000,
4
+ "eos_token_id": 128001,
5
+ "transformers_version": "4.40.0"
6
+ }
model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d306a4ca3622c3a03f917c8d7e9bc2520b9044321c106a990073dbfb0a68d825
3
+ size 4921893976
model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac6a731765793caf14158a932415f05045f7d691bdcff3e5186374418899ccc2
3
+ size 4907961792
model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:978cbb108df6dc6c917e45b635052dcc624429c6f4b3e2739ac4dcf87678a145
3
+ size 4994489848
model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3eaa9a755d65a36a9dfad55b6173a873e055f910b557b397b86ad349ce50b541
3
+ size 2558574600
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff