mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Switch to torchrun as old launcher changed arg names in 2.0.. Fix #1728
This commit is contained in:
parent
49b9c3be80
commit
2054f11c6f
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
NUM_PROC=$1
|
||||
shift
|
||||
python3 -m torch.distributed.launch --nproc_per_node=$NUM_PROC train.py "$@"
|
||||
torchrun --nproc-per-node=$NUM_PROC train.py "$@"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user