Download train_scripts/train.sh from gen6scp/sana-zero: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/spaces/gen6scp/sana-zero/resolve/main/train_scripts/train.sh
- Command line
-
hf download hf://spaces/gen6scp/sana-zero/train_scripts/train.sh
-
curl -L -o train.sh https://huggingface.co/spaces/gen6scp/sana-zero/resolve/main/train_scripts/train.sh
548 Bytes
| #/bin/bash | |
| set -e | |
| work_dir=output/debug | |
| np=8 | |
| if [[ $1 == *.yaml ]]; then | |
| config=$1 | |
| shift | |
| else | |
| config="configs/sana_config/512ms/sample_dataset.yaml" | |
| echo "Only support .yaml files, but get $1. Set to --config_path=$config" | |
| fi | |
| TRITON_PRINT_AUTOTUNING=1 \ | |
| torchrun --nproc_per_node=$np --master_port=15432 \ | |
| train_scripts/train.py \ | |
| --config_path=$config \ | |
| --work_dir=$work_dir \ | |
| --name=tmp \ | |
| --resume_from=latest \ | |
| --report_to=tensorboard \ | |
| --debug=true \ | |
| "$@" | |