lastdefiance20 commited on
Commit
3e52835
·
verified ·
1 Parent(s): 7edde5f

Upload Idefics2ForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +243 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/jyjung/CANVAS-S",
3
+ "architectures": [
4
+ "Idefics2ForConditionalGeneration"
5
+ ],
6
+ "image_token_id": 151647,
7
+ "model_type": "idefics2",
8
+ "perceiver_config": {
9
+ "_attn_implementation_autoset": false,
10
+ "_name_or_path": "",
11
+ "add_cross_attention": false,
12
+ "architectures": null,
13
+ "attention_dropout": 0.0,
14
+ "bad_words_ids": null,
15
+ "begin_suppress_tokens": null,
16
+ "bos_token_id": null,
17
+ "chunk_size_feed_forward": 0,
18
+ "cross_attention_hidden_size": null,
19
+ "decoder_start_token_id": null,
20
+ "diversity_penalty": 0.0,
21
+ "do_sample": false,
22
+ "early_stopping": false,
23
+ "encoder_no_repeat_ngram_size": 0,
24
+ "eos_token_id": null,
25
+ "exponential_decay_length_penalty": null,
26
+ "finetuning_task": null,
27
+ "forced_bos_token_id": null,
28
+ "forced_eos_token_id": null,
29
+ "hidden_act": "silu",
30
+ "hidden_size": 896,
31
+ "id2label": {
32
+ "0": "LABEL_0",
33
+ "1": "LABEL_1"
34
+ },
35
+ "is_decoder": false,
36
+ "is_encoder_decoder": false,
37
+ "label2id": {
38
+ "LABEL_0": 0,
39
+ "LABEL_1": 1
40
+ },
41
+ "length_penalty": 1.0,
42
+ "max_length": 20,
43
+ "min_length": 0,
44
+ "model_type": "idefics2",
45
+ "no_repeat_ngram_size": 0,
46
+ "num_beam_groups": 1,
47
+ "num_beams": 1,
48
+ "num_key_value_heads": 4,
49
+ "num_return_sequences": 1,
50
+ "output_attentions": false,
51
+ "output_hidden_states": false,
52
+ "output_scores": false,
53
+ "pad_token_id": null,
54
+ "prefix": null,
55
+ "problem_type": null,
56
+ "pruned_heads": {},
57
+ "remove_invalid_values": false,
58
+ "repetition_penalty": 1.0,
59
+ "resampler_depth": 3,
60
+ "resampler_head_dim": 96,
61
+ "resampler_n_heads": 16,
62
+ "resampler_n_latents": 64,
63
+ "return_dict": true,
64
+ "return_dict_in_generate": false,
65
+ "rms_norm_eps": 1e-06,
66
+ "sep_token_id": null,
67
+ "suppress_tokens": null,
68
+ "task_specific_params": null,
69
+ "temperature": 1.0,
70
+ "tf_legacy_loss": false,
71
+ "tie_encoder_decoder": false,
72
+ "tie_word_embeddings": true,
73
+ "tokenizer_class": null,
74
+ "top_k": 50,
75
+ "top_p": 1.0,
76
+ "torch_dtype": null,
77
+ "torchscript": false,
78
+ "typical_p": 1.0,
79
+ "use_bfloat16": false
80
+ },
81
+ "text_config": {
82
+ "_attn_implementation_autoset": false,
83
+ "_name_or_path": "Qwen/Qwen2-0.5B-Instruct",
84
+ "add_cross_attention": false,
85
+ "architectures": [
86
+ "Qwen2ForCausalLM"
87
+ ],
88
+ "attention_dropout": 0.0,
89
+ "bad_words_ids": null,
90
+ "begin_suppress_tokens": null,
91
+ "bos_token_id": 151643,
92
+ "chunk_size_feed_forward": 0,
93
+ "cross_attention_hidden_size": null,
94
+ "decoder_start_token_id": null,
95
+ "diversity_penalty": 0.0,
96
+ "do_sample": false,
97
+ "early_stopping": false,
98
+ "encoder_no_repeat_ngram_size": 0,
99
+ "eos_token_id": 151645,
100
+ "exponential_decay_length_penalty": null,
101
+ "finetuning_task": null,
102
+ "forced_bos_token_id": null,
103
+ "forced_eos_token_id": null,
104
+ "hidden_act": "silu",
105
+ "hidden_size": 896,
106
+ "id2label": {
107
+ "0": "LABEL_0",
108
+ "1": "LABEL_1"
109
+ },
110
+ "initializer_range": 0.02,
111
+ "intermediate_size": 4864,
112
+ "is_decoder": false,
113
+ "is_encoder_decoder": false,
114
+ "label2id": {
115
+ "LABEL_0": 0,
116
+ "LABEL_1": 1
117
+ },
118
+ "length_penalty": 1.0,
119
+ "max_length": 20,
120
+ "max_position_embeddings": 32768,
121
+ "max_window_layers": 24,
122
+ "min_length": 0,
123
+ "model_type": "qwen2",
124
+ "no_repeat_ngram_size": 0,
125
+ "num_attention_heads": 14,
126
+ "num_beam_groups": 1,
127
+ "num_beams": 1,
128
+ "num_hidden_layers": 24,
129
+ "num_key_value_heads": 2,
130
+ "num_return_sequences": 1,
131
+ "output_attentions": false,
132
+ "output_hidden_states": false,
133
+ "output_scores": false,
134
+ "pad_token_id": null,
135
+ "prefix": null,
136
+ "problem_type": null,
137
+ "pruned_heads": {},
138
+ "remove_invalid_values": false,
139
+ "repetition_penalty": 1.0,
140
+ "return_dict": true,
141
+ "return_dict_in_generate": false,
142
+ "rms_norm_eps": 1e-06,
143
+ "rope_scaling": null,
144
+ "rope_theta": 1000000.0,
145
+ "sep_token_id": null,
146
+ "sliding_window": null,
147
+ "suppress_tokens": null,
148
+ "task_specific_params": null,
149
+ "temperature": 1.0,
150
+ "tf_legacy_loss": false,
151
+ "tie_encoder_decoder": false,
152
+ "tie_word_embeddings": true,
153
+ "tokenizer_class": null,
154
+ "top_k": 50,
155
+ "top_p": 1.0,
156
+ "torch_dtype": "float32",
157
+ "torchscript": false,
158
+ "typical_p": 1.0,
159
+ "use_bfloat16": false,
160
+ "use_cache": true,
161
+ "use_sliding_window": false,
162
+ "vocab_size": 151777
163
+ },
164
+ "tie_word_embeddings": false,
165
+ "torch_dtype": "float32",
166
+ "transformers_version": "4.46.1",
167
+ "use_cache": true,
168
+ "vision_config": {
169
+ "_attn_implementation_autoset": false,
170
+ "_name_or_path": "",
171
+ "add_cross_attention": false,
172
+ "architectures": null,
173
+ "attention_dropout": 0.0,
174
+ "bad_words_ids": null,
175
+ "begin_suppress_tokens": null,
176
+ "bos_token_id": null,
177
+ "chunk_size_feed_forward": 0,
178
+ "cross_attention_hidden_size": null,
179
+ "decoder_start_token_id": null,
180
+ "diversity_penalty": 0.0,
181
+ "do_sample": false,
182
+ "early_stopping": false,
183
+ "encoder_no_repeat_ngram_size": 0,
184
+ "eos_token_id": null,
185
+ "exponential_decay_length_penalty": null,
186
+ "finetuning_task": null,
187
+ "forced_bos_token_id": null,
188
+ "forced_eos_token_id": null,
189
+ "hidden_act": "gelu_pytorch_tanh",
190
+ "hidden_size": 768,
191
+ "id2label": {
192
+ "0": "LABEL_0",
193
+ "1": "LABEL_1"
194
+ },
195
+ "image_size": 384,
196
+ "initializer_range": 0.02,
197
+ "intermediate_size": 3072,
198
+ "is_decoder": false,
199
+ "is_encoder_decoder": false,
200
+ "label2id": {
201
+ "LABEL_0": 0,
202
+ "LABEL_1": 1
203
+ },
204
+ "layer_norm_eps": 1e-06,
205
+ "length_penalty": 1.0,
206
+ "max_length": 20,
207
+ "min_length": 0,
208
+ "model_type": "idefics2",
209
+ "no_repeat_ngram_size": 0,
210
+ "num_attention_heads": 12,
211
+ "num_beam_groups": 1,
212
+ "num_beams": 1,
213
+ "num_channels": 3,
214
+ "num_hidden_layers": 12,
215
+ "num_return_sequences": 1,
216
+ "output_attentions": false,
217
+ "output_hidden_states": false,
218
+ "output_scores": false,
219
+ "pad_token_id": null,
220
+ "patch_size": 16,
221
+ "prefix": null,
222
+ "problem_type": null,
223
+ "pruned_heads": {},
224
+ "remove_invalid_values": false,
225
+ "repetition_penalty": 1.0,
226
+ "return_dict": true,
227
+ "return_dict_in_generate": false,
228
+ "sep_token_id": null,
229
+ "suppress_tokens": null,
230
+ "task_specific_params": null,
231
+ "temperature": 1.0,
232
+ "tf_legacy_loss": false,
233
+ "tie_encoder_decoder": false,
234
+ "tie_word_embeddings": true,
235
+ "tokenizer_class": null,
236
+ "top_k": 50,
237
+ "top_p": 1.0,
238
+ "torch_dtype": null,
239
+ "torchscript": false,
240
+ "typical_p": 1.0,
241
+ "use_bfloat16": false
242
+ }
243
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 151643,
4
+ "eos_token_id": 151645,
5
+ "max_length": 1024,
6
+ "transformers_version": "4.46.1"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ffa7c2eca04a6e10f29aff75fc5aa965ae265996169d5fc433850315e70d40a
3
+ size 3068427232