Download tools/tts_run.sh from RightNowAI/duplex-v0: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/RightNowAI/duplex-v0/resolve/main/tools/tts_run.sh
- Command line
-
hf download hf://RightNowAI/duplex-v0/tools/tts_run.sh
-
curl -L -o tts_run.sh https://huggingface.co/RightNowAI/duplex-v0/resolve/main/tools/tts_run.sh
795 Bytes
| # Voice all dialogues on GPUs 1 to 7: 8 processes per GPU, 4 CPU threads each. (Without the | |
| # thread cap every process takes all 256 cores: measured load average 1582, GPUs idle.) | |
| cd /data/train/duplex && . /data/train/venv/bin/activate | |
| export HF_HOME=/data/train/hf HF_HUB_OFFLINE=1 | |
| export OMP_NUM_THREADS=4 MKL_NUM_THREADS=4 OPENBLAS_NUM_THREADS=4 NUMEXPR_NUM_THREADS=4 | |
| [ -f data/out/tts_start ] || date -u +%s > data/out/tts_start | |
| date -u +%s > data/out/tts_restart | |
| for g in 1 2 3 4 5 6 7; do for s in 0 1 2 3 4 5 6 7; do | |
| CUDA_VISIBLE_DEVICES=$g python -m data.synth_tts --dialogues data/out/dialogues.jsonl --out data/out/tts \ | |
| --shard $(( (g-1)*8 + s )) --num-shards 56 > /data/train/logs/tts_${g}_${s}.log 2>&1 & | |
| done; done; wait | |
| date -u +%s > data/out/tts_end | |