bingwork commited on
Commit
0151a39
1 Parent(s): 4aed21a

Upload MMAlayaMPTForCausalLM

Browse files
config.json ADDED
@@ -0,0 +1,233 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/tmp/MMAlaya-v0.1.6.1",
3
+ "architectures": [
4
+ "MMAlayaMPTForCausalLM"
5
+ ],
6
+ "attn_config": {
7
+ "alibi": true,
8
+ "alibi_bias_max": 8,
9
+ "attn_impl": "torch",
10
+ "attn_pdrop": 0.0,
11
+ "attn_type": "multihead_attention",
12
+ "attn_uses_sequence_id": false,
13
+ "clip_qkv": null,
14
+ "prefix_lm": false,
15
+ "qk_ln": false,
16
+ "softmax_scale": null
17
+ },
18
+ "auto_map": {
19
+ "AutoConfig": "configuration_mpt.MPTConfig",
20
+ "AutoModelForCausalLM": "modeling_mpt.MPTForCausalLM"
21
+ },
22
+ "d_model": 4096,
23
+ "emb_pdrop": 0.0,
24
+ "embedding_fraction": 1.0,
25
+ "expansion_ratio": 4,
26
+ "fc_type": "torch",
27
+ "ffn_config": {
28
+ "fc_type": "torch",
29
+ "ffn_type": "mptmlp"
30
+ },
31
+ "freeze_mm_mlp_adapter": false,
32
+ "hidden_size": 4096,
33
+ "image_aspect_ratio": "square",
34
+ "init_config": {
35
+ "emb_init_std": null,
36
+ "emb_init_uniform_lim": null,
37
+ "fan_mode": "fan_in",
38
+ "init_div_is_residual": true,
39
+ "init_gain": 0.0,
40
+ "init_nonlinearity": "relu",
41
+ "init_std": null,
42
+ "name": "kaiming_normal_",
43
+ "verbose": 0
44
+ },
45
+ "init_device": "cpu",
46
+ "initializer_factor": 1.0,
47
+ "initializer_range": 0.02,
48
+ "learned_pos_emb": false,
49
+ "logit_scale": null,
50
+ "max_seq_len": 2048,
51
+ "mm_hidden_size": 768,
52
+ "mm_projector_lr": null,
53
+ "mm_projector_type": "linear",
54
+ "mm_use_im_patch_token": false,
55
+ "mm_use_im_start_end": false,
56
+ "mm_vision_select_feature": "patch",
57
+ "mm_vision_select_layer": -1,
58
+ "model_type": "mmalaya",
59
+ "n_heads": 32,
60
+ "n_layers": 32,
61
+ "no_bias": false,
62
+ "norm_type": "low_precision_layernorm",
63
+ "num_query_tokens": 32,
64
+ "qformer_config": {
65
+ "_name_or_path": "",
66
+ "add_cross_attention": false,
67
+ "architectures": null,
68
+ "attention_probs_dropout_prob": 0.1,
69
+ "bad_words_ids": null,
70
+ "begin_suppress_tokens": null,
71
+ "bos_token_id": null,
72
+ "chunk_size_feed_forward": 0,
73
+ "classifier_dropout": null,
74
+ "cross_attention_frequency": 2,
75
+ "cross_attention_hidden_size": null,
76
+ "decoder_start_token_id": null,
77
+ "diversity_penalty": 0.0,
78
+ "do_sample": false,
79
+ "early_stopping": false,
80
+ "encoder_hidden_size": 1408,
81
+ "encoder_no_repeat_ngram_size": 0,
82
+ "eos_token_id": null,
83
+ "exponential_decay_length_penalty": null,
84
+ "finetuning_task": null,
85
+ "forced_bos_token_id": null,
86
+ "forced_eos_token_id": null,
87
+ "hidden_act": "gelu",
88
+ "hidden_dropout_prob": 0.1,
89
+ "hidden_size": 768,
90
+ "id2label": {
91
+ "0": "LABEL_0",
92
+ "1": "LABEL_1"
93
+ },
94
+ "initializer_range": 0.02,
95
+ "intermediate_size": 3072,
96
+ "is_decoder": false,
97
+ "is_encoder_decoder": false,
98
+ "label2id": {
99
+ "LABEL_0": 0,
100
+ "LABEL_1": 1
101
+ },
102
+ "layer_norm_eps": 1e-12,
103
+ "length_penalty": 1.0,
104
+ "max_length": 20,
105
+ "max_position_embeddings": 512,
106
+ "min_length": 0,
107
+ "model_type": "blip_2_qformer",
108
+ "no_repeat_ngram_size": 0,
109
+ "num_attention_heads": 12,
110
+ "num_beam_groups": 1,
111
+ "num_beams": 1,
112
+ "num_hidden_layers": 12,
113
+ "num_return_sequences": 1,
114
+ "output_attentions": false,
115
+ "output_hidden_states": false,
116
+ "output_scores": false,
117
+ "pad_token_id": 0,
118
+ "position_embedding_type": "absolute",
119
+ "prefix": null,
120
+ "problem_type": null,
121
+ "pruned_heads": {},
122
+ "remove_invalid_values": false,
123
+ "repetition_penalty": 1.0,
124
+ "return_dict": true,
125
+ "return_dict_in_generate": false,
126
+ "sep_token_id": null,
127
+ "suppress_tokens": null,
128
+ "task_specific_params": null,
129
+ "temperature": 1.0,
130
+ "tf_legacy_loss": false,
131
+ "tie_encoder_decoder": false,
132
+ "tie_word_embeddings": true,
133
+ "tokenizer_class": null,
134
+ "top_k": 50,
135
+ "top_p": 1.0,
136
+ "torch_dtype": null,
137
+ "torchscript": false,
138
+ "transformers_version": "4.27.0.dev0",
139
+ "typical_p": 1.0,
140
+ "use_bfloat16": false,
141
+ "vocab_size": 30522
142
+ },
143
+ "resid_pdrop": 0.0,
144
+ "tokenizer_model_max_length": 2048,
145
+ "tokenizer_padding_side": "right",
146
+ "torch_dtype": "bfloat16",
147
+ "transformers_version": "4.33.3",
148
+ "tune_mm_mlp_adapter": false,
149
+ "use_cache": true,
150
+ "use_decoder_only_language_model": true,
151
+ "use_mm_proj": true,
152
+ "verbose": 0,
153
+ "vision_config": {
154
+ "_name_or_path": "",
155
+ "add_cross_attention": false,
156
+ "architectures": null,
157
+ "attention_dropout": 0.0,
158
+ "bad_words_ids": null,
159
+ "begin_suppress_tokens": null,
160
+ "bos_token_id": null,
161
+ "chunk_size_feed_forward": 0,
162
+ "cross_attention_hidden_size": null,
163
+ "decoder_start_token_id": null,
164
+ "diversity_penalty": 0.0,
165
+ "do_sample": false,
166
+ "dropout": 0.0,
167
+ "early_stopping": false,
168
+ "encoder_no_repeat_ngram_size": 0,
169
+ "eos_token_id": null,
170
+ "exponential_decay_length_penalty": null,
171
+ "finetuning_task": null,
172
+ "forced_bos_token_id": null,
173
+ "forced_eos_token_id": null,
174
+ "hidden_act": "gelu",
175
+ "hidden_size": 1408,
176
+ "id2label": {
177
+ "0": "LABEL_0",
178
+ "1": "LABEL_1"
179
+ },
180
+ "image_size": 224,
181
+ "initializer_factor": 1.0,
182
+ "initializer_range": 1e-10,
183
+ "intermediate_size": 6144,
184
+ "is_decoder": false,
185
+ "is_encoder_decoder": false,
186
+ "label2id": {
187
+ "LABEL_0": 0,
188
+ "LABEL_1": 1
189
+ },
190
+ "layer_norm_eps": 1e-06,
191
+ "length_penalty": 1.0,
192
+ "max_length": 20,
193
+ "min_length": 0,
194
+ "model_type": "blip_2_vision_model",
195
+ "no_repeat_ngram_size": 0,
196
+ "num_attention_heads": 16,
197
+ "num_beam_groups": 1,
198
+ "num_beams": 1,
199
+ "num_channels": 3,
200
+ "num_hidden_layers": 39,
201
+ "num_return_sequences": 1,
202
+ "output_attentions": false,
203
+ "output_hidden_states": false,
204
+ "output_scores": false,
205
+ "pad_token_id": null,
206
+ "patch_size": 14,
207
+ "prefix": null,
208
+ "problem_type": null,
209
+ "projection_dim": 512,
210
+ "pruned_heads": {},
211
+ "qkv_bias": true,
212
+ "remove_invalid_values": false,
213
+ "repetition_penalty": 1.0,
214
+ "return_dict": true,
215
+ "return_dict_in_generate": false,
216
+ "sep_token_id": null,
217
+ "suppress_tokens": null,
218
+ "task_specific_params": null,
219
+ "temperature": 1.0,
220
+ "tf_legacy_loss": false,
221
+ "tie_encoder_decoder": false,
222
+ "tie_word_embeddings": true,
223
+ "tokenizer_class": null,
224
+ "top_k": 50,
225
+ "top_p": 1.0,
226
+ "torch_dtype": null,
227
+ "torchscript": false,
228
+ "transformers_version": "4.27.0.dev0",
229
+ "typical_p": 1.0,
230
+ "use_bfloat16": false
231
+ },
232
+ "vocab_size": 60160
233
+ }
generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "transformers_version": "4.33.3",
4
+ "use_cache": false
5
+ }
pytorch_model-00001-of-00002.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7853d14bea46cc02355473cb9fb8ca01844a351fa4beb81ed0a525b70fa98472
3
+ size 9890684209
pytorch_model-00002-of-00002.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99a68688c98b04f1d44dd0b297b530dcc006f8a652bd3f1945fa57543e327981
3
+ size 5679417925
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff