librispeech_tts_r_dummy.json 1.96 KB
Newer Older
Yoach Lacombe's avatar
Yoach Lacombe committed
1
{
Yoach Lacombe's avatar
Yoach Lacombe committed
2
3
4
5
    "model_name_or_path": "/raid/yoach/tmp/artefacts/tiny-model/",
    "feature_extractor_name":"facebook/encodec_24khz",
    "description_tokenizer_name":"google-t5/t5-small",
    "prompt_tokenizer_name":"google-t5/t5-small",
Yoach Lacombe's avatar
Yoach Lacombe committed
6
7
8
9
10

    "push_to_hub": false,
    "hub_model_id": "stable-speech-mini",
    "report_to": ["wandb"],
    "overwrite_output_dir": true,
Yoach Lacombe's avatar
Yoach Lacombe committed
11
    "output_dir": "/raid/yoach/tmp/artefacts/training/",
Yoach Lacombe's avatar
Yoach Lacombe committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

    "train_dataset_name": "blabble-io/libritts_r",
    "train_metadata_dataset_name": "stable-speech/libritts-r-tags-and-text-generated",
    "train_dataset_config_name": "clean",
    "train_split_name": "train.clean.360",

    "eval_dataset_name": "blabble-io/libritts_r",
    "eval_metadata_dataset_name": "stable-speech/libritts-r-tags-and-text-generated",
    "eval_dataset_config_name": "clean",
    "eval_split_name": "train.clean.360",

    "target_audio_column_name": "audio", 
    "description_column_name": "text_description",
    "prompt_column_name": "text",

27
28
    "max_train_samples": 4,
    "max_eval_samples": 4,
Yoach Lacombe's avatar
Yoach Lacombe committed
29
30
31
32
33
34
35
36
37
38

    
    "max_duration_in_seconds": 30,
    "min_duration_in_seconds": 1.0,

    "add_audio_samples_to_wandb": true,
    "id_column_name": "id",

    "preprocessing_num_workers": 1,

Yoach Lacombe's avatar
Yoach Lacombe committed
39
40
    "pad_token_id": 1024,
    "decoder_start_token_id": 1025,
Yoach Lacombe's avatar
Yoach Lacombe committed
41
42

    "do_train": true,
Yoach Lacombe's avatar
Yoach Lacombe committed
43
    "num_train_epochs": 180,
Yoach Lacombe's avatar
Yoach Lacombe committed
44
45
    "gradient_accumulation_steps": 1,
    "gradient_checkpointing": false,
46
    "per_device_train_batch_size": 2,
Yoach Lacombe's avatar
Yoach Lacombe committed
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
    "learning_rate": 1e-3,
    "adam_beta1": 0.9,
    "adam_beta2": 0.999,
    "weight_decay": 0.1,

    "lr_scheduler_type": "cosine",
    "warmup_ratio":  0.1,


    "freeze_text_encoder": true,


    "do_eval": true, 
    "predict_with_generate": true,
    "include_inputs_for_metrics": true,
    "evaluation_strategy": "steps",
63
64
    "eval_steps": 30,
    "per_device_eval_batch_size": 2,
Yoach Lacombe's avatar
Yoach Lacombe committed
65
    "generation_max_length": 800,
66
    "do_sample": false,
Yoach Lacombe's avatar
Yoach Lacombe committed
67
68
69
70
71
72
73
74

    "logging_steps": 15,

    "dtype": "float32",
    "seed": 456,

    "dataloader_num_workers":8
}