Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support using OpenMPI to train model #92

Merged
merged 10 commits into from
Oct 21, 2024
Merged

Conversation

thangckt
Copy link
Contributor

@thangckt thangckt commented Sep 14, 2024

This PR will extremely helpful to someone just has CPU clusters

Usage:

mpirun -np $NSLOTS python $SEVENN_PATH/sevenn_train_mpi.py input.yaml --distributed --distributed_backend='mpi'

@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.

@YutackPark
Copy link
Member

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.

@thangckt
Copy link
Contributor Author

thangckt commented Sep 30, 2024

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

@YutackPark YutackPark mentioned this pull request Oct 9, 2024
19 tasks
@YutackPark YutackPark changed the base branch from main to refactor October 21, 2024 01:47
@YutackPark YutackPark merged commit 205646f into MDIL-SNU:refactor Oct 21, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants