Download recipe/scripts/pairs_round8.sh from gowombat/tiny-voca-da: direct link, hf CLI and curl.
- Browser
- Download file 2.38 kB
-
https://huggingface.co/gowombat/tiny-voca-da/resolve/main/recipe/scripts/pairs_round8.sh
- Command line
-
hf download hf://gowombat/tiny-voca-da/recipe/scripts/pairs_round8.sh
-
curl -L -o pairs_round8.sh https://huggingface.co/gowombat/tiny-voca-da/resolve/main/recipe/scripts/pairs_round8.sh
2.38 kB
| # Round 8 vocoder fine-tunes (queued 2026-11-25 ~18:30 UTC), both from C = | |
| # runs/vocoder-r7-C/last.pt at 132k (pairs with TTS voicing, --mel-weight 5). | |
| # Round 7 at 120k (AGENTS.md): --mel-weight 5 cut TTS locking 0.48 -> 0.40 at 1-2 kHz (real | |
| # 0.33), CER unchanged, probe UTMOS 3.27 -> 3.22. The control (weight 15, same steps) reached | |
| # only 0.46. | |
| # E (GPU 0): --mel-weight 2, to see how far the direction goes and what it costs. | |
| # F (GPU 1): --mel-weight 5 continued, the product candidate if the ear prefers C. | |
| # The rest is as in round 7: fresh cosine at 5e-5, 500 warm-up, 20k steps (132k -> 152k). | |
| # Run detached in the v3 image: | |
| # docker compose run -d --name tiny-voca-dk-round8 kit-v3 \ | |
| # bash -c "bash scripts/pairs_round8.sh > checks/round8-chain.log 2>&1" | |
| set -uo pipefail | |
| cd /opt/kit | |
| stamp() { echo "== stage $1 $(date -u +%FT%TZ)"; } | |
| wait_gpu() { # device index, free bytes needed | |
| until CUDA_VISIBLE_DEVICES=$1 python -c "import sys, torch; sys.exit(0 if torch.cuda.mem_get_info(0)[0] > $2 else 1)" 2>/dev/null | |
| do sleep 30; done; } | |
| PAIRS=data/vocoder-pairs-v3trim100k-vv/train/pairs.jsonl | |
| INIT=runs/vocoder-r7-C/last.pt | |
| stamp wait-round7 | |
| until grep -q "^exit=0" checks/round7-chain.log 2>/dev/null; do sleep 60; done | |
| grep -q "C exit=0" checks/round7-chain.log || { echo "exit=1 round 7 C failed"; exit 1; } | |
| cp --update=none runs/vocoder-r7-C/vocoder.pt models/vocoder-r7-C-s132000.pt | |
| cp --update=none runs/vocoder-r7-D/vocoder.pt models/vocoder-r7-D-s132000.pt | |
| run() { # name, gpu, mel weight | |
| local out=runs/vocoder-r8-$1 | |
| local start=(--init-from "$INIT" --fresh-schedule); [[ -f "$out/last.pt" ]] && start=(--resume) | |
| wait_gpu "$2" 8e9 | |
| stamp "$1" | |
| CUDA_VISIBLE_DEVICES=$2 python -m tiny_voca.train_vocoder "${start[@]}" --prior --prior-high-hz 2500 --prior-high-gain 0.05 \ | |
| --prior-gain-range 0.0 0.1 --mel-weight "$3" \ | |
| --manifests data/full-features/train.jsonl --validation data/full-features/validation.jsonl --output "$out" \ | |
| --steps 152000 --learning-rate 5e-5 --warmup 500 --batch 32 --teacher vocos --distill-mode spectrum --distill-weight 4 \ | |
| --pairs "$PAIRS" --pair-fraction 0.7 \ | |
| --device cuda --workers 6 --save-every 1000 --keep-every 5000 >> "$out.log" 2>&1 | |
| echo "$1 exit=$? $(date -u +%FT%TZ)" | |
| } | |
| run E 0 2 & | |
| run F 1 5 & | |
| wait | |
| echo "exit=0 (see the E/F exit lines above)" | |