File size: 4,089 Bytes
24910ef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | {
"model": {
"mlp_in":{
"in_features": 320,
"hidden_features": 768,
"out_features": 1024,
"compute_dtype": "float32"
},
"mlp_out":{
"in_features": 1024,
"hidden_features": 768,
"out_features": 320,
"compute_dtype": "float32"
},
"decoder": {
"n_layers": 8,
"n_embd": 1024,
"n_hidden": 4096,
"n_heads": 16,
"head_dim": 64,
"compute_dtype": "float32",
"window_size": 15,
"dropout_rate": 0.1,
"drop_path_rate": 0.1
},
"encoder": {
"n_layers": 8,
"n_embd": 1024,
"n_hidden": 4096,
"n_heads": 16,
"head_dim": 64,
"compute_dtype": "float32",
"window_size": 15,
"dropout_rate": 0.1,
"drop_path_rate": 0.1
},
"rvq": {
"type": "mimi",
"num_codebooks": 8,
"codebook_size": 1024,
"embedding_dim": 1024,
"latent_dim": 16,
"updown_linears": true,
"codebook_weight_dtype": "float32"
},
"training": {
"quantizer_dropout": 0.5,
"encoder_mask_rate": 0.1,
"decoder_mask_rate": 0.1,
"noise_augmentation": 0.1
}
},
"w2v":{
"mlp_in":{
"in_features": 320,
"hidden_features": 768,
"out_features": 1024,
"compute_dtype": "float32"
},
"encoder": {
"n_layers": 8,
"n_embd": 1024,
"n_hidden": 4096,
"n_heads": 16,
"head_dim": 64,
"compute_dtype": "float32",
"window_size": 15,
"dropout_rate": 0.1
},
"rvq": {
"num_codebooks": 8,
"codebook_size": 1024,
"embedding_dim": 1024,
"latent_dim": 1024,
"updown_linears": false,
"codebook_weight_dtype": "float32"
},
"training": {
"noise_masking": 0.1
}
},
"training":{
"resume": false,
"loss_type": "l1",
"strict_model": false,
"load_discriminator": true,
"learning_rate": 1e-4,
"weight_decay": 1e-2,
"discriminator_start_steps": 10000,
"discriminator_segment_duration": 2.56,
"masking_stop_steps": 100000,
"apply_apa": false,
"warmup_steps": 1000,
"min_lr": 1e-6,
"num_epochs": 100,
"use_continuous": 0.1,
"max_grad_norm": 1000.0,
"batch_size": 42,
"gradient_accumulation_steps": 1,
"num_workers": 4,
"use_phaseaug": true,
"init_dataset": false,
"profile": false,
"verbose_grad_norm": false,
"verbose_norm_threshold_max": 5.0,
"verbose_norm_threshold_min": 0.001,
"verbose_paramter_norm": false,
"use_discriminator": true,
"encoder_checkpoint": null,
"rect_checkpoint": null,
"decoder_checkpoint": null,
"codec_checkpoint": null,
"sw2v_checkpoint": "/data/jhcodec/sw2v/cossim/checkpoints/checkpoint_60000.pt"
},
"loss":{
"recon_loss_weight": 0.1,
"vq_loss_weight": 1.0,
"commit_loss_weight": 0.1,
"fm_loss_weight": 1.0,
"adv_loss_weight": 1.0,
"w2v_loss_weight": 1.0,
"semantic_loss_weight": 1.0
},
"data": {
"audio_dir": "/data",
"sample_rate": 16000,
"segment_duration": 10.24,
"cache_dir": "/data/dataloader/v9"
},
"logging": {
"log_interval": 100,
"save_interval": 500,
"eval_interval": 3000,
"experiment_dir": "/data/jhcodec/{experiment_name}",
"checkpoint_dir": "/data/jhcodec/{experiment_name}/checkpoints",
"tensorboard_dir": "/data/jhcodec/{experiment_name}/tensorboard",
"n_samples": 3
}
} |