Download scripts/test_train_image.sh from Lingmin-Ran/SADAE: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/Lingmin-Ran/SADAE/resolve/main/scripts/test_train_image.sh
- Command line
-
hf download hf://Lingmin-Ran/SADAE/scripts/test_train_image.sh
-
curl -L -o test_train_image.sh https://huggingface.co/Lingmin-Ran/SADAE/resolve/main/scripts/test_train_image.sh
700 Bytes
| # For licensing see accompanying LICENSE file. | |
| # Copyright (C) 2025 Apple Inc. All Rights Reserved. | |
| export NCCL_DEBUG=WARN | |
| # Training parameters | |
| ngpus=8 | |
| epochs=${1:-10} | |
| batch_size=${2:-16} | |
| config_path=${3:-"configs/starflow_3B_t2i_256x256.yaml"} | |
| echo "Training with config: $config_path" | |
| echo "Total Epochs: $epochs" | |
| echo "Global Batch size: $batch_size" | |
| echo "GPUs: $ngpus" | |
| torchrun --standalone --nproc_per_node $ngpus train.py \ | |
| --model_config_path "$config_path" \ | |
| --resume_path "ckpts/starflow_3B_t2i_256x256.pth" \ | |
| --epochs $epochs \ | |
| --batch_size $batch_size \ | |
| --epoch_length 100000 \ | |
| --dry_run 1 \ | |
| --wandb_name "test_run" |