rasoulasadianub commited on
Commit
7c6c0b4
·
1 Parent(s): 8fd358b

add pic model

Browse files
Files changed (3) hide show
  1. config.json +214 -0
  2. generation_config.json +9 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "VisionEncoderDecoderModel"
4
+ ],
5
+ "bos_token_id": 5,
6
+ "decoder": {
7
+ "_name_or_path": "weights/gpt2",
8
+ "activation_function": "gelu_new",
9
+ "add_cross_attention": true,
10
+ "architectures": [
11
+ "GPT2Model"
12
+ ],
13
+ "attn_pdrop": 0.1,
14
+ "bad_words_ids": null,
15
+ "begin_suppress_tokens": null,
16
+ "bos_token_id": 5,
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
+ "embd_pdrop": 0.1,
24
+ "encoder_no_repeat_ngram_size": 0,
25
+ "eos_token_id": 5,
26
+ "exponential_decay_length_penalty": null,
27
+ "finetuning_task": null,
28
+ "forced_bos_token_id": null,
29
+ "forced_eos_token_id": null,
30
+ "gradient_checkpointing": false,
31
+ "id2label": {
32
+ "0": "LABEL_0",
33
+ "1": "LABEL_1"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "is_decoder": true,
37
+ "is_encoder_decoder": false,
38
+ "label2id": {
39
+ "LABEL_0": 0,
40
+ "LABEL_1": 1
41
+ },
42
+ "layer_norm_epsilon": 1e-05,
43
+ "length_penalty": 1.0,
44
+ "max_length": 50,
45
+ "min_length": 0,
46
+ "model_type": "gpt2",
47
+ "n_ctx": 1024,
48
+ "n_embd": 768,
49
+ "n_head": 12,
50
+ "n_inner": null,
51
+ "n_layer": 12,
52
+ "n_positions": 1024,
53
+ "no_repeat_ngram_size": 0,
54
+ "num_beam_groups": 1,
55
+ "num_beams": 1,
56
+ "num_return_sequences": 1,
57
+ "output_attentions": false,
58
+ "output_hidden_states": false,
59
+ "output_scores": false,
60
+ "pad_token_id": null,
61
+ "prefix": null,
62
+ "problem_type": null,
63
+ "pruned_heads": {},
64
+ "remove_invalid_values": false,
65
+ "reorder_and_upcast_attn": false,
66
+ "repetition_penalty": 1.0,
67
+ "resid_pdrop": 0.1,
68
+ "return_dict": true,
69
+ "return_dict_in_generate": false,
70
+ "scale_attn_by_inverse_layer_idx": false,
71
+ "scale_attn_weights": true,
72
+ "sep_token_id": null,
73
+ "summary_activation": null,
74
+ "summary_first_dropout": 0.1,
75
+ "summary_proj_to_labels": true,
76
+ "summary_type": "cls_index",
77
+ "summary_use_proj": true,
78
+ "suppress_tokens": null,
79
+ "task_specific_params": {
80
+ "text-generation": {
81
+ "do_sample": true,
82
+ "max_length": 50,
83
+ "top_k": 50,
84
+ "top_p": 0.95
85
+ }
86
+ },
87
+ "temperature": 1.0,
88
+ "tf_legacy_loss": false,
89
+ "tie_encoder_decoder": false,
90
+ "tie_word_embeddings": true,
91
+ "tokenizer_class": null,
92
+ "top_k": 50,
93
+ "top_p": 1.0,
94
+ "torch_dtype": "float32",
95
+ "torchscript": false,
96
+ "typical_p": 1.0,
97
+ "use_bfloat16": false,
98
+ "use_cache": true,
99
+ "vocab_size": 42001
100
+ },
101
+ "decoder_start_token_id": 5,
102
+ "encoder": {
103
+ "_name_or_path": "weights/dinov2-base",
104
+ "add_cross_attention": false,
105
+ "apply_layernorm": true,
106
+ "architectures": [
107
+ "Dinov2Model"
108
+ ],
109
+ "attention_probs_dropout_prob": 0.0,
110
+ "bad_words_ids": null,
111
+ "begin_suppress_tokens": null,
112
+ "bos_token_id": null,
113
+ "chunk_size_feed_forward": 0,
114
+ "cross_attention_hidden_size": null,
115
+ "decoder_start_token_id": null,
116
+ "diversity_penalty": 0.0,
117
+ "do_sample": false,
118
+ "drop_path_rate": 0.0,
119
+ "early_stopping": false,
120
+ "encoder_no_repeat_ngram_size": 0,
121
+ "eos_token_id": null,
122
+ "exponential_decay_length_penalty": null,
123
+ "finetuning_task": null,
124
+ "forced_bos_token_id": null,
125
+ "forced_eos_token_id": null,
126
+ "hidden_act": "gelu",
127
+ "hidden_dropout_prob": 0.0,
128
+ "hidden_size": 768,
129
+ "id2label": {
130
+ "0": "LABEL_0",
131
+ "1": "LABEL_1"
132
+ },
133
+ "image_size": 518,
134
+ "initializer_range": 0.02,
135
+ "is_decoder": false,
136
+ "is_encoder_decoder": false,
137
+ "label2id": {
138
+ "LABEL_0": 0,
139
+ "LABEL_1": 1
140
+ },
141
+ "layer_norm_eps": 1e-06,
142
+ "layerscale_value": 1.0,
143
+ "length_penalty": 1.0,
144
+ "max_length": 20,
145
+ "min_length": 0,
146
+ "mlp_ratio": 4,
147
+ "model_type": "dinov2",
148
+ "no_repeat_ngram_size": 0,
149
+ "num_attention_heads": 12,
150
+ "num_beam_groups": 1,
151
+ "num_beams": 1,
152
+ "num_channels": 3,
153
+ "num_hidden_layers": 12,
154
+ "num_return_sequences": 1,
155
+ "out_features": [
156
+ "stage12"
157
+ ],
158
+ "out_indices": [
159
+ 12
160
+ ],
161
+ "output_attentions": false,
162
+ "output_hidden_states": false,
163
+ "output_scores": false,
164
+ "pad_token_id": null,
165
+ "patch_size": 14,
166
+ "prefix": null,
167
+ "problem_type": null,
168
+ "pruned_heads": {},
169
+ "qkv_bias": true,
170
+ "remove_invalid_values": false,
171
+ "repetition_penalty": 1.0,
172
+ "reshape_hidden_states": true,
173
+ "return_dict": true,
174
+ "return_dict_in_generate": false,
175
+ "sep_token_id": null,
176
+ "stage_names": [
177
+ "stem",
178
+ "stage1",
179
+ "stage2",
180
+ "stage3",
181
+ "stage4",
182
+ "stage5",
183
+ "stage6",
184
+ "stage7",
185
+ "stage8",
186
+ "stage9",
187
+ "stage10",
188
+ "stage11",
189
+ "stage12"
190
+ ],
191
+ "suppress_tokens": null,
192
+ "task_specific_params": null,
193
+ "temperature": 1.0,
194
+ "tf_legacy_loss": false,
195
+ "tie_encoder_decoder": false,
196
+ "tie_word_embeddings": true,
197
+ "tokenizer_class": null,
198
+ "top_k": 50,
199
+ "top_p": 1.0,
200
+ "torch_dtype": "float32",
201
+ "torchscript": false,
202
+ "typical_p": 1.0,
203
+ "use_bfloat16": false,
204
+ "use_swiglu_ffn": false
205
+ },
206
+ "eos_token_id": 5,
207
+ "is_encoder_decoder": true,
208
+ "model_type": "vision-encoder-decoder",
209
+ "pad_token_id": 5,
210
+ "tie_word_embeddings": false,
211
+ "torch_dtype": "float32",
212
+ "transformers_version": "4.45.1",
213
+ "vocab_size": 42001
214
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 5,
4
+ "eos_token_id": 5,
5
+ "max_length": 50,
6
+ "num_beams": 3,
7
+ "pad_token_id": 5,
8
+ "transformers_version": "4.45.1"
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10b29f63ea8b6734ee7042aef6fdc7cf89451c02d7c9959d079974546db4c9b4
3
+ size 932239776