OpenSound commited on
Commit
bb05820
1 Parent(s): d9a7330

Upload 4 files

Browse files
ckpts/ezaudio-xl.yml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model_name: EzAudio-XL
2
+
3
+ model:
4
+ mae: True
5
+ mae_prob: 0.25
6
+ mask_ratio: [0.25, 1.0]
7
+ mask_span: 10
8
+ img_size: 500
9
+ patch_size: 1
10
+ in_chans: 257
11
+ out_chans: 128
12
+ input_type: '1d'
13
+ embed_dim: 1152
14
+ depth: 28
15
+ num_heads: 16
16
+ mlp_ratio: 4.0
17
+ qkv_bias: false
18
+ qk_scale: null
19
+ qk_norm: layernorm
20
+ norm_layer: layernorm
21
+ act_layer: geglu
22
+ context_norm: true
23
+ use_checkpoint: true
24
+ time_fusion: 'ada_lora_bias'
25
+ ada_lora_rank: 36
26
+ ada_lora_alpha: 36
27
+ cls_dim: null
28
+ context_dim: 2048
29
+ context_fusion: 'cross'
30
+ context_max_length: null
31
+ context_pe_method: 'none'
32
+ pe_method: 'none'
33
+ rope_mode: 'shared'
34
+ use_conv: true
35
+ skip: true
36
+ skip_norm: true
37
+
38
+ autoencoder:
39
+ name: stable_vae
40
+ dim: 128
41
+ sr: 24000
42
+ latent_sr: 50
43
+ q_first: true
44
+ scale: 1.0
45
+ shift: 0.0
46
+
47
+ text_encoder:
48
+ model: google/flan-t5-xl
49
+ max_length: 100
50
+ cfg: 0.1
51
+
52
+ diff:
53
+ num_train_timesteps: 1000
54
+ beta_schedule: 'scaled_linear'
55
+ beta_start: 0.00085
56
+ beta_end: 0.012
57
+ prediction_type: 'v_prediction'
58
+ rescale_betas_zero_snr: true
59
+ timestep_spacing: 'trailing'
60
+ clip_sample: false
ckpts/s3/ezaudio_s3_xl.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97f0e5a2a000166dd4696d005b899321ab80ce9cda8bd912708cbc6761ea95a7
3
+ size 3499437603
ckpts/vae/1m.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cb13e2699fa922ce6a2b3b4f53c270ec64156e0cc3f3e3645e10cdf98b740dc
3
+ size 183037614
ckpts/vae/config.json ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "autoencoder",
3
+ "sample_size": 12000,
4
+ "sample_rate": 24000,
5
+ "audio_channels": 1,
6
+ "model": {
7
+ "encoder": {
8
+ "type": "oobleck",
9
+ "config": {
10
+ "in_channels": 1,
11
+ "channels": 128,
12
+ "c_mults": [1, 2, 4, 8],
13
+ "strides": [2, 4, 6, 10],
14
+ "latent_dim": 256,
15
+ "use_snake": true
16
+ }
17
+ },
18
+ "decoder": {
19
+ "type": "oobleck",
20
+ "config": {
21
+ "out_channels": 1,
22
+ "channels": 128,
23
+ "c_mults": [1, 2, 4, 8],
24
+ "strides": [2, 4, 6, 10],
25
+ "latent_dim": 128,
26
+ "use_snake": true,
27
+ "final_tanh": false
28
+ }
29
+ },
30
+ "bottleneck": {
31
+ "type": "vae"
32
+ },
33
+ "latent_dim": 128,
34
+ "downsampling_ratio": 480,
35
+ "io_channels": 1
36
+ },
37
+ "training": {
38
+ "learning_rate": 1.5e-4,
39
+ "warmup_steps": 0,
40
+ "use_ema": false,
41
+ "optimizer_configs": {
42
+ "autoencoder": {
43
+ "optimizer": {
44
+ "type": "AdamW",
45
+ "config": {
46
+ "betas": [0.8, 0.99],
47
+ "lr": 1.5e-4,
48
+ "weight_decay": 1e-3
49
+ }
50
+ },
51
+ "scheduler": {
52
+ "type": "InverseLR",
53
+ "config": {
54
+ "inv_gamma": 200000,
55
+ "power": 0.5,
56
+ "warmup": 0.999
57
+ }
58
+ }
59
+ },
60
+ "discriminator": {
61
+ "optimizer": {
62
+ "type": "AdamW",
63
+ "config": {
64
+ "betas": [0.8, 0.99],
65
+ "lr": 3e-4,
66
+ "weight_decay": 1e-3
67
+ }
68
+ },
69
+ "scheduler": {
70
+ "type": "InverseLR",
71
+ "config": {
72
+ "inv_gamma": 200000,
73
+ "power": 0.5,
74
+ "warmup": 0.999
75
+ }
76
+ }
77
+ }
78
+ },
79
+ "loss_configs": {
80
+ "discriminator": {
81
+ "type": "encodec",
82
+ "config": {
83
+ "filters": 64,
84
+ "n_ffts": [1280, 640, 320, 160, 80],
85
+ "hop_lengths": [320, 160, 80, 40, 20],
86
+ "win_lengths": [1280, 640, 320, 160, 80]
87
+ },
88
+ "weights": {
89
+ "adversarial": 0.1,
90
+ "feature_matching": 5.0
91
+ }
92
+ },
93
+ "spectral": {
94
+ "type": "mrstft",
95
+ "config": {
96
+ "fft_sizes": [1280, 640, 320, 160, 80, 40, 20],
97
+ "hop_sizes": [320, 160, 80, 40, 20, 10, 5],
98
+ "win_lengths": [1280, 640, 320, 160, 80, 40, 20],
99
+ "perceptual_weighting": true
100
+ },
101
+ "weights": {
102
+ "mrstft": 1.0
103
+ }
104
+ },
105
+ "time": {
106
+ "type": "l1",
107
+ "weights": {
108
+ "l1": 0.0
109
+ }
110
+ },
111
+ "bottleneck": {
112
+ "type": "kl",
113
+ "weights": {
114
+ "kl": 1e-4
115
+ }
116
+ }
117
+ },
118
+ "demo": {
119
+ "demo_every": 10000
120
+ }
121
+ }
122
+ }