medmekk HF Staff commited on
Commit
03de20f
·
verified ·
1 Parent(s): c932032

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": false,
11
+ "_load_in_8bit": true,
12
+ "bnb_4bit_compute_dtype": "float32",
13
+ "bnb_4bit_quant_storage": "uint8",
14
+ "bnb_4bit_quant_type": "fp4",
15
+ "bnb_4bit_use_double_quant": false,
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": false,
21
+ "load_in_8bit": true,
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-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a7679bdd470e3d816b313c1c496da270304d3687afca1a351b960681b611ed8
3
+ size 4979909971
model-00002-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1e1cf25b26e6ea4cebfdaac119bc9b40c89cfb8201772f6ca370e2faffb764f
3
+ size 4974028329
model-00003-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f7a80a5108f00977b0af7a4512665108ec4dfa94169c38ccd51a5e3554ee9cd
3
+ size 4994900158
model-00004-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb6689cac9b3b187deabb039e24283105732448bd963c5c41566741e3b7c98f0
3
+ size 4994900174
model-00005-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92445450544bde2f309ef507b5feea5b12938d93414961b9d18adc027f14d43f
3
+ size 4994994863
model-00006-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cd02062cb9c7279f3753df2524e31f5736cb2e7b28e90d8b14422739fad860c
3
+ size 4973946328
model-00007-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a12863af366048379d46a3c9944de8fe3c63c8eb8415361a2d11d20eb8c4a541
3
+ size 4994900542
model-00008-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:507a90303c8340c2bb8db98326c7da3b275dbe4e68a1a9ecea611092aca386d9
3
+ size 4994900558
model-00009-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21129a5a4c9111cc04898fe4bcafb7c05605e710fa5ff94512aad90f6a052677
3
+ size 4974028745
model-00010-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96bf9e33127ae00a070e0790c2a001c73a4fea27590f0bbf8186afcc56e3bab7
3
+ size 4994912822
model-00011-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0bfe805db458f9fe3706f59707bc03caf9cdf4b43eb9430936409dbca16427f5
3
+ size 4994900542
model-00012-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86d3f747b60d2641fc884db276161333790bad61d436777627d77032dc378d0a
3
+ size 4994900566
model-00013-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:242aeef5c4a14c6f8ffdb5d2d6fb9ca0bdd1d59ae9ac817e5c3823d7d8aab4ac
3
+ size 4974028737
model-00014-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f47d957603cbc0044e9999f4744fbecad8aa9bde28f5c7841ae2b5c6da1b5f3e
3
+ size 4994912822
model-00015-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f9e3a6fef1a8eaec57858e60e9cb857e547dcb2b074cb5d56e8c6073e3e2231
3
+ size 4994900542
model-00016-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33628e8a2fd58ae407820d122828dfe4fe20e7829a53c67e1318d31768eca24e
3
+ size 4994900574
model-00017-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b231b7dc45214ec15ff52a77afbb2971a59f23b456590eb40334dc842946481
3
+ size 4974028729
model-00018-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a0a780a2e6f560bde09023d3e137edddb8a7ed3f09d45f19bcf564b91e7528a
3
+ size 4994912822
model-00019-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bcd0873e721136a5b88c42aa48a48f813d3a4761068e540a4bbd73a2bbb38e0
3
+ size 4994900550
model-00020-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f83b30aff4bf49e3839362546c4bfd27b8951ddc837657178ca4ac7f3d5d74a3
3
+ size 4994982943
model-00021-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e7ccc20b0ffdba144be940cdf3dbbb87bea6c8f26a820601e5c4195e64e8d3e
3
+ size 4973946352
model-00022-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd3ba036b0e35c027fcc80b00686129756cbd2d43951a104b3cb9f82168e3634
3
+ size 3966590595
model-00023-of-00023.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f412ae287747cc86e6ee5d58600bbe5c574d6fa77f351367aae9ea3f4dbcc3a
3
+ size 2068971664
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff