pull/6007/head
Tong Li 2024-08-14 07:19:34 +00:00
parent b841ded016
commit 409f4b5ab3
1 changed files with 1 additions and 1 deletions

View File

@ -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.