"...text-generation-inference.git" did not exist on "4c19593a903dffe3b7d7e4edb479445aff0f001f"
Unverified Commit 6ebec59c authored by Fragile-azalea's avatar Fragile-azalea Committed by GitHub
Browse files

remove synchronize

parent 9303ac18
......@@ -68,7 +68,6 @@ class DistributedGroupedDataParallel(nn.Module):
if not no_scale and not reduce_after:
coalesced /= comm.size()
torch.distributed.all_reduce(coalesced, group=comm)
torch.cuda.synchronize()
if not no_scale and reduce_after:
coalesced /= comm.size()
synced = _unflatten_dense_tensors(coalesced, grads)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment