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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_aggregator_pretrained_model_name_or_path": "./work/pretrained_models/distil-whisper-large-v3",
|
| 3 |
+
"activation_dropout": 0.0,
|
| 4 |
+
"activation_function": "gelu",
|
| 5 |
+
"aggregator_attention_heads": 20,
|
| 6 |
+
"aggregator_d_model": 1280,
|
| 7 |
+
"aggregator_ffn_dim": 5120,
|
| 8 |
+
"aggregator_init_cross_attn_v_proj_as_identity": false,
|
| 9 |
+
"aggregator_layerdrop": 0.0,
|
| 10 |
+
"aggregator_layers": 2,
|
| 11 |
+
"aggregator_max_source_positions": 1500,
|
| 12 |
+
"aggregator_max_target_positions": 448,
|
| 13 |
+
"aggregator_pad_token_id": 50256,
|
| 14 |
+
"aggregator_prefix_tokens": [
|
| 15 |
+
50258,
|
| 16 |
+
50259,
|
| 17 |
+
50360,
|
| 18 |
+
50364
|
| 19 |
+
],
|
| 20 |
+
"aggregator_pretrained_model_name_or_path": null,
|
| 21 |
+
"aggregator_scale_embedding": false,
|
| 22 |
+
"architectures": [
|
| 23 |
+
"TasteTokenizer"
|
| 24 |
+
],
|
| 25 |
+
"asr_config": {
|
| 26 |
+
"_name_or_path": "./distil-large-v3",
|
| 27 |
+
"activation_dropout": 0.0,
|
| 28 |
+
"activation_function": "gelu",
|
| 29 |
+
"apply_spec_augment": false,
|
| 30 |
+
"architectures": [
|
| 31 |
+
"WhisperForConditionalGeneration"
|
| 32 |
+
],
|
| 33 |
+
"attention_dropout": 0.0,
|
| 34 |
+
"begin_suppress_tokens": [
|
| 35 |
+
220,
|
| 36 |
+
50257
|
| 37 |
+
],
|
| 38 |
+
"bos_token_id": 50257,
|
| 39 |
+
"classifier_proj_size": 256,
|
| 40 |
+
"d_model": 1280,
|
| 41 |
+
"decoder_attention_heads": 20,
|
| 42 |
+
"decoder_ffn_dim": 5120,
|
| 43 |
+
"decoder_layerdrop": 0.0,
|
| 44 |
+
"decoder_layers": 2,
|
| 45 |
+
"decoder_start_token_id": 50258,
|
| 46 |
+
"dropout": 0.0,
|
| 47 |
+
"encoder_attention_heads": 20,
|
| 48 |
+
"encoder_ffn_dim": 5120,
|
| 49 |
+
"encoder_layerdrop": 0.0,
|
| 50 |
+
"encoder_layers": 32,
|
| 51 |
+
"eos_token_id": 50257,
|
| 52 |
+
"init_std": 0.02,
|
| 53 |
+
"mask_feature_length": 10,
|
| 54 |
+
"mask_feature_min_masks": 0,
|
| 55 |
+
"mask_feature_prob": 0.0,
|
| 56 |
+
"mask_time_length": 10,
|
| 57 |
+
"mask_time_min_masks": 2,
|
| 58 |
+
"mask_time_prob": 0.05,
|
| 59 |
+
"max_length": 448,
|
| 60 |
+
"max_source_positions": 1500,
|
| 61 |
+
"max_target_positions": 448,
|
| 62 |
+
"median_filter_width": 7,
|
| 63 |
+
"model_type": "whisper",
|
| 64 |
+
"num_hidden_layers": 32,
|
| 65 |
+
"num_mel_bins": 128,
|
| 66 |
+
"scale_embedding": false,
|
| 67 |
+
"torch_dtype": "float32",
|
| 68 |
+
"transformers.js_config": {
|
| 69 |
+
"use_external_data_format": {
|
| 70 |
+
"encoder_model.onnx": true
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
"use_cache": true,
|
| 74 |
+
"use_weighted_layer_sum": false,
|
| 75 |
+
"vocab_size": 51866
|
| 76 |
+
},
|
| 77 |
+
"asr_encoder_shallow_hidden_index": 6,
|
| 78 |
+
"attention_dropout": 0.0,
|
| 79 |
+
"dropout": 0.0,
|
| 80 |
+
"has_quantizer": true,
|
| 81 |
+
"ignore_index": -1,
|
| 82 |
+
"model_type": "taste",
|
| 83 |
+
"num_hidden_layers": 32,
|
| 84 |
+
"quantizer_codebook_dim": 256,
|
| 85 |
+
"quantizer_codebook_size": 512,
|
| 86 |
+
"quantizer_decay": 0.99,
|
| 87 |
+
"quantizer_input_dim": 1280,
|
| 88 |
+
"quantizer_kmeans_init": true,
|
| 89 |
+
"quantizer_num_quantizers": 4,
|
| 90 |
+
"quantizer_quantize_dropout": false,
|
| 91 |
+
"quantizer_type": "residual_vq",
|
| 92 |
+
"quantizer_use_implicit_neural_codebook": true,
|
| 93 |
+
"torch_dtype": "float32",
|
| 94 |
+
"training_config": {
|
| 95 |
+
"accumulate_grad_batches": 12,
|
| 96 |
+
"aggregator_partial_freeze": true,
|
| 97 |
+
"apply_quantization_prob": 1.0,
|
| 98 |
+
"ckpt_every_n_steps": 1000,
|
| 99 |
+
"delete_asr_decoder": false,
|
| 100 |
+
"delete_vocoder": false,
|
| 101 |
+
"devices": [
|
| 102 |
+
0
|
| 103 |
+
],
|
| 104 |
+
"freeze_aggregator": false,
|
| 105 |
+
"freeze_asr_decoder": true,
|
| 106 |
+
"freeze_asr_encoder": true,
|
| 107 |
+
"gradient_clip_val": 4.0,
|
| 108 |
+
"log_every_n_steps": 10,
|
| 109 |
+
"lr_scheduler": "warmup_cosine_decay",
|
| 110 |
+
"lr_scheduler_config": {
|
| 111 |
+
"warmup_steps": 2000
|
| 112 |
+
},
|
| 113 |
+
"max_epochs": 3,
|
| 114 |
+
"optimizer": "adam",
|
| 115 |
+
"optimizer_config": {
|
| 116 |
+
"lr": 0.0001
|
| 117 |
+
},
|
| 118 |
+
"output_dir": "/home/andybi7676/projects/IntelliGen/src/taste/egs/emilia_libritts/exp/taste_finetune",
|
| 119 |
+
"precision": "bf16",
|
| 120 |
+
"return_quantization_loss": true,
|
| 121 |
+
"strategy": "ddp_find_unused_parameters_true",
|
| 122 |
+
"val_check_interval": 0.2
|
| 123 |
+
},
|
| 124 |
+
"transformers_version": "4.55.0",
|
| 125 |
+
"unit_decoder_adopt_early_fusion": false,
|
| 126 |
+
"unit_decoder_encoders_common_kwargs": {
|
| 127 |
+
"attention_dropout_rate": 0.0,
|
| 128 |
+
"attention_heads": 8,
|
| 129 |
+
"dropout_rate": 0.1,
|
| 130 |
+
"input_layer": "linear",
|
| 131 |
+
"linear_units": 2048,
|
| 132 |
+
"macaron_style": false,
|
| 133 |
+
"normalize_before": true,
|
| 134 |
+
"pos_enc_layer_type": "rel_pos_espnet",
|
| 135 |
+
"positional_dropout_rate": 0.1,
|
| 136 |
+
"selfattention_layer_type": "rel_selfattn",
|
| 137 |
+
"static_chunk_size": 1,
|
| 138 |
+
"use_cnn_module": false,
|
| 139 |
+
"use_dynamic_chunk": false,
|
| 140 |
+
"use_dynamic_left_chunk": false
|
| 141 |
+
},
|
| 142 |
+
"unit_decoder_fuse_encoded_text_speech_kwargs": {
|
| 143 |
+
"normalize": true,
|
| 144 |
+
"use_layer_norm": false,
|
| 145 |
+
"use_trainable_weights": true,
|
| 146 |
+
"weights_init_type": "balanced"
|
| 147 |
+
},
|
| 148 |
+
"unit_decoder_fuse_encoded_text_speech_type": "weighted_sum",
|
| 149 |
+
"unit_decoder_lm_decoder_input_size": 1024,
|
| 150 |
+
"unit_decoder_lm_decoder_kwargs": {
|
| 151 |
+
"attention_dropout_rate": 0,
|
| 152 |
+
"attention_heads": 8,
|
| 153 |
+
"dropout_rate": 0.1,
|
| 154 |
+
"input_layer": "linear_legacy",
|
| 155 |
+
"linear_units": 2048,
|
| 156 |
+
"pos_enc_layer_type": "rel_pos_espnet",
|
| 157 |
+
"positional_dropout_rate": 0.1,
|
| 158 |
+
"selfattention_layer_type": "rel_selfattn",
|
| 159 |
+
"static_chunk_size": 1
|
| 160 |
+
},
|
| 161 |
+
"unit_decoder_lm_decoder_num_blocks": 7,
|
| 162 |
+
"unit_decoder_lm_decoder_output_size": 1024,
|
| 163 |
+
"unit_decoder_lm_decoder_units_vocab_size": 4096,
|
| 164 |
+
"unit_decoder_skip_text_affine_layer": false,
|
| 165 |
+
"unit_decoder_speaker_embed_size": 192,
|
| 166 |
+
"unit_decoder_speech_embed_encoder_input_size": 512,
|
| 167 |
+
"unit_decoder_speech_embed_encoder_num_blocks": 2,
|
| 168 |
+
"unit_decoder_speech_embed_encoder_output_size": 1024,
|
| 169 |
+
"unit_decoder_speech_embedding_size": 1280,
|
| 170 |
+
"unit_decoder_text_token_encoder_input_size": 512,
|
| 171 |
+
"unit_decoder_text_token_encoder_num_blocks": 3,
|
| 172 |
+
"unit_decoder_text_token_encoder_output_size": 1024,
|
| 173 |
+
"unit_decoder_text_token_vocab_size": 51866,
|
| 174 |
+
"unit_decoder_use_speaker_embedding": true,
|
| 175 |
+
"use_cache": true,
|
| 176 |
+
"vocab_size": 51866
|
| 177 |
+
}
|
lightning_model.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7505ee2fe35baa42038c03422740de36b366eec662c01d3463c38cbee6ec434
|
| 3 |
+
size 6097038333
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec15741819ad2ef0c767e43d31bccb3cccd5b8d366b5c51c41ab907f8b8339b7
|
| 3 |
+
size 4633453968
|