mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-27 05:20:38 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
aedb8d1b22
commit
dd562d28a4
@ -1142,7 +1142,7 @@ def gather_state_dict_fast(
|
||||
ks.append(k)
|
||||
ops.append(dist.P2POp(dist.irecv, buffer, dist.get_global_rank(group, i), group))
|
||||
reqs = dist.batch_isend_irecv(ops)
|
||||
for req in reqs: # len(reqs) maybe be different from len(ops) because of coalescing
|
||||
for req in reqs: # len(reqs) maybe be different from len(ops) because of coalescing
|
||||
req.wait()
|
||||
for k in ks:
|
||||
returned_state_dict[k] = returned_state_dict[k].to(device)
|
||||
|
Loading…
Reference in New Issue
Block a user