Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sparse gradient clipping for torch>=2.0 #288

Merged
merged 1 commit into from
May 28, 2024

Conversation

jiong-zhang
Copy link
Contributor

Issue #, if available: N/A

Description of changes:

Update the torch dependency to >= 2.0. Since the gradient clipping no longer supports SparseCUDA backend, I include an old implementation of torch.nn.clip_grad_norm_ from torch==1.13.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jiong-zhang jiong-zhang merged commit ca1a91b into amzn:mainline May 28, 2024
25 checks passed
@jiong-zhang jiong-zhang deleted the torch-version-upgrade branch May 28, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants