Download recipe/scripts/t3b_control.sh from gowombat/tiny-voca-da: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/gowombat/tiny-voca-da/resolve/main/recipe/scripts/t3b_control.sh
- Command line
-
hf download hf://gowombat/tiny-voca-da/recipe/scripts/t3b_control.sh
-
curl -L -o t3b_control.sh https://huggingface.co/gowombat/tiny-voca-da/resolve/main/recipe/scripts/t3b_control.sh
1.48 kB
| # Control for frontend v4: T3 continued 180k -> 220k on the SAME v3 annotations and recipe, so | |
| # T4 (v4 labels, scripts/v4_chain.sh) can be compared at equal steps. Runs in the kit-v3 image: | |
| # docker compose run -d --name tiny-voca-dk-t3b kit-v3 bash -c "bash scripts/t3b_control.sh > checks/t3b-control.log 2>&1" | |
| set -uo pipefail | |
| cd /opt/kit | |
| GPU=${GPU:-1} | |
| ANN=data/v3trim-prepared/annotations | |
| OUT=runs/v3trim-tex1k-220k | |
| VOICE=models/v3trim-tex1k-s220000.pt | |
| until CUDA_VISIBLE_DEVICES=$GPU python -c "import sys, torch; sys.exit(0 if torch.cuda.mem_get_info(0)[0] > 13e9 else 1)" 2>/dev/null | |
| do sleep 30; done | |
| START=(--init-from runs/v3trim-tex1k-180k/last.pt); [[ -f "$OUT/last.pt" ]] && START=(--resume "$OUT/last.pt") | |
| echo "== stage voice $(date -u +%FT%TZ)" | |
| CUDA_VISIBLE_DEVICES=$GPU TEXTURE_LOW_HZ=1000 python scripts/train_texture_low.py \ | |
| --train "$ANN/train.jsonl" --validation "$ANN/validation.jsonl" \ | |
| --config work/config.v3trim-vml.json --output "$OUT" --device cuda --steps 220000 --batch-frames 9000 --max-batch 32 \ | |
| --gan-start 8000 --gan-ratio 0.7 --teacher-final 0 --save-every 1000 --keep-every 5000 --log-every 50 \ | |
| --max-seconds inf --stop-file "$OUT/STOP" --texture 20 "${START[@]}" >> "$OUT.log" 2>&1 || { echo "exit=1 stage=voice"; exit 1; } | |
| python tiny-voca/scripts/export_checkpoint.py --checkpoint "$OUT/last.pt" --output "$VOICE" > /dev/null || { echo "exit=1 stage=export"; exit 1; } | |
| echo "exit=0 $(date -u +%FT%TZ)" | |