mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-22 17:58:56 +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()
|
||||
):
|
||||
return outputs
|
||||
|
||||
print("Show torch status:", torch.is_grad_enabled())
|
||||
# Synchronize the grads of shared parameters of the model.
|
||||
model.sync_shared_params()
|
||||
# Synchronize sequence parallelism gradients of the model.
|
||||
|
Loading…
Reference in New Issue
Block a user