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

add SyncBatchNorm #387

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add SyncBatchNorm #387

wants to merge 2 commits into from

Conversation

pleasantrabbit
Copy link
Collaborator

  • add byteps.torch.SyncBatchNorm
  • add BYTEPS_SYNC_BN_GLOBAL to choose between global sync and node local sync. defaults to node local sync
  • add node local allgather

Signed-off-by: yulu.jia yulu.jia@bytedance.com

- add byteps.torch.SyncBatchNorm
- add BYTEPS_SYNC_BN_GLOBAL to choose between global sync and node local sync. defaults to node local sync
- add node local allgather

Signed-off-by: yulu.jia <yulu.jia@bytedance.com>
skip_or_fail_gpu_test(self, "No GPUs available")

def test_horovod_sync_batch_norm(self):
print("xxx starting the test")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we remove this or make it more formal?


bps.init()
torch.cuda.set_device(bps.local_rank())
print("xxx my local rank is ", bps.rank())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@eric-haibin-lin
Copy link
Collaborator


Arguments:
tensor: A tensor to allgather.
name: A name of the allgather operation.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

document node_local?

- add byteps.torch.SyncBatchNorm
- add BYTEPS_SYNC_BN_GLOBAL to choose between global sync and node local sync. defaults to node local sync
- add node local allgather

Signed-off-by: yulu.jia <yulu.jia@bytedance.com>
Signed-off-by: Yulu Jia <yulu.jia@bytedance.com>
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.

None yet

3 participants