未验证 提交 90017d3a 编写于 作者: S Samyam Rajbhandari 提交者: GitHub

AllReduce bucket fix. (#186)

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册