mirror of https://github.com/InternLM/InternLM
add broadcast synchronize
parent
7b1b892084
commit
e4e68ff0ff
|
@ -709,6 +709,8 @@ class HybridZeroOptimizer(BaseOptimizer):
|
||||||
for handle in handles:
|
for handle in handles:
|
||||||
handle.wait()
|
handle.wait()
|
||||||
|
|
||||||
|
torch.cuda().synchronize()
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# FP16 Utilities #
|
# FP16 Utilities #
|
||||||
##################
|
##################
|
||||||
|
|
Loading…
Reference in New Issue