AnyaSchen commited on
Commit
3854cd0
1 Parent(s): 3459fdf

Upload model

Browse files
Files changed (3) hide show
  1. config.json +207 -0
  2. generation_config.json +13 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "_name_or_path": "./model",
4
+ "architectures": [
5
+ "VisionEncoderDecoderModel"
6
+ ],
7
+ "decoder": {
8
+ "_name_or_path": "sander-wood/text-to-music",
9
+ "activation_dropout": 0.1,
10
+ "activation_function": "gelu",
11
+ "add_bias_logits": false,
12
+ "add_cross_attention": true,
13
+ "add_final_layer_norm": false,
14
+ "architectures": [
15
+ "BartForConditionalGeneration"
16
+ ],
17
+ "attention_dropout": 0.1,
18
+ "bad_words_ids": null,
19
+ "begin_suppress_tokens": null,
20
+ "bos_token_id": 0,
21
+ "chunk_size_feed_forward": 0,
22
+ "classif_dropout": 0.1,
23
+ "classifier_dropout": 0.0,
24
+ "cross_attention_hidden_size": null,
25
+ "d_model": 768,
26
+ "decoder_attention_heads": 12,
27
+ "decoder_ffn_dim": 3072,
28
+ "decoder_layerdrop": 0.0,
29
+ "decoder_layers": 6,
30
+ "decoder_start_token_id": 2,
31
+ "diversity_penalty": 0.0,
32
+ "do_sample": false,
33
+ "dropout": 0.1,
34
+ "early_stopping": true,
35
+ "encoder_attention_heads": 12,
36
+ "encoder_ffn_dim": 3072,
37
+ "encoder_layerdrop": 0.0,
38
+ "encoder_layers": 6,
39
+ "encoder_no_repeat_ngram_size": 0,
40
+ "eos_token_id": 2,
41
+ "exponential_decay_length_penalty": null,
42
+ "finetuning_task": null,
43
+ "forced_bos_token_id": 0,
44
+ "forced_eos_token_id": 2,
45
+ "gradient_checkpointing": false,
46
+ "id2label": {
47
+ "0": "LABEL_0",
48
+ "1": "LABEL_1",
49
+ "2": "LABEL_2"
50
+ },
51
+ "init_std": 0.02,
52
+ "is_decoder": true,
53
+ "is_encoder_decoder": false,
54
+ "label2id": {
55
+ "LABEL_0": 0,
56
+ "LABEL_1": 1,
57
+ "LABEL_2": 2
58
+ },
59
+ "length_penalty": 1.0,
60
+ "max_length": 20,
61
+ "max_position_embeddings": 1024,
62
+ "min_length": 0,
63
+ "model_type": "bart",
64
+ "no_repeat_ngram_size": 3,
65
+ "normalize_before": false,
66
+ "normalize_embedding": true,
67
+ "num_beam_groups": 1,
68
+ "num_beams": 4,
69
+ "num_hidden_layers": 6,
70
+ "num_return_sequences": 1,
71
+ "output_attentions": false,
72
+ "output_hidden_states": false,
73
+ "output_scores": false,
74
+ "pad_token_id": 1,
75
+ "prefix": null,
76
+ "problem_type": null,
77
+ "pruned_heads": {},
78
+ "remove_invalid_values": false,
79
+ "repetition_penalty": 1.0,
80
+ "return_dict": true,
81
+ "return_dict_in_generate": false,
82
+ "scale_embedding": false,
83
+ "sep_token_id": null,
84
+ "suppress_tokens": null,
85
+ "task_specific_params": {
86
+ "summarization": {
87
+ "length_penalty": 1.0,
88
+ "max_length": 128,
89
+ "min_length": 12,
90
+ "num_beams": 4
91
+ },
92
+ "summarization_cnn": {
93
+ "length_penalty": 2.0,
94
+ "max_length": 142,
95
+ "min_length": 56,
96
+ "num_beams": 4
97
+ },
98
+ "summarization_xsum": {
99
+ "length_penalty": 1.0,
100
+ "max_length": 62,
101
+ "min_length": 11,
102
+ "num_beams": 6
103
+ }
104
+ },
105
+ "temperature": 1.0,
106
+ "tf_legacy_loss": false,
107
+ "tie_encoder_decoder": false,
108
+ "tie_word_embeddings": true,
109
+ "tokenizer_class": null,
110
+ "top_k": 50,
111
+ "top_p": 1.0,
112
+ "torch_dtype": "float32",
113
+ "torchscript": false,
114
+ "transformers_version": "4.30.0.dev0",
115
+ "typical_p": 1.0,
116
+ "use_bfloat16": false,
117
+ "use_cache": true,
118
+ "vocab_size": 50268
119
+ },
120
+ "decoder_start_token_id": 50265,
121
+ "encoder": {
122
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
123
+ "add_cross_attention": false,
124
+ "architectures": [
125
+ "ViTModel"
126
+ ],
127
+ "attention_probs_dropout_prob": 0.0,
128
+ "bad_words_ids": null,
129
+ "begin_suppress_tokens": null,
130
+ "bos_token_id": null,
131
+ "chunk_size_feed_forward": 0,
132
+ "cross_attention_hidden_size": null,
133
+ "decoder_start_token_id": null,
134
+ "diversity_penalty": 0.0,
135
+ "do_sample": false,
136
+ "early_stopping": false,
137
+ "encoder_no_repeat_ngram_size": 0,
138
+ "encoder_stride": 16,
139
+ "eos_token_id": null,
140
+ "exponential_decay_length_penalty": null,
141
+ "finetuning_task": null,
142
+ "forced_bos_token_id": null,
143
+ "forced_eos_token_id": null,
144
+ "hidden_act": "gelu",
145
+ "hidden_dropout_prob": 0.0,
146
+ "hidden_size": 768,
147
+ "id2label": {
148
+ "0": "LABEL_0",
149
+ "1": "LABEL_1"
150
+ },
151
+ "image_size": 224,
152
+ "initializer_range": 0.02,
153
+ "intermediate_size": 3072,
154
+ "is_decoder": false,
155
+ "is_encoder_decoder": false,
156
+ "label2id": {
157
+ "LABEL_0": 0,
158
+ "LABEL_1": 1
159
+ },
160
+ "layer_norm_eps": 1e-12,
161
+ "length_penalty": 1.0,
162
+ "max_length": 20,
163
+ "min_length": 0,
164
+ "model_type": "vit",
165
+ "no_repeat_ngram_size": 0,
166
+ "num_attention_heads": 12,
167
+ "num_beam_groups": 1,
168
+ "num_beams": 1,
169
+ "num_channels": 3,
170
+ "num_hidden_layers": 12,
171
+ "num_return_sequences": 1,
172
+ "output_attentions": false,
173
+ "output_hidden_states": false,
174
+ "output_scores": false,
175
+ "pad_token_id": null,
176
+ "patch_size": 16,
177
+ "prefix": null,
178
+ "problem_type": null,
179
+ "pruned_heads": {},
180
+ "qkv_bias": true,
181
+ "remove_invalid_values": false,
182
+ "repetition_penalty": 1.0,
183
+ "return_dict": true,
184
+ "return_dict_in_generate": false,
185
+ "sep_token_id": null,
186
+ "suppress_tokens": null,
187
+ "task_specific_params": null,
188
+ "temperature": 1.0,
189
+ "tf_legacy_loss": false,
190
+ "tie_encoder_decoder": false,
191
+ "tie_word_embeddings": true,
192
+ "tokenizer_class": null,
193
+ "top_k": 50,
194
+ "top_p": 1.0,
195
+ "torch_dtype": null,
196
+ "torchscript": false,
197
+ "transformers_version": "4.30.0.dev0",
198
+ "typical_p": 1.0,
199
+ "use_bfloat16": false
200
+ },
201
+ "is_encoder_decoder": true,
202
+ "model_type": "vision-encoder-decoder",
203
+ "pad_token_id": 1,
204
+ "tie_word_embeddings": false,
205
+ "torch_dtype": "float32",
206
+ "transformers_version": null
207
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 2,
5
+ "early_stopping": true,
6
+ "eos_token_id": 2,
7
+ "forced_bos_token_id": 0,
8
+ "forced_eos_token_id": 2,
9
+ "no_repeat_ngram_size": 3,
10
+ "num_beams": 4,
11
+ "pad_token_id": 1,
12
+ "transformers_version": "4.30.0.dev0"
13
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a11cbd7d29f145ad3e44e99ec239b7fdc586d246121fcdfb3942c5001099c281
3
+ size 730100781