JinchuanTian commited on
Commit
47c187f
·
verified ·
1 Parent(s): ee9e38a

Upload run_wavlm_smollm_yuyue.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. run_wavlm_smollm_yuyue.sh +50 -0
run_wavlm_smollm_yuyue.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Set bash to 'debug' mode, it will exit on :
3
+ # -e 'error', -u 'undefined variable', -o ... 'error in pipeline', -x 'print commands',
4
+ set -e
5
+ set -u
6
+ set -o pipefail
7
+
8
+ # start command:
9
+ # bash run_wavlm_smollm.sh --stage 8 --stop_stage 8 --ngpu 8 --tag tts_smollm_whole_rinit --train_args "--codec_token_per_frame 8 --codec_token_in_use 8 --loss_region whole"
10
+
11
+ train_jsons=""
12
+ valid_jsons=""
13
+ test_jsons=""
14
+
15
+ # TTS
16
+ train_jsons+="dump_wavlm/raw_tts_librispeech/train_960/data.json dump_wavlm/raw_tts_mls_en/mls_en_train/data.json"
17
+ valid_jsons+="dump_wavlm/raw_tts_librispeech/dev/data.json "
18
+
19
+ # Test sets
20
+ test_jsons+="dump_wavlm/raw_codec_ssl_asr_librispeech/test_clean/data.json "
21
+ test_jsons+="dump_wavlm/raw_codec_ssl_tts_librispeech/test_clean/data.json "
22
+
23
+ train_config=conf/train_multiscale_smollm_360m.yaml
24
+ inference_config=conf/decode_asr.yaml
25
+
26
+ token_list_dir=data/token_list/llm_vocab # use lllm vocab
27
+ bpe_opts="--subword_choice huggingface --subword_model HuggingFaceTB/SmolLM-1.7B"
28
+ codec_opts="--codec_choice inhouse"
29
+
30
+ ./speechlm.sh \
31
+ --skip_data_prep true \
32
+ --data_combo_name ls960_mlsen \
33
+ --fs 16000 \
34
+ --ngpu 4 \
35
+ --nj 16 \
36
+ --inference_nj 16 \
37
+ --nbest 10 \
38
+ --gpu_inference true \
39
+ --g2p g2p_en_no_space \
40
+ --cleaner tacotron \
41
+ --token_list_dir ${token_list_dir} \
42
+ --train_config ${train_config} \
43
+ --inference_config ${inference_config} \
44
+ --audio_format "flac.ark" \
45
+ --train_jsons "${train_jsons}" \
46
+ --valid_jsons "${valid_jsons}" \
47
+ --test_jsons "${test_jsons}" \
48
+ --dumpdir dump_wavlm \
49
+ ${bpe_opts} ${codec_opts} \
50
+ "$@"