mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-22 09:49:14 +00:00
update
This commit is contained in:
parent
b841ded016
commit
409f4b5ab3
@ -1332,7 +1332,7 @@ class HybridParallelPlugin(PipelinePluginBase):
|
|||||||
or not torch.is_grad_enabled()
|
or not torch.is_grad_enabled()
|
||||||
):
|
):
|
||||||
return outputs
|
return outputs
|
||||||
|
print("Show torch status:", torch.is_grad_enabled())
|
||||||
# Synchronize the grads of shared parameters of the model.
|
# Synchronize the grads of shared parameters of the model.
|
||||||
model.sync_shared_params()
|
model.sync_shared_params()
|
||||||
# Synchronize sequence parallelism gradients of the model.
|
# Synchronize sequence parallelism gradients of the model.
|
||||||
|
Loading…
Reference in New Issue
Block a user