Skip to content

Instantly share code, notes, and snippets.

@wookim3
Created October 19, 2020 14:30
Show Gist options
  • Save wookim3/9f3d44d92683f3785416c9162234dc2f to your computer and use it in GitHub Desktop.
Save wookim3/9f3d44d92683f3785416c9162234dc2f to your computer and use it in GitHub Desktop.
model = torch.nn.parallel.DistributedDataParallel(
model,
device_ids=[rank],
output_device=rank,
gradient_as_bucket_view=True
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment