equiformer_v2 icon indicating copy to clipboard operation
equiformer_v2 copied to clipboard

Multi-node multi-gpu training

Open gxglxy opened this issue 1 year ago • 1 comments

Could you provide instructions on how to run experiments under the multi-node multi-gpu setting without using the submitit? For example, I have 2 nodes, each of which contains 16 gpus. How should I modify the scripts you provide to reproduce the reported results?

Thanks!

gxglxy avatar Sep 04 '23 16:09 gxglxy

Hi @gxglxy

You can take a look at here: https://github.com/atomicarchitects/equiformer_v2/blob/main/oc20/trainer/dist_setup.py#L14-L89

This is the part where we set up distributed training. If you use MPI to launch multi-node training, you can replace --submit with --summit in *.sh.

Depending on how you launch multi-node training, you might need to use this part or this part. They differ in how they set up environment variables. It might be hard for me to tell what is exactly the modification you need to have given the information you have.

Best

yilunliao avatar Sep 04 '23 21:09 yilunliao