"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "fbdf26bac57502cbe4372d2c41b3a581190590e2"
Unverified Commit 90017d3a authored by Samyam Rajbhandari's avatar Samyam Rajbhandari Committed by GitHub
Browse files

AllReduce bucket fix. (#186)

parent 4cbfcc75
......@@ -840,6 +840,7 @@ class DeepSpeedLight(Module):
if numel > numel_per_bucket:
self.allreduce_and_copy(small_bucket)
small_bucket = []
numel = 0
if len(small_bucket) > 0:
self.allreduce_and_copy(small_bucket)
......
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