SoftGroup/tools/dist_train.sh
2022-04-15 08:16:32 +00:00

7 lines
176 B
Bash
Executable File

#!/usr/bin/env bash
CONFIG=$1
GPUS=$2
PORT=${PORT:-29500}
OMP_NUM_THREADS=1 torchrun --nproc_per_node=$GPUS --master_port=$PORT $(dirname "$0")/train.py --dist $CONFIG ${@:3}