medmekk HF Staff commited on
Commit
6699b01
·
verified ·
1 Parent(s): 02e680f

Upload Llama4ForConditionalGeneration

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,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Llama4ForConditionalGeneration"
4
+ ],
5
+ "boi_token_index": 200080,
6
+ "eoi_token_index": 200081,
7
+ "image_token_index": 200092,
8
+ "model_type": "llama4",
9
+ "quantization_config": {
10
+ "_load_in_4bit": true,
11
+ "_load_in_8bit": false,
12
+ "bnb_4bit_compute_dtype": "bfloat16",
13
+ "bnb_4bit_quant_storage": "uint8",
14
+ "bnb_4bit_quant_type": "nf4",
15
+ "bnb_4bit_use_double_quant": true,
16
+ "llm_int8_enable_fp32_cpu_offload": false,
17
+ "llm_int8_has_fp16_weight": false,
18
+ "llm_int8_skip_modules": null,
19
+ "llm_int8_threshold": 6.0,
20
+ "load_in_4bit": true,
21
+ "load_in_8bit": false,
22
+ "quant_method": "bitsandbytes"
23
+ },
24
+ "text_config": {
25
+ "_attn_implementation_autoset": true,
26
+ "attention_bias": false,
27
+ "attention_chunk_size": 8192,
28
+ "attention_dropout": 0.0,
29
+ "attn_scale": 0.1,
30
+ "attn_temperature_tuning": 4,
31
+ "bos_token_id": 200000,
32
+ "eos_token_id": [
33
+ 200001,
34
+ 200007,
35
+ 200008
36
+ ],
37
+ "floor_scale": 8192,
38
+ "for_llm_compressor": false,
39
+ "head_dim": 128,
40
+ "hidden_act": "silu",
41
+ "hidden_size": 5120,
42
+ "initializer_range": 0.02,
43
+ "interleave_moe_layer_step": 1,
44
+ "intermediate_size": 8192,
45
+ "intermediate_size_mlp": 16384,
46
+ "max_position_embeddings": 10485760,
47
+ "model_type": "llama4_text",
48
+ "moe_layers": [
49
+ 0,
50
+ 1,
51
+ 2,
52
+ 3,
53
+ 4,
54
+ 5,
55
+ 6,
56
+ 7,
57
+ 8,
58
+ 9,
59
+ 10,
60
+ 11,
61
+ 12,
62
+ 13,
63
+ 14,
64
+ 15,
65
+ 16,
66
+ 17,
67
+ 18,
68
+ 19,
69
+ 20,
70
+ 21,
71
+ 22,
72
+ 23,
73
+ 24,
74
+ 25,
75
+ 26,
76
+ 27,
77
+ 28,
78
+ 29,
79
+ 30,
80
+ 31,
81
+ 32,
82
+ 33,
83
+ 34,
84
+ 35,
85
+ 36,
86
+ 37,
87
+ 38,
88
+ 39,
89
+ 40,
90
+ 41,
91
+ 42,
92
+ 43,
93
+ 44,
94
+ 45,
95
+ 46,
96
+ 47
97
+ ],
98
+ "no_rope_layers": [
99
+ 1,
100
+ 1,
101
+ 1,
102
+ 0,
103
+ 1,
104
+ 1,
105
+ 1,
106
+ 0,
107
+ 1,
108
+ 1,
109
+ 1,
110
+ 0,
111
+ 1,
112
+ 1,
113
+ 1,
114
+ 0,
115
+ 1,
116
+ 1,
117
+ 1,
118
+ 0,
119
+ 1,
120
+ 1,
121
+ 1,
122
+ 0,
123
+ 1,
124
+ 1,
125
+ 1,
126
+ 0,
127
+ 1,
128
+ 1,
129
+ 1,
130
+ 0,
131
+ 1,
132
+ 1,
133
+ 1,
134
+ 0,
135
+ 1,
136
+ 1,
137
+ 1,
138
+ 0,
139
+ 1,
140
+ 1,
141
+ 1,
142
+ 0,
143
+ 1,
144
+ 1,
145
+ 1,
146
+ 0
147
+ ],
148
+ "num_attention_heads": 40,
149
+ "num_experts_per_tok": 1,
150
+ "num_hidden_layers": 48,
151
+ "num_key_value_heads": 8,
152
+ "num_local_experts": 16,
153
+ "output_router_logits": false,
154
+ "pad_token_id": 200018,
155
+ "rms_norm_eps": 1e-05,
156
+ "rope_scaling": {
157
+ "factor": 8.0,
158
+ "high_freq_factor": 4.0,
159
+ "low_freq_factor": 1.0,
160
+ "original_max_position_embeddings": 8192,
161
+ "rope_type": "llama3"
162
+ },
163
+ "rope_theta": 500000.0,
164
+ "router_aux_loss_coef": 0.001,
165
+ "router_jitter_noise": 0.0,
166
+ "torch_dtype": "bfloat16",
167
+ "use_cache": true,
168
+ "use_qk_norm": true,
169
+ "vocab_size": 202048
170
+ },
171
+ "tie_word_embeddings": false,
172
+ "torch_dtype": "bfloat16",
173
+ "transformers_version": "4.52.0.dev0",
174
+ "vision_config": {
175
+ "_attn_implementation_autoset": true,
176
+ "attention_dropout": 0.0,
177
+ "hidden_act": "gelu",
178
+ "hidden_size": 1408,
179
+ "image_size": 336,
180
+ "initializer_range": 0.02,
181
+ "intermediate_size": 5632,
182
+ "model_type": "llama4_vision_model",
183
+ "multi_modal_projector_bias": false,
184
+ "norm_eps": 1e-05,
185
+ "num_attention_heads": 16,
186
+ "num_channels": 3,
187
+ "num_hidden_layers": 34,
188
+ "patch_size": 14,
189
+ "pixel_shuffle_ratio": 0.5,
190
+ "projector_dropout": 0.0,
191
+ "projector_input_dim": 4096,
192
+ "projector_output_dim": 4096,
193
+ "rope_theta": 10000,
194
+ "torch_dtype": "bfloat16",
195
+ "vision_feature_layer": -1,
196
+ "vision_feature_select_strategy": "default",
197
+ "vision_output_dim": 4096
198
+ }
199
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 200000,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 200001,
6
+ 200007,
7
+ 200008
8
+ ],
9
+ "pad_token_id": 200018,
10
+ "temperature": 0.6,
11
+ "top_p": 0.9,
12
+ "transformers_version": "4.52.0.dev0"
13
+ }
model-00001-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aab38d61638a275956e81f20277cda1a11698bf392bfa2adeb7f06ffc629234b
3
+ size 4999226769
model-00002-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de730a1530acc6668ee1f3afa3fcd880f5129010f3d537c1375768a551cdf246
3
+ size 4998956269
model-00003-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32136b3650f4c1b6892ad2ca82c2b0e1edbd39f965d07faaf5dcbcef0fff100e
3
+ size 4999001077
model-00004-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d49a10c073abf7d0b9d6f29f32b1a9b40f3e7d6372415d5aabe2c34f9dc46df
3
+ size 4988163895
model-00005-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:810575a524539f30f97ce93822829dad79d813a5b13738097a821fd738356351
3
+ size 4998957731
model-00006-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ef0797182cba0b6bf8a8109034adf510b7bc50de81f7eafd09fd7b02daccd45
3
+ size 4988208315
model-00007-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dee29a3e6caa6269dfd30beded1974bc6819a9b7e4dc57128b08ca5f460d1a2a
3
+ size 4998957669
model-00008-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:168a3862721bb7bc598bea1ec4245b6f8ca2ce86a15dda6e3b1566fc500fc9b2
3
+ size 4999002120
model-00009-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fc275dd4963f102190a55a0e32b4a102779b408fa79806fd746890165aeef3c
3
+ size 4988163835
model-00010-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d71f15913b8e70f44d62442267798b2c109a7b2ee5b088a945aa81da377332ad
3
+ size 4998957687
model-00011-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7367b5303bea3ad5eb25a4af30a164037fbc483e1c2a6871b2178a44dae1ff1f
3
+ size 4988208267
model-00012-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c55f25e0e813aab589cb1ae5f8a3338bb5dd463556c7ab0798c1e0bc785d037b
3
+ size 4178948317
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff