Closed thangckt closed 2 weeks ago
Look good to me. Thank you for the contribution. I merged sevenn_train_mpi.py into sevenn.py.
Is it executable without the 'SEVENN_PATH'? by using the torchrun
and the CLI interface sevenn
.
Is it executable without the 'SEVENN_PATH'?
with this merge, just run
mpirun -np $NSLOTS sevenn input.yaml --distributed --distributed_backend='mpi'
quite similar to running with torchrun
This PR will extremely helpful to someone just has CPU clusters
Usage:
@YutackPark The file 'sevenn_train_mpi.py' can replace file
main/sevenn.py
. But I temporary put a separate file in root folder for the case you don't like it, then you can remove easily.