choihj0706 commited on
Commit
d3403b1
1 Parent(s): 038a911

Upload config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.json +37 -61
config.json CHANGED
@@ -1,62 +1,38 @@
1
  {
2
- "model_type": "musicgen",
3
- "text_encoder": {
4
- "model_type": "t5",
5
- "name_or_path": "t5-base",
6
- "type": "T5EncoderModel",
7
- "config": {
8
- "vocab_size": 32128,
9
- "d_model": 1024,
10
- "num_layers": 12,
11
- "num_heads": 16,
12
- "dropout_rate": 0.1
13
- }
14
- },
15
- "audio_encoder": {
16
- "model_type": "wav2vec2",
17
- "name_or_path": "facebook/wav2vec2-large",
18
- "type": "AudioEncoder",
19
- "config": {
20
- "sample_rate": 32000,
21
- "num_channels": 1,
22
- "embedding_size": 512
23
- }
24
- },
25
- "decoder": {
26
- "model_type": "transformer",
27
- "name_or_path": "facebook/musicgen-large",
28
- "type": "TransformerDecoder",
29
- "config": {
30
- "d_model": 1024,
31
- "num_heads": 16,
32
- "num_layers": 24,
33
- "dropout_rate": 0.1
34
- }
35
- },
36
- "training": {
37
- "batch_size": 16,
38
- "num_epochs": 100,
39
- "learning_rate": 0.0001,
40
- "weight_decay": 0.01,
41
- "gradient_clipping": 1.0
42
- },
43
- "generation": {
44
- "sample_rate": 32000,
45
- "audio_format": "wav",
46
- "num_samples": 5,
47
- "max_duration": 30.0,
48
- "temperature": 1.0,
49
- "top_k": 250,
50
- "top_p": 0.9
51
- },
52
- "logging": {
53
- "log_tensorboard": true,
54
- "log_wandb": true,
55
- "wandb_project": "music_generation",
56
- "log_updates": 10
57
- },
58
- "hardware": {
59
- "device": "cuda",
60
- "num_gpus": 4
61
- }
62
- }
 
1
  {
2
+ "architectures": [
3
+ "EncodecModel"
4
+ ],
5
+ "audio_channels": 1,
6
+ "chunk_length_s": null,
7
+ "codebook_dim": 128,
8
+ "codebook_size": 2048,
9
+ "compress": 2,
10
+ "dilation_growth_rate": 2,
11
+ "hidden_size": 128,
12
+ "kernel_size": 7,
13
+ "last_kernel_size": 7,
14
+ "model_type": "encodec",
15
+ "norm_type": "weight_norm",
16
+ "normalize": false,
17
+ "num_filters": 64,
18
+ "num_lstm_layers": 2,
19
+ "num_residual_layers": 1,
20
+ "overlap": null,
21
+ "pad_mode": "reflect",
22
+ "residual_kernel_size": 3,
23
+ "sampling_rate": 32000,
24
+ "target_bandwidths": [
25
+ 2.2
26
+ ],
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.31.0.dev0",
29
+ "trim_right_ratio": 1.0,
30
+ "upsampling_ratios": [
31
+ 8,
32
+ 5,
33
+ 4,
34
+ 4
35
+ ],
36
+ "use_causal_conv": false,
37
+ "use_conv_shortcut": false
38
+ }