AlexHung29629 commited on
Commit
16beaf9
1 Parent(s): 84ef01b

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,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Llama3ForConditionalGeneration"
4
+ ],
5
+ "audio_config": {
6
+ "_attn_implementation_autoset": true,
7
+ "_name_or_path": "",
8
+ "activation_dropout": 0.0,
9
+ "adapter_act": "relu",
10
+ "adapter_kernel_size": 7,
11
+ "adapter_stride": 4,
12
+ "add_adapter": true,
13
+ "add_cross_attention": false,
14
+ "apply_spec_augment": false,
15
+ "architectures": [
16
+ "Wav2Vec2BertModel"
17
+ ],
18
+ "attention_dropout": 0.0,
19
+ "bad_words_ids": null,
20
+ "begin_suppress_tokens": null,
21
+ "bos_token_id": 1,
22
+ "chunk_size_feed_forward": 0,
23
+ "classifier_proj_size": 768,
24
+ "codevector_dim": 768,
25
+ "conformer_conv_dropout": 0.1,
26
+ "contrastive_logits_temperature": 0.1,
27
+ "conv_depthwise_kernel_size": 31,
28
+ "cross_attention_hidden_size": null,
29
+ "ctc_loss_reduction": "sum",
30
+ "ctc_zero_infinity": false,
31
+ "decoder_start_token_id": null,
32
+ "diversity_loss_weight": 0.1,
33
+ "diversity_penalty": 0.0,
34
+ "do_sample": false,
35
+ "early_stopping": false,
36
+ "encoder_no_repeat_ngram_size": 0,
37
+ "eos_token_id": 2,
38
+ "exponential_decay_length_penalty": null,
39
+ "feat_proj_dropout": 0.0,
40
+ "feat_quantizer_dropout": 0.0,
41
+ "feature_projection_input_dim": 160,
42
+ "filler_token_id": 128004,
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": true,
130
+ "tokenizer_class": null,
131
+ "top_k": 50,
132
+ "top_p": 1.0,
133
+ "torch_dtype": "float32",
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": null,
140
+ "xvector_output_dim": 512
141
+ },
142
+ "audio_token_index": 128257,
143
+ "auto_map": {
144
+ "AutoConfig": "configuration_llama3.Llama3Config",
145
+ "AutoModel": "modeling_llama3.Llama3ForConditionalGeneration"
146
+ },
147
+ "image_token_index": 128256,
148
+ "model_type": "llama3",
149
+ "text_config": {
150
+ "_attn_implementation_autoset": false,
151
+ "_name_or_path": "",
152
+ "add_cross_attention": false,
153
+ "architectures": null,
154
+ "bad_words_ids": null,
155
+ "begin_suppress_tokens": null,
156
+ "bos_token_id": 128000,
157
+ "chunk_size_feed_forward": 0,
158
+ "cross_attention_hidden_size": null,
159
+ "cross_attention_layers": [
160
+ 3,
161
+ 8,
162
+ 13,
163
+ 18,
164
+ 23,
165
+ 28,
166
+ 33,
167
+ 38
168
+ ],
169
+ "decoder_start_token_id": null,
170
+ "diversity_penalty": 0.0,
171
+ "do_sample": false,
172
+ "dropout": 0,
173
+ "early_stopping": false,
174
+ "encoder_no_repeat_ngram_size": 0,
175
+ "eos_token_id": [
176
+ 128001,
177
+ 128008,
178
+ 128009
179
+ ],
180
+ "exponential_decay_length_penalty": null,
181
+ "finetuning_task": null,
182
+ "forced_bos_token_id": null,
183
+ "forced_eos_token_id": null,
184
+ "hidden_act": "silu",
185
+ "hidden_size": 4096,
186
+ "id2label": {
187
+ "0": "LABEL_0",
188
+ "1": "LABEL_1"
189
+ },
190
+ "initializer_range": 0.02,
191
+ "intermediate_size": 14336,
192
+ "is_decoder": false,
193
+ "is_encoder_decoder": false,
194
+ "label2id": {
195
+ "LABEL_0": 0,
196
+ "LABEL_1": 1
197
+ },
198
+ "length_penalty": 1.0,
199
+ "max_length": 20,
200
+ "max_position_embeddings": 131072,
201
+ "min_length": 0,
202
+ "model_type": "mllama_text_model",
203
+ "no_repeat_ngram_size": 0,
204
+ "num_attention_heads": 32,
205
+ "num_beam_groups": 1,
206
+ "num_beams": 1,
207
+ "num_hidden_layers": 40,
208
+ "num_key_value_heads": 8,
209
+ "num_return_sequences": 1,
210
+ "output_attentions": false,
211
+ "output_hidden_states": false,
212
+ "output_scores": false,
213
+ "pad_token_id": 128004,
214
+ "prefix": null,
215
+ "problem_type": null,
216
+ "pruned_heads": {},
217
+ "remove_invalid_values": false,
218
+ "repetition_penalty": 1.0,
219
+ "return_dict": true,
220
+ "return_dict_in_generate": false,
221
+ "rms_norm_eps": 1e-05,
222
+ "rope_scaling": {
223
+ "factor": 8.0,
224
+ "high_freq_factor": 4.0,
225
+ "low_freq_factor": 1.0,
226
+ "original_max_position_embeddings": 8192,
227
+ "rope_type": "llama3"
228
+ },
229
+ "rope_theta": 500000.0,
230
+ "sep_token_id": null,
231
+ "suppress_tokens": null,
232
+ "task_specific_params": null,
233
+ "temperature": 1.0,
234
+ "tf_legacy_loss": false,
235
+ "tie_encoder_decoder": false,
236
+ "tie_word_embeddings": false,
237
+ "tokenizer_class": null,
238
+ "top_k": 50,
239
+ "top_p": 1.0,
240
+ "torch_dtype": "float32",
241
+ "torchscript": false,
242
+ "typical_p": 1.0,
243
+ "use_bfloat16": false,
244
+ "use_cache": true,
245
+ "vocab_size": 128256
246
+ },
247
+ "torch_dtype": "float16",
248
+ "transformers_version": "4.46.0",
249
+ "vision_config": {
250
+ "_attn_implementation_autoset": false,
251
+ "_name_or_path": "",
252
+ "add_cross_attention": false,
253
+ "architectures": null,
254
+ "attention_heads": 16,
255
+ "bad_words_ids": null,
256
+ "begin_suppress_tokens": null,
257
+ "bos_token_id": null,
258
+ "chunk_size_feed_forward": 0,
259
+ "cross_attention_hidden_size": null,
260
+ "decoder_start_token_id": null,
261
+ "diversity_penalty": 0.0,
262
+ "do_sample": false,
263
+ "early_stopping": false,
264
+ "encoder_no_repeat_ngram_size": 0,
265
+ "eos_token_id": null,
266
+ "exponential_decay_length_penalty": null,
267
+ "finetuning_task": null,
268
+ "forced_bos_token_id": null,
269
+ "forced_eos_token_id": null,
270
+ "hidden_act": "gelu",
271
+ "hidden_size": 1280,
272
+ "id2label": {
273
+ "0": "LABEL_0",
274
+ "1": "LABEL_1"
275
+ },
276
+ "image_size": 560,
277
+ "initializer_range": 0.02,
278
+ "intermediate_layers_indices": [
279
+ 3,
280
+ 7,
281
+ 15,
282
+ 23,
283
+ 30
284
+ ],
285
+ "intermediate_size": 5120,
286
+ "is_decoder": false,
287
+ "is_encoder_decoder": false,
288
+ "label2id": {
289
+ "LABEL_0": 0,
290
+ "LABEL_1": 1
291
+ },
292
+ "length_penalty": 1.0,
293
+ "max_length": 20,
294
+ "max_num_tiles": 4,
295
+ "min_length": 0,
296
+ "model_type": "mllama_vision_model",
297
+ "no_repeat_ngram_size": 0,
298
+ "norm_eps": 1e-05,
299
+ "num_beam_groups": 1,
300
+ "num_beams": 1,
301
+ "num_channels": 3,
302
+ "num_global_layers": 8,
303
+ "num_hidden_layers": 32,
304
+ "num_return_sequences": 1,
305
+ "output_attentions": false,
306
+ "output_hidden_states": false,
307
+ "output_scores": false,
308
+ "pad_token_id": null,
309
+ "patch_size": 14,
310
+ "prefix": null,
311
+ "problem_type": null,
312
+ "pruned_heads": {},
313
+ "remove_invalid_values": false,
314
+ "repetition_penalty": 1.0,
315
+ "return_dict": true,
316
+ "return_dict_in_generate": false,
317
+ "sep_token_id": null,
318
+ "supported_aspect_ratios": [
319
+ [
320
+ 1,
321
+ 1
322
+ ],
323
+ [
324
+ 1,
325
+ 2
326
+ ],
327
+ [
328
+ 1,
329
+ 3
330
+ ],
331
+ [
332
+ 1,
333
+ 4
334
+ ],
335
+ [
336
+ 2,
337
+ 1
338
+ ],
339
+ [
340
+ 2,
341
+ 2
342
+ ],
343
+ [
344
+ 3,
345
+ 1
346
+ ],
347
+ [
348
+ 4,
349
+ 1
350
+ ]
351
+ ],
352
+ "suppress_tokens": null,
353
+ "task_specific_params": null,
354
+ "temperature": 1.0,
355
+ "tf_legacy_loss": false,
356
+ "tie_encoder_decoder": false,
357
+ "tie_word_embeddings": true,
358
+ "tokenizer_class": null,
359
+ "top_k": 50,
360
+ "top_p": 1.0,
361
+ "torch_dtype": "float32",
362
+ "torchscript": false,
363
+ "typical_p": 1.0,
364
+ "use_bfloat16": false,
365
+ "vision_output_dim": 7680
366
+ }
367
+ }
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
+ }
pytorch_model-00001-of-00005.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36c1cdf47a23111cd5b3059638d31b565dcd44acaa26b1fdb882fdda8110737d
3
+ size 4992747910
pytorch_model-00002-of-00005.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0938cac6f2b2639aa8329c1a4790b1177185aaa6f2072bb26ff16d7d2ed8f65
3
+ size 4966276823
pytorch_model-00003-of-00005.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2128795d35c041fe5b6335f9bfccc38c91087a4bd4a8f97741b52f341cdd15b7
3
+ size 4915944098
pytorch_model-00004-of-00005.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:278b96e922a0cae8d7b5369d54409fe2aab89960f542bb73889169cd858c012b
3
+ size 4999850628
pytorch_model-00005-of-00005.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b57fde02e7932095d7047f66e53187690f52eb6ac68f30da00e1a16fc07275ba
3
+ size 3776639076
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff