yzhuang commited on
Commit
c17a458
·
verified ·
1 Parent(s): a711694

Upload LlavaJambaForCausalLM

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,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "yzhuang/llava-jamba-1.5-Mini-linear-anyres",
3
+ "architectures": [
4
+ "LlavaJambaForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "attn_layer_offset": 4,
8
+ "attn_layer_period": 8,
9
+ "bos_token_id": 1,
10
+ "eos_token_id": [
11
+ 2,
12
+ 518
13
+ ],
14
+ "expert_layer_offset": 1,
15
+ "expert_layer_period": 2,
16
+ "freeze_mm_mlp_adapter": false,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 4096,
19
+ "image_aspect_ratio": "anyres",
20
+ "image_grid_pinpoints": [
21
+ [
22
+ 336,
23
+ 336
24
+ ],
25
+ [
26
+ 336,
27
+ 672
28
+ ],
29
+ [
30
+ 336,
31
+ 1008
32
+ ],
33
+ [
34
+ 336,
35
+ 1344
36
+ ],
37
+ [
38
+ 336,
39
+ 1680
40
+ ],
41
+ [
42
+ 336,
43
+ 2016
44
+ ],
45
+ [
46
+ 336,
47
+ 2352
48
+ ],
49
+ [
50
+ 336,
51
+ 2688
52
+ ],
53
+ [
54
+ 336,
55
+ 3024
56
+ ],
57
+ [
58
+ 336,
59
+ 3360
60
+ ],
61
+ [
62
+ 336,
63
+ 3696
64
+ ],
65
+ [
66
+ 336,
67
+ 4032
68
+ ],
69
+ [
70
+ 336,
71
+ 4368
72
+ ],
73
+ [
74
+ 336,
75
+ 4704
76
+ ],
77
+ [
78
+ 336,
79
+ 5040
80
+ ],
81
+ [
82
+ 672,
83
+ 336
84
+ ],
85
+ [
86
+ 672,
87
+ 672
88
+ ],
89
+ [
90
+ 672,
91
+ 1008
92
+ ],
93
+ [
94
+ 672,
95
+ 1344
96
+ ],
97
+ [
98
+ 672,
99
+ 1680
100
+ ],
101
+ [
102
+ 672,
103
+ 2016
104
+ ],
105
+ [
106
+ 672,
107
+ 2352
108
+ ],
109
+ [
110
+ 672,
111
+ 2688
112
+ ],
113
+ [
114
+ 1008,
115
+ 336
116
+ ],
117
+ [
118
+ 1008,
119
+ 672
120
+ ],
121
+ [
122
+ 1008,
123
+ 1008
124
+ ],
125
+ [
126
+ 1008,
127
+ 1344
128
+ ],
129
+ [
130
+ 1008,
131
+ 1680
132
+ ],
133
+ [
134
+ 1344,
135
+ 336
136
+ ],
137
+ [
138
+ 1344,
139
+ 672
140
+ ],
141
+ [
142
+ 1344,
143
+ 1008
144
+ ],
145
+ [
146
+ 1344,
147
+ 1344
148
+ ],
149
+ [
150
+ 1680,
151
+ 336
152
+ ],
153
+ [
154
+ 1680,
155
+ 672
156
+ ],
157
+ [
158
+ 1680,
159
+ 1008
160
+ ],
161
+ [
162
+ 2016,
163
+ 336
164
+ ],
165
+ [
166
+ 2016,
167
+ 672
168
+ ],
169
+ [
170
+ 2352,
171
+ 336
172
+ ],
173
+ [
174
+ 2352,
175
+ 672
176
+ ],
177
+ [
178
+ 2688,
179
+ 336
180
+ ],
181
+ [
182
+ 2688,
183
+ 672
184
+ ],
185
+ [
186
+ 3024,
187
+ 336
188
+ ],
189
+ [
190
+ 3360,
191
+ 336
192
+ ],
193
+ [
194
+ 3696,
195
+ 336
196
+ ],
197
+ [
198
+ 4032,
199
+ 336
200
+ ],
201
+ [
202
+ 4368,
203
+ 336
204
+ ],
205
+ [
206
+ 4704,
207
+ 336
208
+ ],
209
+ [
210
+ 5040,
211
+ 336
212
+ ]
213
+ ],
214
+ "initializer_range": 0.02,
215
+ "intermediate_size": 14336,
216
+ "mamba_conv_bias": true,
217
+ "mamba_d_conv": 4,
218
+ "mamba_d_state": 16,
219
+ "mamba_dt_rank": 256,
220
+ "mamba_expand": 2,
221
+ "mamba_proj_bias": false,
222
+ "max_position_embeddings": 262144,
223
+ "mm_hidden_size": 1024,
224
+ "mm_patch_merge_type": "spatial_unpad",
225
+ "mm_projector_lr": null,
226
+ "mm_projector_type": "linear",
227
+ "mm_use_im_patch_token": false,
228
+ "mm_use_im_start_end": false,
229
+ "mm_vision_select_feature": "patch",
230
+ "mm_vision_select_layer": -2,
231
+ "mm_vision_tower": "openai/clip-vit-large-patch14-336",
232
+ "mm_vision_tower_lr": 2e-06,
233
+ "model_type": "jamba",
234
+ "num_attention_heads": 32,
235
+ "num_experts": 16,
236
+ "num_experts_per_tok": 2,
237
+ "num_hidden_layers": 32,
238
+ "num_key_value_heads": 8,
239
+ "num_logits_to_keep": 1,
240
+ "output_router_logits": false,
241
+ "pad_token_id": 0,
242
+ "rms_norm_eps": 1e-06,
243
+ "router_aux_loss_coef": 0.001,
244
+ "sliding_window": null,
245
+ "tie_word_embeddings": false,
246
+ "tokenizer_model_max_length": 18240,
247
+ "tokenizer_padding_side": "right",
248
+ "torch_dtype": "bfloat16",
249
+ "transformers_version": "4.45.0.dev0",
250
+ "tune_mm_mlp_adapter": false,
251
+ "unfreeze_mm_vision_tower": false,
252
+ "use_cache": false,
253
+ "use_mamba_kernels": true,
254
+ "use_mm_proj": true,
255
+ "vocab_size": 65536
256
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": [
5
+ 2,
6
+ 518
7
+ ],
8
+ "pad_token_id": 0,
9
+ "transformers_version": "4.45.0.dev0"
10
+ }
model-00001-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:258749cb244c13da38a9739e273ff1582de28af124e69bc80a216ad187fdcc91
3
+ size 4951245440
model-00002-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:722b3ca3d056512ad9ff1482e0f0a69ec46d65d3aa8b59d89f893bbdfd83a990
3
+ size 4884145352
model-00003-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae01e0ebc1f68227d81f107f856d0ef03ea88c7d4db3960b29e7fc45454930e3
3
+ size 4992294984
model-00004-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a67435676e240385d687962dcfcce209470fa0d8f10879d9012b3f954eba8baa
3
+ size 4958591424
model-00005-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9fcee52073079c489a6cf399fbcfcfcef1088c0d5b3d40e8a57eef9a7a6ca93
3
+ size 4975501696
model-00006-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1a5ffdc8f37c06aa2524281da87e1a5d5848e428fed0c4999a850a0026b0278
3
+ size 4884145344
model-00007-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f33a676476341ca3032fff8caa65f16216fc487c30bb6078fd9445503de4d61
3
+ size 4884145368
model-00008-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f70c6680c19de2c237724eace50d2c3f7783b765dd2be96463585afb8a21811
3
+ size 4992295040
model-00009-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af27e253f5726f5eb3bcde1928a98eef8d546905bbbe295803911f4f0beb19c4
3
+ size 4932507176
model-00010-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c8978713d6b0258ae950e45e7a32f3a4d8b8ea0449220de4961278f800b1b01
3
+ size 4884145400
model-00011-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:769c8655ed50f4c4bcb1af5723d04f040c50bf1196a3c85645ff03a1ddfe316d
3
+ size 4884145424
model-00012-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70ef26c61c40442dc02f3051fdb2678a8b5d192bbd2421d7bc03cc7e86b569a8
3
+ size 4884145416
model-00013-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21d866dcec2c17038adc20bb998a7e7f8a09218a9518ce559d9096b2d8d000e9
3
+ size 4932507176
model-00014-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58b2fda8e36238724196168f551beb5c06d1cfe02c7c2538c6054c9373c71835
3
+ size 4992295016
model-00015-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed2da8de0d035ef6ed0bf9c746a6dd7d5b37895d3e531015a1140997f0762172
3
+ size 4884145416
model-00016-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c9b60344b80f8d177b9b5300ae6637d5c51426d54bc4b77101be0092e7ff9aa
3
+ size 4884145416
model-00017-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:604917abfafe2a2c1a1a3ca153413ecff01d68f677cdcfc15bbade8c10f476a9
3
+ size 4908260720
model-00018-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f8b1717a357126049baea50754e844e6c10b4f9fbb7bf82ade197cad12b4944
3
+ size 4908391864
model-00019-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f23aee5692aaeb5219b3f4c9bd7e06526cc446159904b5c717e6c275ef8bf7c
3
+ size 4992295032
model-00020-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dd7e64cee10a946d192a05dc4b922c6716210a67199fd23d3b11950b2325d52
3
+ size 4884145424
model-00021-of-00021.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e39d7fafdda8a56a12c87c47d40d279396d5077954fee23f3b6018250a0e9f2
3
+ size 4655715576
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff