LiuZH-19 commited on
Commit
e4adbc4
·
verified ·
1 Parent(s): 63b9f5c

Upload SongGenMixedForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/mnt/petrelfs/liuzihan/SongGen/outputs/mixed_pro/step3",
3
+ "add_prenet": true,
4
+ "architectures": [
5
+ "SongGenMixedForConditionalGeneration"
6
+ ],
7
+ "decoder": {
8
+ "_name_or_path": "./outputs/untrained-mixed_pro/decoder",
9
+ "activation_dropout": 0.0,
10
+ "activation_function": "gelu",
11
+ "add_cross_attention": true,
12
+ "add_vocal_loss": true,
13
+ "architectures": [
14
+ "SongGenForCausalLM"
15
+ ],
16
+ "attention_dropout": 0.0,
17
+ "bad_words_ids": null,
18
+ "begin_suppress_tokens": null,
19
+ "bos_token_id": 1025,
20
+ "chunk_size_feed_forward": 0,
21
+ "cross_attention_hidden_size": null,
22
+ "cross_attention_implementation_strategy": null,
23
+ "decoder_start_token_id": null,
24
+ "diversity_penalty": 0.0,
25
+ "do_sample": false,
26
+ "dropout": 0.1,
27
+ "early_stopping": false,
28
+ "encoder_no_repeat_ngram_size": 0,
29
+ "eos_token_id": 1024,
30
+ "exponential_decay_length_penalty": null,
31
+ "ffn_dim": 4096,
32
+ "finetuning_task": null,
33
+ "forced_bos_token_id": null,
34
+ "forced_eos_token_id": null,
35
+ "hidden_size": 1024,
36
+ "id2label": {
37
+ "0": "LABEL_0",
38
+ "1": "LABEL_1"
39
+ },
40
+ "initializer_factor": 0.02,
41
+ "is_decoder": true,
42
+ "is_encoder_decoder": false,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1
46
+ },
47
+ "layerdrop": 0.0,
48
+ "length_penalty": 1.0,
49
+ "max_length": 20,
50
+ "max_position_embeddings": 6547,
51
+ "min_length": 0,
52
+ "model_type": "songgen_decoder",
53
+ "no_repeat_ngram_size": 0,
54
+ "num_attention_heads": 16,
55
+ "num_beam_groups": 1,
56
+ "num_beams": 1,
57
+ "num_codebooks": 8,
58
+ "num_cross_attention_key_value_heads": 16,
59
+ "num_hidden_layers": 24,
60
+ "num_key_value_heads": 16,
61
+ "num_return_sequences": 1,
62
+ "output_attentions": false,
63
+ "output_hidden_states": false,
64
+ "output_scores": false,
65
+ "pad_token_id": 1024,
66
+ "prefix": null,
67
+ "problem_type": null,
68
+ "pruned_heads": {},
69
+ "remove_invalid_values": false,
70
+ "repetition_penalty": 1.0,
71
+ "return_dict": true,
72
+ "return_dict_in_generate": false,
73
+ "rope_embeddings": false,
74
+ "rope_theta": 10000.0,
75
+ "scale_embedding": false,
76
+ "sep_token_id": null,
77
+ "suppress_tokens": null,
78
+ "task_specific_params": null,
79
+ "temperature": 1.0,
80
+ "tf_legacy_loss": false,
81
+ "tie_encoder_decoder": false,
82
+ "tie_word_embeddings": false,
83
+ "tokenizer_class": null,
84
+ "top_k": 50,
85
+ "top_p": 1.0,
86
+ "torch_dtype": "float32",
87
+ "torchscript": false,
88
+ "track_pattern": "mixed_pro",
89
+ "typical_p": 1.0,
90
+ "use_bfloat16": false,
91
+ "use_cache": true,
92
+ "vocab_size": 1088
93
+ },
94
+ "decoder_start_token_id": 1025,
95
+ "is_encoder_decoder": true,
96
+ "model_type": "songgen",
97
+ "pad_token_id": 1024,
98
+ "prompt_cross_attention": true,
99
+ "text_encoder": {
100
+ "_name_or_path": "google/flan-t5-large",
101
+ "add_cross_attention": false,
102
+ "architectures": [
103
+ "T5ForConditionalGeneration"
104
+ ],
105
+ "bad_words_ids": null,
106
+ "begin_suppress_tokens": null,
107
+ "bos_token_id": null,
108
+ "chunk_size_feed_forward": 0,
109
+ "classifier_dropout": 0.0,
110
+ "cross_attention_hidden_size": null,
111
+ "d_ff": 2816,
112
+ "d_kv": 64,
113
+ "d_model": 1024,
114
+ "decoder_start_token_id": 0,
115
+ "dense_act_fn": "gelu_new",
116
+ "diversity_penalty": 0.0,
117
+ "do_sample": false,
118
+ "dropout_rate": 0.1,
119
+ "early_stopping": false,
120
+ "encoder_no_repeat_ngram_size": 0,
121
+ "eos_token_id": 1,
122
+ "exponential_decay_length_penalty": null,
123
+ "feed_forward_proj": "gated-gelu",
124
+ "finetuning_task": null,
125
+ "forced_bos_token_id": null,
126
+ "forced_eos_token_id": null,
127
+ "id2label": {
128
+ "0": "LABEL_0",
129
+ "1": "LABEL_1"
130
+ },
131
+ "initializer_factor": 1.0,
132
+ "is_decoder": false,
133
+ "is_encoder_decoder": true,
134
+ "is_gated_act": true,
135
+ "label2id": {
136
+ "LABEL_0": 0,
137
+ "LABEL_1": 1
138
+ },
139
+ "layer_norm_epsilon": 1e-06,
140
+ "length_penalty": 1.0,
141
+ "max_length": 20,
142
+ "min_length": 0,
143
+ "model_type": "t5",
144
+ "n_positions": 512,
145
+ "no_repeat_ngram_size": 0,
146
+ "num_beam_groups": 1,
147
+ "num_beams": 1,
148
+ "num_decoder_layers": 24,
149
+ "num_heads": 16,
150
+ "num_layers": 24,
151
+ "num_return_sequences": 1,
152
+ "output_attentions": false,
153
+ "output_hidden_states": false,
154
+ "output_past": true,
155
+ "output_scores": false,
156
+ "pad_token_id": 0,
157
+ "prefix": null,
158
+ "problem_type": null,
159
+ "pruned_heads": {},
160
+ "relative_attention_max_distance": 128,
161
+ "relative_attention_num_buckets": 32,
162
+ "remove_invalid_values": false,
163
+ "repetition_penalty": 1.0,
164
+ "return_dict": true,
165
+ "return_dict_in_generate": false,
166
+ "sep_token_id": null,
167
+ "suppress_tokens": null,
168
+ "task_specific_params": null,
169
+ "temperature": 1.0,
170
+ "tf_legacy_loss": false,
171
+ "tie_encoder_decoder": false,
172
+ "tie_word_embeddings": false,
173
+ "tokenizer_class": null,
174
+ "top_k": 50,
175
+ "top_p": 1.0,
176
+ "torch_dtype": null,
177
+ "torchscript": false,
178
+ "typical_p": 1.0,
179
+ "use_bfloat16": false,
180
+ "use_cache": true,
181
+ "vocab_size": 32128
182
+ },
183
+ "torch_dtype": "float32",
184
+ "transformers_version": "4.43.3",
185
+ "vocab_size": 7000
186
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1025,
4
+ "decoder_start_token_id": 1025,
5
+ "do_sample": true,
6
+ "eos_token_id": 1024,
7
+ "max_length": 1500,
8
+ "pad_token_id": 1024,
9
+ "transformers_version": "4.43.3"
10
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ee075344eeca2bfda8cb43d225144b323eebeaa350523222e7a2cee10436bc5
3
+ size 4997171400
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af6dd3ba209ff5e57beb09d3273df0b868bc8e3171ed8f2c3fdfdc7a94741366
3
+ size 457681104
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff