accelerate
Return unclipped gradient from `clip_grad_norm_`
#756
Merged

Return unclipped gradient from `clip_grad_norm_` #756

sgugger merged 1 commit into huggingface:main from clip_norm-returns-norm
samuelstevens
samuelstevens2 years ago

Returns the unclipped gradient from clip_grad_norm_ like torch.nn.utils.clip_grad_norm_ does.

Initially brought up in #641.

samuelstevens Return unclipped gradient from grad_clip_norm_
bc75eff1
HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev2 years ago (edited 2 years ago)

The documentation is not available anymore as the PR was closed or merged.

sgugger
sgugger approved these changes on 2022-10-14
sgugger2 years ago

Thanks for working on this!

sgugger sgugger merged 693d4682 into main 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone