mirror of https://github.com/InternLM/InternLM
add synchronize
parent
1aae39b667
commit
cbd4f04244
|
@ -856,7 +856,7 @@ class HybridZeroOptimizer(BaseOptimizer):
|
|||
for handle in handles:
|
||||
handle.wait()
|
||||
|
||||
torch.cuda().synchronize()
|
||||
torch.cuda.synchronize()
|
||||
|
||||
##################
|
||||
# FP16 Utilities #
|
||||
|
|
Loading…
Reference in New Issue