AlexHung29629 commited on
Commit
6286435
1 Parent(s): 0eabf58

Upload Llama3ForConditionalGeneration

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,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AlexHung29629/test_mllama_11B_v2",
3
+ "architectures": [
4
+ "Llama3ForConditionalGeneration"
5
+ ],
6
+ "audio_config": {
7
+ "_attn_implementation_autoset": true,
8
+ "_name_or_path": "",
9
+ "activation_dropout": 0.0,
10
+ "adapter_act": "relu",
11
+ "adapter_kernel_size": 7,
12
+ "adapter_stride": 4,
13
+ "add_adapter": true,
14
+ "add_cross_attention": false,
15
+ "apply_spec_augment": false,
16
+ "architectures": [
17
+ "Wav2Vec2BertModel"
18
+ ],
19
+ "attention_dropout": 0.0,
20
+ "bad_words_ids": null,
21
+ "begin_suppress_tokens": null,
22
+ "bos_token_id": 1,
23
+ "chunk_size_feed_forward": 0,
24
+ "classifier_proj_size": 768,
25
+ "codevector_dim": 768,
26
+ "conformer_conv_dropout": 0.1,
27
+ "contrastive_logits_temperature": 0.1,
28
+ "conv_depthwise_kernel_size": 31,
29
+ "cross_attention_hidden_size": null,
30
+ "ctc_loss_reduction": "sum",
31
+ "ctc_zero_infinity": false,
32
+ "decoder_start_token_id": null,
33
+ "diversity_loss_weight": 0.1,
34
+ "diversity_penalty": 0.0,
35
+ "do_sample": false,
36
+ "early_stopping": false,
37
+ "encoder_no_repeat_ngram_size": 0,
38
+ "eos_token_id": 2,
39
+ "exponential_decay_length_penalty": null,
40
+ "feat_proj_dropout": 0.0,
41
+ "feat_quantizer_dropout": 0.0,
42
+ "feature_projection_input_dim": 160,
43
+ "final_dropout": 0.1,
44
+ "finetuning_task": null,
45
+ "forced_bos_token_id": null,
46
+ "forced_eos_token_id": null,
47
+ "hidden_act": "swish",
48
+ "hidden_dropout": 0.0,
49
+ "hidden_size": 1024,
50
+ "id2label": {
51
+ "0": "LABEL_0",
52
+ "1": "LABEL_1"
53
+ },
54
+ "initializer_range": 0.02,
55
+ "intermediate_size": 4096,
56
+ "is_decoder": false,
57
+ "is_encoder_decoder": false,
58
+ "label2id": {
59
+ "LABEL_0": 0,
60
+ "LABEL_1": 1
61
+ },
62
+ "layer_norm_eps": 1e-05,
63
+ "layerdrop": 0.1,
64
+ "left_max_position_embeddings": 64,
65
+ "length_penalty": 1.0,
66
+ "mask_feature_length": 10,
67
+ "mask_feature_min_masks": 0,
68
+ "mask_feature_prob": 0.0,
69
+ "mask_time_length": 10,
70
+ "mask_time_min_masks": 2,
71
+ "mask_time_prob": 0.05,
72
+ "max_length": 20,
73
+ "max_source_positions": 5000,
74
+ "min_length": 0,
75
+ "model_type": "wav2vec2-bert",
76
+ "no_repeat_ngram_size": 0,
77
+ "num_adapter_layers": 1,
78
+ "num_attention_heads": 16,
79
+ "num_beam_groups": 1,
80
+ "num_beams": 1,
81
+ "num_codevector_groups": 2,
82
+ "num_codevectors_per_group": 320,
83
+ "num_hidden_layers": 24,
84
+ "num_negatives": 100,
85
+ "num_return_sequences": 1,
86
+ "output_attentions": false,
87
+ "output_hidden_size": 4096,
88
+ "output_hidden_states": false,
89
+ "output_scores": false,
90
+ "pad_token_id": 0,
91
+ "position_embeddings_type": "relative_key",
92
+ "prefix": null,
93
+ "problem_type": null,
94
+ "proj_codevector_dim": 768,
95
+ "pruned_heads": {},
96
+ "remove_invalid_values": false,
97
+ "repetition_penalty": 1.0,
98
+ "return_dict": true,
99
+ "return_dict_in_generate": false,
100
+ "right_max_position_embeddings": 8,
101
+ "rotary_embedding_base": 10000,
102
+ "sep_token_id": null,
103
+ "suppress_tokens": null,
104
+ "task_specific_params": null,
105
+ "tdnn_dilation": [
106
+ 1,
107
+ 2,
108
+ 3,
109
+ 1,
110
+ 1
111
+ ],
112
+ "tdnn_dim": [
113
+ 512,
114
+ 512,
115
+ 512,
116
+ 512,
117
+ 1500
118
+ ],
119
+ "tdnn_kernel": [
120
+ 5,
121
+ 3,
122
+ 3,
123
+ 1,
124
+ 1
125
+ ],
126
+ "temperature": 1.0,
127
+ "tf_legacy_loss": false,
128
+ "tie_encoder_decoder": false,
129
+ "tie_word_embeddings": false,
130
+ "tokenizer_class": null,
131
+ "top_k": 50,
132
+ "top_p": 1.0,
133
+ "torch_dtype": "float16",
134
+ "torchscript": false,
135
+ "typical_p": 1.0,
136
+ "use_bfloat16": false,
137
+ "use_intermediate_ffn_before_adapter": false,
138
+ "use_weighted_layer_sum": false,
139
+ "vocab_size": 128256,
140
+ "xvector_output_dim": 512
141
+ },
142
+ "audio_token_index": 128257,
143
+ "auto_map": {
144
+ "AutoConfig": "AlexHung29629/test_mllama_11B_v2--configuration_llama3.Llama3Config",
145
+ "AutoModel": "AlexHung29629/test_mllama_11B_v2--modeling_llama3.Llama3ForConditionalGeneration",
146
+ "AutoModelForCausalLM": "AlexHung29629/test_mllama_11B_v2--modeling_llama3.Llama3ForCausalLM",
147
+ "AutoProcessor": "AlexHung29629/test_mllama_11B_v2--processing_mllama.MllamaProcessor"
148
+ },
149
+ "image_token_index": 128256,
150
+ "model_type": "llama3",
151
+ "text_config": {
152
+ "_attn_implementation_autoset": false,
153
+ "_name_or_path": "",
154
+ "add_cross_attention": false,
155
+ "architectures": null,
156
+ "bad_words_ids": null,
157
+ "begin_suppress_tokens": null,
158
+ "bos_token_id": 128000,
159
+ "chunk_size_feed_forward": 0,
160
+ "cross_attention_hidden_size": null,
161
+ "cross_attention_layers": [
162
+ 3,
163
+ 8,
164
+ 13,
165
+ 18,
166
+ 23,
167
+ 28,
168
+ 33,
169
+ 38
170
+ ],
171
+ "decoder_start_token_id": null,
172
+ "diversity_penalty": 0.0,
173
+ "do_sample": false,
174
+ "dropout": 0,
175
+ "early_stopping": false,
176
+ "encoder_no_repeat_ngram_size": 0,
177
+ "eos_token_id": [
178
+ 128001,
179
+ 128008,
180
+ 128009
181
+ ],
182
+ "exponential_decay_length_penalty": null,
183
+ "finetuning_task": null,
184
+ "forced_bos_token_id": null,
185
+ "forced_eos_token_id": null,
186
+ "hidden_act": "silu",
187
+ "hidden_size": 4096,
188
+ "id2label": {
189
+ "0": "LABEL_0",
190
+ "1": "LABEL_1"
191
+ },
192
+ "initializer_range": 0.02,
193
+ "intermediate_size": 14336,
194
+ "is_decoder": false,
195
+ "is_encoder_decoder": false,
196
+ "label2id": {
197
+ "LABEL_0": 0,
198
+ "LABEL_1": 1
199
+ },
200
+ "length_penalty": 1.0,
201
+ "max_length": 20,
202
+ "max_position_embeddings": 131072,
203
+ "min_length": 0,
204
+ "model_type": "mllama_text_model",
205
+ "no_repeat_ngram_size": 0,
206
+ "num_attention_heads": 32,
207
+ "num_beam_groups": 1,
208
+ "num_beams": 1,
209
+ "num_hidden_layers": 40,
210
+ "num_key_value_heads": 8,
211
+ "num_return_sequences": 1,
212
+ "output_attentions": false,
213
+ "output_hidden_states": false,
214
+ "output_scores": false,
215
+ "pad_token_id": 128004,
216
+ "prefix": null,
217
+ "problem_type": null,
218
+ "pruned_heads": {},
219
+ "remove_invalid_values": false,
220
+ "repetition_penalty": 1.0,
221
+ "return_dict": true,
222
+ "return_dict_in_generate": false,
223
+ "rms_norm_eps": 1e-05,
224
+ "rope_scaling": {
225
+ "factor": 8.0,
226
+ "high_freq_factor": 4.0,
227
+ "low_freq_factor": 1.0,
228
+ "original_max_position_embeddings": 8192,
229
+ "rope_type": "llama3"
230
+ },
231
+ "rope_theta": 500000.0,
232
+ "sep_token_id": null,
233
+ "suppress_tokens": null,
234
+ "task_specific_params": null,
235
+ "temperature": 1.0,
236
+ "tf_legacy_loss": false,
237
+ "tie_encoder_decoder": false,
238
+ "tie_word_embeddings": false,
239
+ "tokenizer_class": null,
240
+ "top_k": 50,
241
+ "top_p": 1.0,
242
+ "torch_dtype": "float16",
243
+ "torchscript": false,
244
+ "typical_p": 1.0,
245
+ "use_bfloat16": false,
246
+ "use_cache": true,
247
+ "vocab_size": 128256
248
+ },
249
+ "torch_dtype": "float16",
250
+ "transformers_version": "4.46.0",
251
+ "vision_config": {
252
+ "_attn_implementation_autoset": false,
253
+ "_name_or_path": "",
254
+ "add_cross_attention": false,
255
+ "architectures": null,
256
+ "attention_heads": 16,
257
+ "bad_words_ids": null,
258
+ "begin_suppress_tokens": null,
259
+ "bos_token_id": null,
260
+ "chunk_size_feed_forward": 0,
261
+ "cross_attention_hidden_size": null,
262
+ "decoder_start_token_id": null,
263
+ "diversity_penalty": 0.0,
264
+ "do_sample": false,
265
+ "early_stopping": false,
266
+ "encoder_no_repeat_ngram_size": 0,
267
+ "eos_token_id": null,
268
+ "exponential_decay_length_penalty": null,
269
+ "finetuning_task": null,
270
+ "forced_bos_token_id": null,
271
+ "forced_eos_token_id": null,
272
+ "hidden_act": "gelu",
273
+ "hidden_size": 1280,
274
+ "id2label": {
275
+ "0": "LABEL_0",
276
+ "1": "LABEL_1"
277
+ },
278
+ "image_size": 560,
279
+ "initializer_range": 0.02,
280
+ "intermediate_layers_indices": [
281
+ 3,
282
+ 7,
283
+ 15,
284
+ 23,
285
+ 30
286
+ ],
287
+ "intermediate_size": 5120,
288
+ "is_decoder": false,
289
+ "is_encoder_decoder": false,
290
+ "label2id": {
291
+ "LABEL_0": 0,
292
+ "LABEL_1": 1
293
+ },
294
+ "length_penalty": 1.0,
295
+ "max_length": 20,
296
+ "max_num_tiles": 4,
297
+ "min_length": 0,
298
+ "model_type": "mllama_vision_model",
299
+ "no_repeat_ngram_size": 0,
300
+ "norm_eps": 1e-05,
301
+ "num_beam_groups": 1,
302
+ "num_beams": 1,
303
+ "num_channels": 3,
304
+ "num_global_layers": 8,
305
+ "num_hidden_layers": 32,
306
+ "num_return_sequences": 1,
307
+ "output_attentions": false,
308
+ "output_hidden_states": false,
309
+ "output_scores": false,
310
+ "pad_token_id": null,
311
+ "patch_size": 14,
312
+ "prefix": null,
313
+ "problem_type": null,
314
+ "pruned_heads": {},
315
+ "remove_invalid_values": false,
316
+ "repetition_penalty": 1.0,
317
+ "return_dict": true,
318
+ "return_dict_in_generate": false,
319
+ "sep_token_id": null,
320
+ "supported_aspect_ratios": [
321
+ [
322
+ 1,
323
+ 1
324
+ ],
325
+ [
326
+ 1,
327
+ 2
328
+ ],
329
+ [
330
+ 1,
331
+ 3
332
+ ],
333
+ [
334
+ 1,
335
+ 4
336
+ ],
337
+ [
338
+ 2,
339
+ 1
340
+ ],
341
+ [
342
+ 2,
343
+ 2
344
+ ],
345
+ [
346
+ 3,
347
+ 1
348
+ ],
349
+ [
350
+ 4,
351
+ 1
352
+ ]
353
+ ],
354
+ "suppress_tokens": null,
355
+ "task_specific_params": null,
356
+ "temperature": 1.0,
357
+ "tf_legacy_loss": false,
358
+ "tie_encoder_decoder": false,
359
+ "tie_word_embeddings": true,
360
+ "tokenizer_class": null,
361
+ "top_k": 50,
362
+ "top_p": 1.0,
363
+ "torch_dtype": "float16",
364
+ "torchscript": false,
365
+ "typical_p": 1.0,
366
+ "use_bfloat16": false,
367
+ "vision_output_dim": 7680
368
+ }
369
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 128000,
4
+ "eos_token_id": [
5
+ 128001,
6
+ 128008,
7
+ 128009
8
+ ],
9
+ "pad_token_id": 128004,
10
+ "transformers_version": "4.46.0"
11
+ }
model-00001-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9150fcc993f48b7b2a916c6e5bd74717896caedec8162f81556e41426d4b75d
3
+ size 4992621786
model-00002-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60f2c9d67f3a9282114bc795492e40f5e4ed788bd94b303ac73c02be97819755
3
+ size 4966251600
model-00003-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ac7ea28cc27df2e279e1a1878491c13817e1ce4d0be22d3843abd0d83a64936
3
+ size 4915919592
model-00004-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:022d6eb245f211ee98951891e459bd09e26f9c441985799da168eec263176ff8
3
+ size 4999823860
model-00005-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ef3742134b048a729c391efef84d82208a925c4b82c6ece4ce87bcc5c705153
3
+ size 4827132176
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff