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

HSDP IB Issues #633

Open
karan-dalal opened this issue Oct 18, 2024 · 0 comments
Open

HSDP IB Issues #633

karan-dalal opened this issue Oct 18, 2024 · 0 comments

Comments

@karan-dalal
Copy link

I'm attempting to run HSDP on 2 nodes each with 2 A100s. I'm using a script similar to multinode_trainer.slurm

Currently, I've set the following:

export NCCL_DEBUG=WARN
export NCCL_SOCKET_IFNAME="eth0,en,eth,em,bond"
export NCCL_BUFFSIZE=2097152

When I train my model with only FSDP (data_parallel_shard_degree=4), I'm able to run. However, when I enable HSDP by setting data_parallel_replicate_degree=2, I get the following error followed by a Python seg fault:

 [0] misc/ibvwrap.cc:169 NCCL WARN Call to ibv_reg_mr_iova2 failed with error Cannot allocate memory

If I additionally set export NCCL_IB_DISABLE=1 then I am able to train. However, I've read online that this can slow down communication time significantly. I tried disabling for FSDP and noticed the training time double.

Is this an issue with my IB setup? Why might it only happen for HSDP, but not FSDP? Thanks!

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

No branches or pull requests

1 participant