File size: 712 Bytes
2cf4a54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# 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:-8}
config_path=${3:-"configs/starflow-v_7B_t2v_caus_480p.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-v_7B_t2v_caus_480p_v3.pth" \
        --epochs $epochs \
        --batch_size $batch_size \
        --epoch_length 100000 \
        --wandb_name "test_run" \
        --dry_run 1 \