pytorch-image-models/distributed_train.sh

6 lines
81 B
Bash

#!/bin/bash
NUM_PROC=$1
shift
torchrun --nproc_per_node=$NUM_PROC train.py "$@"