mirror of
https://github.com/deepspeedai/DeepSpeed.git
synced 2025-10-20 23:53:48 +08:00
Use cuda tensors for allgather (#1548)
This commit is contained in:
@ -889,7 +889,7 @@ class Init(InsertPostInitMethodToModuleSubClasses):
|
||||
if self.use_all_gather_base:
|
||||
# try the _all_gather_base on PyTorch master branch
|
||||
handle = dist._all_gather_base(flat_tensor,
|
||||
param.ds_tensor,
|
||||
param.ds_tensor.cuda(),
|
||||
group=self.ds_process_group,
|
||||
async_op=async_op)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user